Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JD JD is offline
external usenet poster
 
Posts: 2
Default Accumulating a total

I have a workbook with 2 columns - the first is this days costs, the second
cost to date. The user needs to input data into todays costs that will then
auto update costs to date - this needs to happen for each entry on the
column.

Can anyone help? Have tried McGimpsey & Associates and the Worksheet
Function
Accumulator (using Circular References) but it doesn't work over several
rows. thanks for your help!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 342
Default Accumulating a total

Assume the Days Cost column of data starts in cell A2.
Assume the Cost to Date column of totals starts in cell B2.
Enter the formula =A2 in cell B2.
Enter the formula =B2+A3 in cell B3.
Copy the formula in cell B3 down the column.

That should do it.

Tom
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JD JD is offline
external usenet poster
 
Posts: 2
Default Accumulating a total

this won't accumulate - I need entry into A2 reflects a running total in
B2 - all of the time

User inputs 2 into A2, B2 reflects 2. User inputs 3 into A2, B2 reflects 5
etc - I need this for 100 cells in column a and b

thanks again


"TomPl" wrote in message
...
Assume the Days Cost column of data starts in cell A2.
Assume the Cost to Date column of totals starts in cell B2.
Enter the formula =A2 in cell B2.
Enter the formula =B2+A3 in cell B3.
Copy the formula in cell B3 down the column.

That should do it.

Tom


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 342
Default Accumulating a total

What you are asking for does not provide any history of orders. If you
accidentally entered a days orders twice, your total would be off and you
would have no record of what it should be.

I don't think what you ask can be done without creating a macro. The macro
to accomplish what you want is as follows:


Private Sub Worksheet_Change(ByVal Target As Range)

Dim t As Range
Dim p As Range

Set t = Target
Set p = Range("A:A")
If Intersect(t, p) Is Nothing Then Exit Sub
Application.EnableEvents = False
t.Offset(0, 1).Value = _
t.Offset(0, 1).Value + t.Value2
Application.EnableEvents = True

End Sub

Any time you enter a value in column A that value will be added to the value
in column B.

Tom
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Accumulating a total

Try reading answers to one or more of the many posts you have on other
newsgroups.


Gord Dibben MS Excel MVP

On Mon, 19 Jan 2009 20:50:58 -0000, "JD" wrote:

I have a workbook with 2 columns - the first is this days costs, the second
cost to date. The user needs to input data into todays costs that will then
auto update costs to date - this needs to happen for each entry on the
column.

Can anyone help? Have tried McGimpsey & Associates and the Worksheet
Function
Accumulator (using Circular References) but it doesn't work over several
rows. thanks for your help!




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
Accumulating numbers Jem Excel Worksheet Functions 1 July 30th 07 09:14 AM
Accumulating cells RR Dunn Excel Discussion (Misc queries) 3 April 18th 07 01:40 PM
Accumulating elapsed times. John Excel Discussion (Misc queries) 3 September 8th 06 03:05 PM
accumulating total exhausted everything Excel Discussion (Misc queries) 1 March 15th 06 12:24 AM
need help with compounding and accumulating formula... rebeat Excel Discussion (Misc queries) 0 June 14th 05 05:13 PM


All times are GMT +1. The time now is 01:58 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"