Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How can I use a formula to calculate a running sub-total in excel

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default How can I use a formula to calculate a running sub-total in excel

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<attarkon.ee )



"LossManiac" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How can I use a formula to calculate a running sub-total in ex

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<attarkon.ee )



"LossManiac" wrote in message
...
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
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
Having a formula provide a running total from multiple worksheets sisko101 Excel Worksheet Functions 3 July 7th 06 10:06 PM
Formula Needed to Compare Dates and return a running total Cmonroe Excel Worksheet Functions 3 June 8th 06 08:54 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 05:25 PM.

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"