Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BigBobbo
 
Posts: n/a
Default Recursive Functio help


I'm having trouble trying to create a function for a running total of
data...

1
2
3 10,000
4 = sum(a3)
5
6 20,000
7 = sum(a6, a3)
8
9 30,000
10 = sum(a9, a6, a3)

as you can see, i'm trying to create a recursive function that will
keep a running total of all the values before it, but i'd like to use
the same function for each... not just manually changing the function
on each row, that way if I copy/paste, and add a new set of data at the
end, the function will keep going.

I've been trying to use a combination of INDIRECT(), and ADDRESS()
functions, to isolate which cells to add, but the SUM() function
doesn't let me use either of those functions inside of it.

I've been searching for the answer myself for awhile, but can't find a
solution. Anyone here have any ideas?


--
BigBobbo
------------------------------------------------------------------------
BigBobbo's Profile: http://www.excelforum.com/member.php...o&userid=34310
View this thread: http://www.excelforum.com/showthread...hreadid=540761

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Recursive Functio help

TRY

=SUBTOTAL(9,$A$3:$A3)

in place of all your SUMs

"BigBobbo" wrote:


I'm having trouble trying to create a function for a running total of
data...

1
2
3 10,000
4 = sum(a3)
5
6 20,000
7 = sum(a6, a3)
8
9 30,000
10 = sum(a9, a6, a3)

as you can see, i'm trying to create a recursive function that will
keep a running total of all the values before it, but i'd like to use
the same function for each... not just manually changing the function
on each row, that way if I copy/paste, and add a new set of data at the
end, the function will keep going.

I've been trying to use a combination of INDIRECT(), and ADDRESS()
functions, to isolate which cells to add, but the SUM() function
doesn't let me use either of those functions inside of it.

I've been searching for the answer myself for awhile, but can't find a
solution. Anyone here have any ideas?


--
BigBobbo
------------------------------------------------------------------------
BigBobbo's Profile: http://www.excelforum.com/member.php...o&userid=34310
View this thread: http://www.excelforum.com/showthread...hreadid=540761


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
Using and IF functio between 2 worksheets. Mike Excel Worksheet Functions 4 January 8th 06 07:34 PM
Modify the official None-working days in the "NETWORKDAYS" Functio Zewer Excel Worksheet Functions 3 August 8th 05 11:27 AM
recursive sums Joe Excel Worksheet Functions 6 July 17th 05 09:45 AM
Today or Now functio Patrick Foley Excel Discussion (Misc queries) 3 March 31st 05 02:35 AM
What causes my number pad on my keyboard to suddenly stop functio. Tennessee Excel Discussion (Misc queries) 1 March 25th 05 12:03 AM


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