Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
wow wow is offline
external usenet poster
 
Posts: 1
Default a1+a2=a3 How can I change a2,keep old a2 value & increase a3

I want to use less columns as possible. I want others to be able to change
one column while previous values are added to increase a3
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default a1+a2=a3 How can I change a2,keep old a2 value & increase a3

This example uses only two cells: A1 & A2

Insert the following code in the wroksheet code area:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Range("A2").Value = Range("A2").Value + Range("A1").Value
Application.EnableEvents = True
End Sub


Whenever a value is entered in A1, its added into A2
--
Gary''s Student - gsnu200745


"wow" wrote:

I want to use less columns as possible. I want others to be able to change
one column while previous values are added to increase a3

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
Increase cell value by 1 based on another cell change Dr. Hackenbush Excel Worksheet Functions 6 January 21st 10 04:49 PM
Number in cell increase with increase in font size. Value increases with increase in font.[_2_] Excel Discussion (Misc queries) 2 August 9th 07 01:58 PM
on click change cells color and increase a number.. Daniel Excel Programming 2 October 19th 05 12:35 AM
How do I change - increase maximum limit of the row height (409 p. Marek Excel Discussion (Misc queries) 0 March 1st 05 02:27 PM
Value Increase/Decrease/No Change Michael Excel Worksheet Functions 1 November 5th 04 11:32 AM


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

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

About Us

"It's about Microsoft Excel"