#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default Dynamic Subtotal

Hi All,
I have a list of cables and with beginning total (length) of each one.
throughout the year, users are filling rows with type of cable and the
amount they took or received to the warehouse. (Headers: Cable Type,Income
Amount,Outcome Amount).
I need to calculate the balance between the received and taken so it will be
dynamically. I can use Subtotal but I will need to do it all the time over
and over again.
Is there another solution that doesn't concern VBA?
Thanks a lot in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Dynamic Subtotal

There are a couple of ways to do this. One is to set your total at the
top of the spreadsheet, and have it total a large number of rows.
Example, your "This transaction" positive or negative number might be
in column D, and the total number of all those adds and subtracts
might be in cell D3. The formula in D3 might be something like
=SUM(D5:D5000), covering a long list of rows.

Another way to do this is to add a "net total" column to each row, and
set the formula to add "this transaction" to the "net total" from the
previous entry. Continuing the previous example, if "this transaction"
appears in col D the Net total column might be E. On each row the Net
Total formula adds the Net Total from the previous row to column D on
the current row.

Each method has its pitfalls: in method 1 it's possible that the
formula might cover 5000 rows but the users enter 6000 rows, and the
total will be wrong unless the file is frequently inspected and
maintained. The users might use blank rows to perform other
calculations and unknowingly use column D, thus skewing the true
results. (This happened to me recently.) Method 2 is more precise but
because the number of transactions varies and the location of the
current final total changes, it's difficult to keep a summary page up
to date and accurate.

Dave O
Eschew obfuscation
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Dynamic Subtotal

Or use Pivot Table.
Add a Calculated Item to the PT columns,
named Net, with this formula:
=In-Out
The result might look like this:

Row In Out Net
W1 200 20 180
W2 600 500 100
W3 350 114 236
W4 120 32 88
W5 450 35 415
W6 350 350
W7 330 83 247
W8 400 399 1

Hit Refresh to update.

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 do I Subtotal, then Sort by Subtotal Amounts? dnamertz Excel Discussion (Misc queries) 3 October 29th 06 12:17 AM
pasting to subtotal lines without replacing hidden -non-subtotal l harleydiva67 Excel Discussion (Misc queries) 1 October 12th 06 06:02 PM
Bolding the subtotal lines automaticlly When using the Subtotal fu 06Speed6 New Users to Excel 2 October 5th 06 03:52 PM
copy subtotal value only, subtotal value can be vlookup by others BB Excel Discussion (Misc queries) 1 June 28th 06 11:10 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


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