SUMIFS array based on switches

mountainman88

Board Regular
Joined
Jun 22, 2019
Messages
109
Office Version
  1. 2016
Platform
  1. Windows
I have a SUMIFS formula as follows:

=SUMIFS(RptData!X:X,RptData!$A:$A,G8,RptData!$B:$B,G9,RptData!$C:$C,G10,RptData!$D:$D,$B17,RptData!$F:$F,$C17,RptData!$G:$G,$D17,RptData!$I:$I,G11,RptData!$K:$K,G12,RptData!$J:$J,G13)

This part:

RptData!$K:$K,G12

G12 is a drop-down list of items which are layers numbered 1 to 4.

What I'd like to achieve is that instead of just picking 1 layer from the drop down, can something like the following be linked to:

1700161716533.png

(this range is I3:J6)

And then each layer will be included in the SUMIFS if it is marked as 'include'

This formula needs to be able to be dragged across and down.

Thanks
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Can you post an example file that shows desired output? I'm not understanding what you are trying to accomplish
 
Upvote 0
Can you post an example file that shows desired output? I'm not understanding what you are trying to accomplish
It’s a SUMIFS formula at the moment g12=layer 1 and therefore the SUMIFS only pulls layer 1

I’m asking for a modification and likely an array formula that SUMIFS any layer that is marked as ‘include’ not just layer 1
 
Upvote 0
Sounds like a job for =SUM(FILTER()). Without an example file, I'm afraid I won't be much help.
 
Upvote 0

Forum statistics

Threads
1,215,335
Messages
6,124,326
Members
449,155
Latest member
ravioli44

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