Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Running Total by formula


Folks, is it possible to have a running total of a column of numbers via
formula alone? No helper-column, I mean. I could then name the formula
and chart it, for example. With a helper-column it's easy, of course.
I'm wondering if it's possible without, though. Anybody see a way?

Thanks,
=dman=
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Running Total by formula

Say you start your values in A2, and will continue to enter additional data
down Column A.

In B2 enter:

=SUM(A$2:A2)

And copy down as needed.

This is a very resource intensive formula.
Shouldn't be used for ranges in excess of say 5,000 rows.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Dallman Ross" <dman@localhost. wrote in message
...

Folks, is it possible to have a running total of a column of numbers via
formula alone? No helper-column, I mean. I could then name the formula
and chart it, for example. With a helper-column it's easy, of course.
I'm wondering if it's possible without, though. Anybody see a way?

Thanks,
=dman=


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Running Total by formula

Ragdyer,

Your suggestion of course works just fine. Thank you.

I would like to ask why the formula you offered is seen as
resource-intensive, and what I might do about it if I still
want running totals for more than circa 5,000 rows.


I was actually trying to figure out if one can do the whole thing
without using any extra column for the running total. Just have a
named formula, for example. But it seems pretty hard to conceive
of. It might be impossible. And if it's not, it might be very
resource intensive. Still, I was racking my brain trying to see if
it could be done and decide if I want to. :-)

An analogy would be if we suppose there are numbers entered into
A1:A100 already, and I create a named formula like this:

=($A$1:$A$100)^0

I name it, then use the name in a chart. Now I have a line 100
ticks long with a height of 1. It won't matter what the numbers
are in A, as long as they are numbers.

If I make the formula this:

=($A$1:$A$100)^0*AVERAGE($A$1:$A$100)

I can plot an average line without having to bother having
a separate column to contain the average for my chart.

Well, that's where I was coming from. I wanted to try to
take that further and create other sorts of plottable lines
and curves without using up a column to set them up for the chart.

Best,
=dman=
--------------------
In , Ragdyer
spake thusly:

Say you start your values in A2, and will continue to enter additional data
down Column A.

In B2 enter:

=SUM(A$2:A2)

And copy down as needed.

This is a very resource intensive formula.
Shouldn't be used for ranges in excess of say 5,000 rows.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Running Total by formula

=SUM(A$2:A2)
I would like to ask why the formula you offered is seen as
resource-intensive, and what I might do about it if I still
want running totals for more than circa 5,000 rows.


Think of it like this:

=A2
=A2+A3
=A2+A3+A4
=A2+A3+A4+A5
=A2+A3+A4+A5+A6
=A2+A3+A4+A5+A6+A7

Now, imagine what that looks like when you get to row 5000!

When you get to row 5000 you will have calculated 12,492,501 cells. 4998
formulas, each one calculating more cells than the formula in the previous
row.

The best way to do this on big ranges is like this:

......A.....B.....
2...5.............
3...1.....=A3+A2
4...6.....=A4+B3
5...1.....=A5+B4
6...2.....=A6+B5
7...5.....=A7+B6

This way you still have the same number of formulas but each formula is
calculating just 2 cells.

As far as your problem with the chart...

It sounds like what you need is an array of subtotals. I rarely use charts
so I'm not sure if that can be done using just a single formula. It can't be
done for a worksheet formula calculation but as the source for chart data,
??????

--
Biff
Microsoft Excel MVP


"Dallman Ross" <dman@localhost. wrote in message
...
Ragdyer,

Your suggestion of course works just fine. Thank you.

I would like to ask why the formula you offered is seen as
resource-intensive, and what I might do about it if I still
want running totals for more than circa 5,000 rows.


I was actually trying to figure out if one can do the whole thing
without using any extra column for the running total. Just have a
named formula, for example. But it seems pretty hard to conceive
of. It might be impossible. And if it's not, it might be very
resource intensive. Still, I was racking my brain trying to see if
it could be done and decide if I want to. :-)

An analogy would be if we suppose there are numbers entered into
A1:A100 already, and I create a named formula like this:

=($A$1:$A$100)^0

I name it, then use the name in a chart. Now I have a line 100
ticks long with a height of 1. It won't matter what the numbers
are in A, as long as they are numbers.

If I make the formula this:

=($A$1:$A$100)^0*AVERAGE($A$1:$A$100)

I can plot an average line without having to bother having
a separate column to contain the average for my chart.

Well, that's where I was coming from. I wanted to try to
take that further and create other sorts of plottable lines
and curves without using up a column to set them up for the chart.

Best,
=dman=
--------------------
In , Ragdyer
spake thusly:

Say you start your values in A2, and will continue to enter additional
data
down Column A.

In B2 enter:

=SUM(A$2:A2)

And copy down as needed.

This is a very resource intensive formula.
Shouldn't be used for ranges in excess of say 5,000 rows.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Running Total by formula

Check out this old post:

http://groups.google.com/group/micro...6f3958191dde02


--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"Dallman Ross" <dman@localhost. wrote in message
...
Ragdyer,

Your suggestion of course works just fine. Thank you.

I would like to ask why the formula you offered is seen as
resource-intensive, and what I might do about it if I still
want running totals for more than circa 5,000 rows.


I was actually trying to figure out if one can do the whole thing
without using any extra column for the running total. Just have a
named formula, for example. But it seems pretty hard to conceive
of. It might be impossible. And if it's not, it might be very
resource intensive. Still, I was racking my brain trying to see if
it could be done and decide if I want to. :-)

An analogy would be if we suppose there are numbers entered into
A1:A100 already, and I create a named formula like this:

=($A$1:$A$100)^0

