Nesting INDEX MATCH into SUMIFS

lost_in_the_sauce

Board Regular
Joined
Jan 18, 2021
Messages
128
Office Version
  1. 365
Platform
  1. Windows
I currently have several formulas pulling in a SUMIFS from a data sheet, beginning with =SUMIFS('datasheet'!$N:$N, 'datasheet.....

but as I am creating a dashboard I would like to have the first variable ($N:$N) pull from a drop down list. I've created a drop down that does months and am trying to get the first variable to index match a table based on the drop down value, i.e. if it selects "November" the the INDEX MATCH will fill $N:$N for the SUMIFS formula but I'm getting errors with the placement of the apostrophe.

Old working formula that pulls only a predesignated column:
=SUMIFS('data1'!$N:$N, 'data1'!$J:$J, "criteriaA", 'data1'!$E:$E, "criteriaB")

Nonworking formula I am trying for the first SUMIFS variable to select via INDEX MATCH to a drop down cell value
=SUMIFS('data1'!(INDEX(Sheet2!D14:D25,match(Sheet1!M2,Sheet2!B14:B25,0)), 'data1'!$J:$J, "criteriaA", 'data1'!$E:$E, "criteriaB")

where Sheet1M2 is the drop down box and Sheet2 D14:D25 and B14:B25 are the array I'm trying to reference via drop down box
 
If you get a warning like "Invalid Function" then you don't have the dynamic array functions.
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Thanks @Fluff, it's been a while since I got the update and couldn't remember exactly what happened.
 
Upvote 0
The Filter function is an odd one, all the others give #NAME, but it won't even let you enter filter. :confused:
 
Upvote 0
Dang. We're on a previous OFFICE 365 build that doesn't support Dynamic Arrays, and I was told if I updated then it would mess up some of the Outlook functionality within our company network, so no luck there.
 
Upvote 0
I don't use outlook for anything more than email basics but that sounds like a random excuse from the helpdesk handbook ?

Looking at ways to make it work as efficiently as possible.

How would you identify which quarter to show on the dashboard? Would it simply be based on the selected month in a similar way to my FILTER suggestion, or does it need to be independent of that in some way?

Are we same to assume that there will only be one year in the sheet so that ytd will always be from column J to selected month?

Are you familiar with setting up named ranges?
 
Upvote 0
Maybe, though my guy offered to but said I would probably run into authentication errors and have to roll back to get Outlook to get emails again. Anyway.

Thinking about adding a 4th column to the Sheet2 that gives Q1-Q4 designators to the months - if I added a row to the data sheet and had the 3 cells above Jul-Sept merged/centered with Q1 as the entry, could I just modify the existing formula to sum all 3 columns at once?
 
Upvote 0
Unfortunately, it's not that easy.

If you merge / centre 3 cells, only the first one has value, the other 2 are useless. Merging is one of the most useless features in excel, it can ruin many perfectly good formulas.
Also, summing 3 columns with a single sumifs is not possible (without the use of highly inefficient volatile functions).
All of the ranges in sumifs must be equal in size, so if the range to sum contains 3 columns then each criteria range must also contain 3 columns with the 1st criteria column being relative to the 1st sum column, the 2nd to the 2nd, etc.

When I asked about identifying the quarter or ytd I meant how would you choose which to show in sheet 1?
 
Upvote 0

Forum statistics

Threads
1,215,779
Messages
6,126,843
Members
449,343
Latest member
DEWS2031

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