LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Adding or subtracting numbers from a column

Richard,

Try this. As you type numbers in B1 - B10 they are added to any number in A1
- A10. You can change these ranges to suit.


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Or IsEmpty(Target) Then Exit Sub
If Not Intersect(Target, Range("B1:B10")) Is Nothing Then
If IsNumeric(Target.Value) Then
Target.Offset(0, -1).Value = Target.Offset(0, -1).Value +
Target.Value
Target.Value = 0
End If
End If
End Sub

Mike

"Richard" wrote:

I would like to have a column of numbers and by typing in numbers in an
adjacent column add these numbers to the ones in the column. As the numbers
in the column change it would be nice if the ones I am typing in returned to
zero. If anyone knows haow to do this I will be impressed and grateful if
they tell me how.
Thank you
--
Richard

 
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
ADDING NUMBERS IN A COLUMN cb New Users to Excel 7 October 12th 07 03:18 AM
adding numbers from column B, while condition on column A The Fool on the Hill Excel Discussion (Misc queries) 4 February 1st 07 01:34 PM
Adding and subtracting many columns numbers WoodyAccess Excel Worksheet Functions 1 January 2nd 07 01:02 PM
Adding numbers in a column Holden Caulfield New Users to Excel 9 September 14th 06 07:14 PM
Adding to a column of numbers Colleen Excel Worksheet Functions 1 January 4th 06 06:26 AM


All times are GMT +1. The time now is 01:56 AM.

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"