I name it, then use the name in a chart. Now I have a line 100
ticks long with a height of 1. It won't matter what the numbers
are in A, as long as they are numbers.

If I make the formula this:

=($A$1:$A$100)^0*AVERAGE($A$1:$A$100)

I can plot an average line without having to bother having
a separate column to contain the average for my chart.

Well, that's where I was coming from. I wanted to try to
take that further and create other sorts of plottable lines
and curves without using up a column to set them up for the chart.

Best,
=dman=
--------------------
In , Ragdyer
spake thusly:

Say you start your values in A2, and will continue to enter additional
data
down Column A.

In B2 enter:

=SUM(A$2:A2)

And copy down as needed.

This is a very resource intensive formula.
Shouldn't be used for ranges in excess of say 5,000 rows.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Running Total by formula

Typo:

It can't be done for a worksheet formula calculation ...


Should be:

It can be done for a worksheet formula calculation ...


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
=SUM(A$2:A2)

I would like to ask why the formula you offered is seen as
resource-intensive, and what I might do about it if I still
want running totals for more than circa 5,000 rows.


Think of it like this:

=A2
=A2+A3
=A2+A3+A4
=A2+A3+A4+A5
=A2+A3+A4+A5+A6
=A2+A3+A4+A5+A6+A7

Now, imagine what that looks like when you get to row 5000!

When you get to row 5000 you will have calculated 12,492,501 cells. 4998
formulas, each one calculating more cells than the formula in the previous
row.

The best way to do this on big ranges is like this:

.....A.....B.....
2...5.............
3...1.....=A3+A2
4...6.....=A4+B3
5...1.....=A5+B4
6...2.....=A6+B5
7...5.....=A7+B6

This way you still have the same number of formulas but each formula is
calculating just 2 cells.

As far as your problem with the chart...

It sounds like what you need is an array of subtotals. I rarely use charts
so I'm not sure if that can be done using just a single formula. It can't
be done for a worksheet formula calculation but as the source for chart
data, ??????

--
Biff
Microsoft Excel MVP


"Dallman Ross" <dman@localhost. wrote in message
...
Ragdyer,

Your suggestion of course works just fine. Thank you.

I would like to ask why the formula you offered is seen as
resource-intensive, and what I might do about it if I still
want running totals for more than circa 5,000 rows.


I was actually trying to figure out if one can do the whole thing
without using any extra column for the running total. Just have a
named formula, for example. But it seems pretty hard to conceive
of. It might be impossible. And if it's not, it might be very
resource intensive. Still, I was racking my brain trying to see if
it could be done and decide if I want to. :-)

An analogy would be if we suppose there are numbers entered into
A1:A100 already, and I create a named formula like this:

=($A$1:$A$100)^0

I name it, then use the name in a chart. Now I have a line 100
ticks long with a height of 1. It won't matter what the numbers
are in A, as long as they are numbers.

If I make the formula this:

=($A$1:$A$100)^0*AVERAGE($A$1:$A$100)

I can plot an average line without having to bother having
a separate column to contain the average for my chart.

Well, that's where I was coming from. I wanted to try to
take that further and create other sorts of plottable lines
and curves without using up a column to set them up for the chart.

Best,
=dman=
--------------------
In , Ragdyer
spake thusly:

Say you start your values in A2, and will continue to enter additional
data
down Column A.

In B2 enter:

=SUM(A$2:A2)

And copy down as needed.

This is a very resource intensive formula.
Shouldn't be used for ranges in excess of say 5,000 rows.





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Running Total by formula

In , T. Valko
spake thusly:

=SUM(A$2:A2)

I would like to ask why the formula you offered is seen as
resource-intensive, and what I might do about it if I still
want running totals for more than circa 5,000 rows.


Think of it like this:

=A2
=A2+A3
=A2+A3+A4
=A2+A3+A4+A5
=A2+A3+A4+A5+A6
=A2+A3+A4+A5+A6+A7

Now, imagine what that looks like when you get to row 5000!


Thanks, Biff!


When you get to row 5000 you will have calculated 12,492,501 cells. 4998
formulas, each one calculating more cells than the formula in the previous
row.

The best way to do this on big ranges is like this:

.....A.....B.....
2...5.............
3...1.....=A3+A2
4...6.....=A4+B3
5...1.....=A5+B4
6...2.....=A6+B5
7...5.....=A7+B6

This way you still have the same number of formulas but each formula is
calculating just 2 cells.


Looks good. To keep the formula consistent in the past I have
done it this way and filled all data-rows (assume Row 1 is a header
row with text):

=A2+(IF(ISNUMBER(B1),B1,0))

and dragged that down from B2 to the bottom row. But I suppose there
is a trade-off with that, too, in that the IF-statement will require
a bit more "oomph" from Excel.


As far as your problem with the chart...

It sounds like what you need is an array of subtotals. I rarely use charts
so I'm not sure if that can be done using just a single formula. It can't be
done for a worksheet formula calculation but as the source for chart data,
??????


Yeah, I'm having fun trying, though. :-)

Thanks again.

=dman=
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
How can I use a formula to calculate a running sub-total in excel LossManiac Excel Worksheet Functions 2 June 20th 08 01:52 PM
Having a formula provide a running total from multiple worksheets sisko101 Excel Worksheet Functions 3 July 7th 06 10:06 PM
Running total formula DBane Excel Worksheet Functions 0 June 2nd 06 07:38 PM
Formula for running total santaviga Excel Worksheet Functions 0 April 27th 06 10:46 PM
keep a running total of my formula results after each (F9) Souvien Excel Discussion (Misc queries) 1 January 23rd 05 01:59 AM


All times are GMT +1. The time now is 04:02 PM.

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"