hELP WITH MUTIPLE SUMIF AND CUMULATIVE SUM

muffinson

New Member
Yesterday I posted this and I was so thankful to get a reply which answered my question

A B C D E F
1 Month ?
2
3 Jan Feb Mar Apr May MTD
4 10 14 15 9 8 ?

I want to have a cumulative sum formula in cell f4, which would add up the figures in row 4 depending on the date I entered in cell B2.

For e.g. if I entered Mar in B1, my MTD figure in F4 would = 39, the Sum of Jan, Feb & Mar.

Today’s question is a little trickier.

A B C D
1
2 CODE JAN FEB MAR
3 10 2 3 4
4 11 2 2 1
5 12 4 2 1
6 13 5 4 6
7
8
9 month?
10
11 CODE MTD
12 10 ?
13 11
14 12
15 13

I want to cumulative sum a range if the codes on one sheet match the codes on another and then for the sum to return a cumulative based on what month I put in cell A9

eg IF THE MONTH ENTERED IS FEB THE SUM RETURNED IS 5 IN CELL B12

The formula is a combination of =SUM(B3:INDEX(B3:D3,MATCH(\$A\$9,\$B\$2:\$D\$2,0))) and =SUMIF(\$A\$3:\$A\$6,\$A12,B3:D6)

:x

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
In B12:

=SUM(INDEX(\$B\$3:\$D\$6,MATCH(\$A12,\$A\$3:\$A\$6,0),1):INDEX(\$B\$3:\$D\$6,MATCH(\$A12,\$A\$3:\$A\$6,0),MATCH(\$A\$9,\$B\$2:\$D\$2,0)))

copied down.

Thank you

Thank you so much! It works a treat... You have saved me so much time..

Oh one more question last one I promise...

What would the formula be if I didnt want a cumulative total and just wanted the month?

Help

That's the second part of the formula I posted:

=INDEX(\$B\$3:\$D\$6,MATCH(\$A12,\$A\$3:\$A\$6,0),MATCH(\$A\$9,\$B\$2:\$D\$2,0))

Replies
6
Views
92
Replies
8
Views
253
Replies
3
Views
156
Replies
6
Views
64
Replies
3
Views
328

1,217,347
Messages
6,136,045
Members
449,982
Latest member
josephinelinnea

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back