A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Modify range of cells at once...



 
 
Thread Tools Display Modes
  #1  
Old November 5th, 2009, 08:10 PM posted to microsoft.public.excel.newusers
Andrey Kazak[_2_]
external usenet poster
 
Posts: 21
Default Modify range of cells at once...

Greetings, dear Experts!

I want to select range and run such Command/Tool that modifies current
values of the range by simple formula (+, -, *, /) and pastes result values
instead the original ones.
Is this possible by the standard means of Excel?

Thank you in advance for propmt reply...
  #2  
Old November 5th, 2009, 08:58 PM posted to microsoft.public.excel.newusers
Lars-Åke Aspelin[_2_]
external usenet poster
 
Posts: 722
Default Modify range of cells at once...

On Thu, 5 Nov 2009 12:10:03 -0800, Andrey Kazak
wrote:

Greetings, dear Experts!

I want to select range and run such Command/Tool that modifies current
values of the range by simple formula (+, -, *, /) and pastes result values
instead the original ones.
Is this possible by the standard means of Excel?

Thank you in advance for propmt reply...



If you want to Add, Subtract, Multiply, Divide
the content of all cells in a range with a constant value you can do
like this:

1) Put the constant, e.g. 7, in an unused cell.
2) Right click on the cell and chose "Copy"
3) Select the range
4) Right click and chose "Paste Special..."
5) In the dialog, chose the wanted Operation, e.g. Add
6) Click on OK
7) All values in the range have now been changed and you can delete
the constant

Hope this helps / Lars-Åke

  #3  
Old November 6th, 2009, 02:25 AM posted to microsoft.public.excel.newusers
FSt1
external usenet poster
 
Posts: 2,788
Default Modify range of cells at once...

hi
not sure if i understand but if you want to add 2 to a number of cells in a
range (or mutiply, subtract, divide), enter a 2 (or whatever number you need)
into a cell off to the side and copy it. then use pasted specialAdd (or
mutiply, subtract, divide).

regards
FSt1

"Andrey Kazak" wrote:

Greetings, dear Experts!

I want to select range and run such Command/Tool that modifies current
values of the range by simple formula (+, -, *, /) and pastes result values
instead the original ones.
Is this possible by the standard means of Excel?

Thank you in advance for propmt reply...

  #4  
Old November 6th, 2009, 04:05 AM posted to microsoft.public.excel.newusers
Andrey Kazak[_2_]
external usenet poster
 
Posts: 21
Default Modify range of cells at once...

Yes. This is exacly what I want. But is there any way to do it without
utilizing of a spare cell?

"FSt1" wrote:

hi
not sure if i understand but if you want to add 2 to a number of cells in a
range (or mutiply, subtract, divide), enter a 2 (or whatever number you need)
into a cell off to the side and copy it. then use pasted specialAdd (or
mutiply, subtract, divide).

regards
FSt1

"Andrey Kazak" wrote:

Greetings, dear Experts!

I want to select range and run such Command/Tool that modifies current
values of the range by simple formula (+, -, *, /) and pastes result values
instead the original ones.
Is this possible by the standard means of Excel?

Thank you in advance for propmt reply...

  #5  
Old November 6th, 2009, 04:52 AM posted to microsoft.public.excel.newusers
FSt1
external usenet poster
 
Posts: 2,788
Default Modify range of cells at once...

hi
no, not that i know of. excel need a way to know what to add( or mutiply,
subtract, divide) to all the cells.
and in my last post, i seem to have forgotten to mention to high light all
the cells first. then do the copy/paste special. the operation will only
effect high lighted cells.

Regards
FSt1

"Andrey Kazak" wrote:

Yes. This is exacly what I want. But is there any way to do it without
utilizing of a spare cell?

"FSt1" wrote:

hi
not sure if i understand but if you want to add 2 to a number of cells in a
range (or mutiply, subtract, divide), enter a 2 (or whatever number you need)
into a cell off to the side and copy it. then use pasted specialAdd (or
mutiply, subtract, divide).

regards
FSt1

"Andrey Kazak" wrote:

Greetings, dear Experts!

I want to select range and run such Command/Tool that modifies current
values of the range by simple formula (+, -, *, /) and pastes result values
instead the original ones.
Is this possible by the standard means of Excel?

Thank you in advance for propmt reply...

  #6  
Old November 6th, 2009, 04:53 PM posted to microsoft.public.excel.newusers
Gord Dibben
external usenet poster
 
Posts: 20,252
Default Modify range of cells at once...

Use a macro if you don't want to employ a spare cell.

Sub add_two()
For Each cell In Selection
With cell
.Value = .Value + 2
End With
Next
End Sub

But this would not be "standard means"


Gord Dibben MS Excel MVP

On Thu, 5 Nov 2009 20:05:01 -0800, Andrey Kazak
wrote:

Yes. This is exacly what I want. But is there any way to do it without
utilizing of a spare cell?

"FSt1" wrote:

hi
not sure if i understand but if you want to add 2 to a number of cells in a
range (or mutiply, subtract, divide), enter a 2 (or whatever number you need)
into a cell off to the side and copy it. then use pasted specialAdd (or
mutiply, subtract, divide).

regards
FSt1

"Andrey Kazak" wrote:

Greetings, dear Experts!

I want to select range and run such Command/Tool that modifies current
values of the range by simple formula (+, -, *, /) and pastes result values
instead the original ones.
Is this possible by the standard means of Excel?

Thank you in advance for propmt reply...


  #7  
Old November 6th, 2009, 08:53 PM posted to microsoft.public.excel.newusers
gls858
external usenet poster
 
Posts: 473
Default Modify range of cells at once...

You can delete the contents of the cell after you do the copy and paste.
It doesn't need to stay there.

gls858


Andrey Kazak wrote:
Yes. This is exacly what I want. But is there any way to do it without
utilizing of a spare cell?

"FSt1" wrote:

hi
not sure if i understand but if you want to add 2 to a number of cells in a
range (or mutiply, subtract, divide), enter a 2 (or whatever number you need)
into a cell off to the side and copy it. then use pasted specialAdd (or
mutiply, subtract, divide).

regards
FSt1

"Andrey Kazak" wrote:

Greetings, dear Experts!

I want to select range and run such Command/Tool that modifies current
values of the range by simple formula (+, -, *, /) and pastes result values
instead the original ones.
Is this possible by the standard means of Excel?

Thank you in advance for propmt reply...


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.