LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Excel 2002: How to sum up in batches ?

Mr. Low,

Yes - when this formula is entered in E2 and copied downward, it
subtracts the previous subtotals, leaving only the current one.
=IF(A2=A3, "", SUMIF($A$2:A2, A2, $C$2:C2) - SUMIF($A1:$A$2, A2, $E1:E$2))

I'm using Excel 2003, which automatically rearranges the dollar signs as
necessary, so that in row 4 and below the subtracted function looks like
this:
.... - SUMIF($A$2:$A3, ...

- David

Mr. Low wrote:
Dear Sir,

I used the formula =IF(A2=A3, "", SUMIF($A$2:A2, A2, $C$2:C2)) in the table.
Cell D4,D5 and D10 are correct, however D14,D17 and D21 are not correct as
it also add up the figure of the previous block that has the same reference.

Is there anyway to modify this formula ?

Thanks

Low

A B C D
1 Product Invoice Amount subtotal
2 A491 V4148 222.00
3 A491 V4149 1,410.00
4 A491 V4150 282.00 1914 Correct
5 C225 V4151 672.00
6 C225 V4152 1,344.00 2016 Correct
7 H247 V4153 118.00
8 H247 V4154 118.00
9 H247 V4155 427.00
10 H247 V4156 1,332.00 1995 Correct
11 A491 V4157 120.00
12 A491 V4158 222.00
13 A491 V4159 113.00
14 A491 V4160 222.00 2591 Error
15 H247 V4161 118.00
16 H247 V4162 180.00
17 H247 V4163 222.00 2515 Error
18 C225 V4164 444.00
19 C225 V4165 528.00
20 C225 V4166 339.00
21 C225 V4167 1,056.00 4383 Error
22 D208 V4168 528.00
23 D208 V4169 328.00
24 D208 V4170 202.00 1058 correct

 
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
Excel 2002 : Unable to open files in MS Outlook 2002 Mr. Low Excel Discussion (Misc queries) 1 June 29th 07 02:12 PM
Outlook 2002 calendar dates exported to Excel 2002 sort incorrectl scampbell Excel Worksheet Functions 0 February 22nd 06 06:31 PM
Can't Unhide Rows in 'batches'! raehippychick Excel Discussion (Misc queries) 3 July 20th 05 02:26 PM
Atomatic file name in excell 2002 from cel A1 (like in word 2002) Steve & Dawn New Users to Excel 1 June 22nd 05 07:16 AM
Can you print labels using Excel 2002 in a Word 2002 mail merge? Individual_ Excel Discussion (Misc queries) 3 December 17th 04 08:39 PM


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