Sumproduct Multiple Criteria YTD

kherder7

New Member
Joined
Aug 31, 2021
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hello there,
I have multiple criteria in A4:A12 & B4:B12, months in D3:O3, and data in D4:O12. With a month identifier in cell A1(ex. 'Jun21), how can I use Sumproduct to get YTD values for multiple criteria? Any help would be greatly appreciated.

Cheers!
Kyle
 

Attachments

  • Sumproduct Multiple Criteria YTD.PNG
    Sumproduct Multiple Criteria YTD.PNG
    22.9 KB · Views: 99

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi & welcome to MrExcel.
Are the values in row 3 & A1 actual dates formatted to show "mmmyy" or are they text values?
Also for the YTD are you still wanting to use the value in A1 to determine which is the last column to look at?
 
Upvote 0
As long as they are consistent (date or text) then, I think below formula in S4 and dragged down should do?

Excel Formula:
=SUMPRODUCT(($C$4:$C$12=$Q4)*(OFFSET($D$4:$O$12,,,,MATCH($A$1,$D$3:$O$3,0))))
Hope that helps.
 
Upvote 0
Another possible option
Excel Formula:
=SUMPRODUCT(($C$4:$C$12=Q4)*($D$4:INDEX($D$4:$O$12,,MATCH($A$1,$D$3:$O$3,0))))
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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