PC Review


Reply
Thread Tools Rate Thread

How can I use a formula to calculate a running sub-total in excel

 
 
LossManiac
Guest
Posts: n/a
 
      20th Jun 2008
I have a very large spreadsheet with customer names in column E, Sales in
column J and invoices issued in column K. I need to have a running total in
column L. The formula =sum(J$3:j3)-sum(k$3:k3) copied down provides a
running total of the net of column J and K however I need the starting
position of the running total to restart each time there is a change of
customer name in column E. For example, if there is a change of customer
name at row 25 the formula needs to be reset to =sum(J$25:j25)-sum(k$25:k25)
and to continue until the next change in customer name.
 
Reply With Quote
 
 
 
 
Arvi Laanemets
Guest
Posts: n/a
 
      20th Jun 2008
Hi

For row 3, enter the formula

=IF($E3="","",SUMIF($E$3:$E3,$E3,$J$3:$J3)-SUMIF($E$3:$E3,$E3,$K$3:$K3))

, and cpoy down. Now you can forget about keeping customers together -
simply enter new entry at end of table regardless of customer, and running
sums for every customer are calculated over the table. To display specific
customer data, use autofilter feature.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<at>tarkon.ee )



"LossManiac" <(E-Mail Removed)> wrote in message
news:02F71AAC-A19D-4791-9EA3-(E-Mail Removed)...
>I have a very large spreadsheet with customer names in column E, Sales in
> column J and invoices issued in column K. I need to have a running total
> in
> column L. The formula =sum(J$3:j3)-sum(k$3:k3) copied down provides a
> running total of the net of column J and K however I need the starting
> position of the running total to restart each time there is a change of
> customer name in column E. For example, if there is a change of customer
> name at row 25 the formula needs to be reset to
> =sum(J$25:j25)-sum(k$25:k25)
> and to continue until the next change in customer name.



 
Reply With Quote
 
LossManiac
Guest
Posts: n/a
 
      20th Jun 2008
Thanks very much. Formula now input and tested.

Regards

"Arvi Laanemets" wrote:

> Hi
>
> For row 3, enter the formula
>
> =IF($E3="","",SUMIF($E$3:$E3,$E3,$J$3:$J3)-SUMIF($E$3:$E3,$E3,$K$3:$K3))
>
> , and cpoy down. Now you can forget about keeping customers together -
> simply enter new entry at end of table regardless of customer, and running
> sums for every customer are calculated over the table. To display specific
> customer data, use autofilter feature.
>
>
> --
> Arvi Laanemets
> ( My real mail address: arvi.laanemets<at>tarkon.ee )
>
>
>
> "LossManiac" <(E-Mail Removed)> wrote in message
> news:02F71AAC-A19D-4791-9EA3-(E-Mail Removed)...
> >I have a very large spreadsheet with customer names in column E, Sales in
> > column J and invoices issued in column K. I need to have a running total
> > in
> > column L. The formula =sum(J$3:j3)-sum(k$3:k3) copied down provides a
> > running total of the net of column J and K however I need the starting
> > position of the running total to restart each time there is a change of
> > customer name in column E. For example, if there is a change of customer
> > name at row 25 the formula needs to be reset to
> > =sum(J$25:j25)-sum(k$25:k25)
> > and to continue until the next change in customer name.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO CALCULATE RUNNING TOTAL MTLCOOCOO Microsoft Excel New Users 1 27th Nov 2008 05:45 PM
Calculate Running Total from Array Stuart Shay Microsoft C# .NET 6 8th Oct 2007 12:02 AM
How Can I calculate a running total (prior total - expense)? =?Utf-8?B?VmljdG9y?= Microsoft Access Forms 0 5th Jul 2005 07:32 PM
how do i calculate a running total in a single cell in excel =?Utf-8?B?Z3QyNDc1?= Microsoft Excel Programming 1 2nd Dec 2004 08:47 AM
calculate a running total Rick Microsoft Excel Setup 1 30th Mar 2004 12:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:40 PM.