SUMIFS With Multiple Criteria in Same Columns

TryingMyBest1

New Member
Joined
Jan 17, 2019
Messages
2
Hello,

I have a formula in front of me that I'm completely stuck on. I need to pull a sum from a raw data sheet in another tab and I need it to only pull #'s with specific criteria from the same columns.

Here is what I have so far...

=SUMPRODUCT(SUMIFS(INDEX(licensefeedetail,0,(MATCH(year,licensefeedetailheaders,0))),INDEX(licensefeedetail,0,(MATCH("DMA",licensefeedetailheaders,0))),B5,INDEX(licensefeedetail,0,(MATCH("Package Name",licensefeedetailheaders,0))),A5,INDEX(licensefeedetail,0,(MATCH("Sub Type",licensefeedetailheaders,0))),{"BOTH","RETAIL"}))


As this formula stands everything works fine. The problem I'm having is the B5 cell reference that I bolded. That cell is a dropdown list of different cities. I need to have this formula pull data that's tied to whichever city is in that cell reference AND pull data from the same column with cells that contain "All".

I tried using {B5,"All"} but arrays won't recognize cell references. And even if I just try to put {"Atlanta","All"} that won't work because I think the formula is getting caught up with the "BOTH"/"RETAIL" array.

Is there anyway I can pull #'s that have the criteria "BOTH" and "RETAIL" in one column while pulling #'s tied to a city from a cell reference and all cells that contain "All" from another, separate column?

Thank you
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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