Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using and IF functio between 2 worksheets. | Excel Worksheet Functions | |||
Modify the official None-working days in the "NETWORKDAYS" Functio | Excel Worksheet Functions | |||
recursive sums | Excel Worksheet Functions | |||
Today or Now functio | Excel Discussion (Misc queries) | |||
What causes my number pad on my keyboard to suddenly stop functio. | Excel Discussion (Misc queries) |