Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
htan1
 
Posts: n/a
Default Doing Sums on existing numbers

Hi all,
I want to try and do something on excel but cannot do it. I have numbers on
Cell C1-C10. If I were to key in a number at D1, C1-C10 will reflect number
of whatever number on the cell itself plus the number on D1. That means
Number on C1 will reflect the number equavilent to the sum of the existing
number on C1 and number on D1. And Number on C2 will reflect the the number
equavilent to the sum of the existing number on C2 and number on D1. And so
on until C10.

Really appreciate if you all can help me. Thanks a zillion.


  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

Suppose you want to add 10 to each cell in the range C1:C10.

Enter 10 in D1.
Select cell D1
Copy cell D1
Select the range C1:C10
Paste SpecialAddOK

Biff

"htan1" wrote in message
...
Hi all,
I want to try and do something on excel but cannot do it. I have numbers
on
Cell C1-C10. If I were to key in a number at D1, C1-C10 will reflect
number
of whatever number on the cell itself plus the number on D1. That means
Number on C1 will reflect the number equavilent to the sum of the existing
number on C1 and number on D1. And Number on C2 will reflect the the
number
equavilent to the sum of the existing number on C2 and number on D1. And
so
on until C10.

Really appreciate if you all can help me. Thanks a zillion.




  #3   Report Post  
htan1
 
Posts: n/a
Default

That does work but I will need it in a more automated way.....is there
anyway I can do it via formula so that I do not have to do a
paste.....because the data involve is in thousands and around different cell
locations thus I cannot go around copy and paste all the time. Thanks a
zillion


"Biff" wrote in message
...
Hi!

Try this:

Suppose you want to add 10 to each cell in the range C1:C10.

Enter 10 in D1.
Select cell D1
Copy cell D1
Select the range C1:C10
Paste SpecialAddOK

Biff

"htan1" wrote in message
...
Hi all,
I want to try and do something on excel but cannot do it. I have numbers
on
Cell C1-C10. If I were to key in a number at D1, C1-C10 will reflect
number
of whatever number on the cell itself plus the number on D1. That means
Number on C1 will reflect the number equavilent to the sum of the

existing
number on C1 and number on D1. And Number on C2 will reflect the the
number
equavilent to the sum of the existing number on C2 and number on D1. And
so
on until C10.

Really appreciate if you all can help me. Thanks a zillion.






  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell As Range
On Error GoTo ws_exit:
Application.EnableEvents = False
If Target.Address(False, False) = "D1" Then
With Target
If IsNumeric(.Value) Then
For Each cell In Range("C1").Resize(Cells(Rows.Count,
"C").End(xlUp).Row)
cell.Value = cell.Value + .Value
Next cell
End If
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub


'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--
HTH

Bob Phillips

"htan1" wrote in message
...
That does work but I will need it in a more automated way.....is there
anyway I can do it via formula so that I do not have to do a
paste.....because the data involve is in thousands and around different

cell
locations thus I cannot go around copy and paste all the time. Thanks a
zillion


"Biff" wrote in message
...
Hi!

Try this:

Suppose you want to add 10 to each cell in the range C1:C10.

Enter 10 in D1.
Select cell D1
Copy cell D1
Select the range C1:C10
Paste SpecialAddOK

Biff

"htan1" wrote in message
...
Hi all,
I want to try and do something on excel but cannot do it. I have

numbers
on
Cell C1-C10. If I were to key in a number at D1, C1-C10 will reflect
number
of whatever number on the cell itself plus the number on D1. That

means
Number on C1 will reflect the number equavilent to the sum of the

existing
number on C1 and number on D1. And Number on C2 will reflect the the
number
equavilent to the sum of the existing number on C2 and number on D1.

And
so
on until C10.

Really appreciate if you all can help me. Thanks a zillion.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking Winning Numbers in the Lottery. Ann Excel Discussion (Misc queries) 4 May 18th 05 10:55 AM
format existing numbers in excel? Robin Excel Discussion (Misc queries) 6 March 3rd 05 11:11 PM
How to add a 1 to existing column of phone numbers? Jan Excel Discussion (Misc queries) 3 February 15th 05 04:38 PM
How can I cross reference phone numbers with existing phone numbe. John Excel Discussion (Misc queries) 1 February 11th 05 04:39 PM
How can I copy column sums to another spreadsheets as numbers auntpat Excel Worksheet Functions 3 January 3rd 05 06:49 PM


All times are GMT +1. The time now is 02:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"