Sum difference cell range based on single criteria

philipmartin

New Member
Joined
Nov 2, 2017
Messages
3
What formula can I use to sum year-to-date data when I update the "Current Month" as my criteria?


Current Month: MAR
JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDECYTD Total
100150150100100150150100100150150100 ??

<colgroup><col span="12"><col></colgroup><tbody>
</tbody>
My "YTD Total" result for MAR would be 400.

If I changed current month to May, my result should be 600.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
are the entries formatted dates, rather than text?

or

if you don't mind adding another row for a running total (which could be hidden)
 
Last edited:
Upvote 0
Try this...
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
1​
Current Month:May
2​
JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDECYTD Total
3​
100​
150​
150​
100​
100​
150​
150​
100​
100​
150​
150​
100​
600​
M3=SUM(A3:INDEX($B$3:$L$3,MATCH($B$1,$A$2:$L$2,0)-1))
 
Upvote 0

Forum statistics

Threads
1,215,360
Messages
6,124,491
Members
449,166
Latest member
hokjock

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top