Averageifs Function with dynamic number of Criteria - Toggle Criteria On/Off

longtail18

New Member
Joined
Oct 23, 2018
Messages
5
Hello all,

I have spent the better part of a day unsuccessfully trying to see if there was a way to toggle the number of criteria on / off to perform a dynamic average.

I have included a screen shot of file - essentially, I would like to toggle on / off certain attributes and perform an average. I am running into issues when I toggle attributes off, the calc does not run on the remaining attributes with Yes.



I tried using a sumproduct formula and still had no luck. Please let me know if this is possible.

Thank you,
Chris
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
One possibility is to use the wildcard option of the SUMIFS/AVERAGEIFS functions. If there is a criterion you don't want to use, just put a * in the cell. For example, in your J6 cell you can use:

=SUMIFS(G:G,C:C,J3,E:E,J4,F:F,J5)

and you'll get the result you have now. If you don't care about the season, just put * in J3, and it will include row 6 in the amount.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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