• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sub-Total Formula

swastik

New Member
Please help.

I need a formula in Column D which will provide the Subtotal of Column C depending upon change in Column A and B. Expected formula result is given in Column D.

While you guide me with your formula/procedure, kindly consider that the worksheet is already very large and will grow day by day.

A B C D

1

2 Date Paid to Voucher Amount Paid Total

3 1/12/2011 Mr X 100

4 1/12/2011 Mr X 100

5 1/12/2011 Mr X 200 400

6 1/12/2011 Mr Y 100 100

7 1/12/2011 Mr Z 100 100

8 2/12/2011 Mr A 100 100

9 2/12/2011 Mr X 100

10 2/12/2011 Mr X 100 200

11 2/12/2011 Mr A 100 100

12 2/12/2011 Mr X 200

13 2/12/2011 Mr X 200 400

14 3/12/2011 Mr ABCD 100 100

15 Total 1500 1500


Kind regards

Swastik
 
Hi Swastik ,


I assume you mean the subtotal should appear when there is a change in either the date or the Person Paid To , columns A or B.


Use the following formula in cell E3 , copying it down as far as your data.


=IF(OR(B3<>B4,C3<>C4),SUM($D$3:D3)-SUM($E$2:E2),"")


Narayan
 
Back
Top