Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2013-02-19 Thread David Grugeon
et.Offset(0, 11) = Target.Offset(0, 11) + Target >> If Range("A2").Value = "Dec" And Target.Column = 2 Then >> Target.Offset(0, 12) = Target.Offset(0, 12) + Target >> Target.Select >> End Sub >> >> David Grugeon

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2013-02-18 Thread David Grugeon
e = "Nov" And Target.Column = 2 Then Target.Offset(0, > 11) = Target.Offset(0, 11) + Target > If Range("A2").Value = "Dec" And Target.Column = 2 Then Target.Offset(0, > 12) = Target.Offset(0, 12) + Target > Target.Select > End Sub > > David Grugeon wrote:

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2013-02-16 Thread anton
ne to your code: >>> Target.Select >>> So the macro will now look like this: >>> >>> Private Sub Worksheet_Change(ByVal Target As Range) >>> If Target.Column = 2 Then Target.Offset(0, 1) = Target.Offset(0, 1) + >>> Target >>> Target.Sele

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2013-02-16 Thread David Grugeon
rget As Range) >> If Target.Column = 2 Then Target.Offset(0, 1) = Target.Offset(0, 1) + >> Target >> Target.Select >> End Sub >> >> Regards - Dave. >> >> >> > Date: Thu, 24 Jun 2010 10:25:48 -0700 >> >> > Subject: Re: $$Excel-Macros$$ how to

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2013-02-15 Thread anton
(0, 1) + > Target > Target.Select > End Sub > > Regards - Dave. > > > > Date: Thu, 24 Jun 2010 10:25:48 -0700 > > Subject: Re: $$Excel-Macros$$ how to get cumulative sum in a cell > > From: a...@kwic.com > > To: excel-...@googlegroups.com > >

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2013-02-15 Thread anton
t; > Date: Thu, 24 Jun 2010 03:36:37 -0700 > > Subject: Re: $$Excel-Macros$$ how to get cumulative sum in a cell > > From: a...@kwic.com > > To: excel-...@googlegroups.com > > > > Hi Dave, > > Thanks very much for your reply. Yes this would be sufficien

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2010-06-26 Thread anton
sheet_Change(ByVal Target As Range)If Target.Column = 2 Then > Target.Offset(0, 1) = Target.Offset(0, 1) + TargetTarget.SelectEnd Sub > Regards - Dave. > > > > > > > Date: Thu, 24 Jun 2010 10:25:48 -0700 > > Subject: Re: $$Excel-Macros$$ how to get cumulative sum in

RE: $$Excel-Macros$$ how to get cumulative sum in a cell

2010-06-25 Thread Dave Bonallack
) + TargetTarget.SelectEnd Sub Regards - Dave. > Date: Thu, 24 Jun 2010 10:25:48 -0700 > Subject: Re: $$Excel-Macros$$ how to get cumulative sum in a cell > From: a...@kwic.com > To: excel-macros@googlegroups.com > > Hi Dave, > your code works very well. it seems to work for text in col B w

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2010-06-24 Thread anton
r, but we could test for > non-numeric input if needed. > Regards - Dave. > > > > > > > Date: Thu, 24 Jun 2010 03:36:37 -0700 > > Subject: Re: $$Excel-Macros$$ how to get cumulative sum in a cell > > From: a...@kwic.com > > To: excel-macros@googlegroups.

RE: $$Excel-Macros$$ how to get cumulative sum in a cell

2010-06-24 Thread Dave Bonallack
atter, but we could test for non-numeric input if needed. Regards - Dave. > Date: Thu, 24 Jun 2010 03:36:37 -0700 > Subject: Re: $$Excel-Macros$$ how to get cumulative sum in a cell > From: a...@kwic.com > To: excel-macros@googlegroups.com > > Hi Dave, > Thanks very much for

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2010-06-24 Thread anton
Dear Jagjeet, Thanks for your reply. It appears from your comment that two cells are needed and Dave's suggestion will achieve this. Best Regards, anton On Jun 24, 12:48 am, Jagjeet Singh wrote: > Dear Anton > > Please send the sample sheet. as you have to input the values in two > different cel

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2010-06-24 Thread anton
Hi Dave, Thanks very much for your reply. Yes this would be sufficient. Your suggestion that XL can monitor changes to A2 and store the cumulative total in A3 would be great. I would have about 50 similar accounts such as gas, books, donations, repairs etc. Would you be able to construct this macro

RE: $$Excel-Macros$$ how to get cumulative sum in a cell

2010-06-23 Thread Dave Bonallack
Hi Anton, XL can almost do what you want, which may be sufficient for you. If you want to be able to enter your grocery expenditure always in the same cell, XL can accumulate those entries in another cell using VBA. For example, You may enter your grocery expenditure always into A2, but the a

Re: $$Excel-Macros$$ how to get cumulative sum in a cell

2010-06-23 Thread Jagjeet Singh
Dear Anton Please send the sample sheet. as you have to input the values in two different cells to get the accumulation. You cannt overwrite the cell and expect a cumulative figure Please elaborate and if possible send the worksheet. Regards Jagjeet Singh On Wed, Jun 23, 2010 at 11:52 PM, ant