SUMIFS using multiple validation list filters

AusSteelMan

Board Regular
Joined
Sep 4, 2009
Messages
208
Hi everyone,

I have the following "Summary" sheet - the start of a basic dashboard i suppose you could say.

Excel Workbook
DEFGHIJKL
9SectionIdea CategoryIdea typeStatusPlanned SavingSavings to Date
10DistributionSV28 - Shut Down Capital (above) 500KCost SavingStartedJuly 2012$ 50,000$ 52,900
11August 2012$ - $ -
12September 2012$ - $ -
Summary



The data is sourced from sheet "SavingsIdeas"

The criteria in cells D10:G10 are all selected from validation lists (on both sheets)

For the example above, the results in K10 and L10 are correct - so I am happy that the formulae work OK

What I would like to be able to do though, is not have all 4 criteria selected. For example, I would like to leave "Section" (D10) blank and have the results return the totals for all sections (7 in all at the moment), but still use the other criteria. I would like to do this for all the criteria, to a point where if no criteria was selected, then the total for all 4 criteria would be summed and displayed.

Hope this makes sense.

I figure I could probably pull it off with a complex series of other IF statements, but thought i'd check if there was an simpler method.

Many thanks for reading and any suggestions you can provide.

Have a great day,
Darren
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi Darren,

Here's one way...

=SUMIFS(SavingsIdeas!$G:$G,SavingsIdeas!$C:$C,IF(ISBLANK($J10),">0",J10),
SavingsIdeas!$B:$B,IF(ISBLANK(D10),"*",D10),SavingsIdeas!$E:$E,IF(ISBLANK(E10),"*",E10),
SavingsIdeas!$F:$F,IF(ISBLANK(F10),"*",F10),SavingsIdeas!$J:$J,IF(ISBLANK(G10),"*",G10))
 
Upvote 0
Thanks Jerry. Works great of course.

I thought something like that with the IF function may be required. I knew I needed a method to choose any value (incl blank), but thanks for reminding me that I needed the "*" in there. I had forgotten about making it a wildcard.

Best regards,
Darren
 
Upvote 0

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

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