SUMIFS multiple criteria, the CRITERIA (not the CRITERIA RANGE) is a range and it has blank cells

GABxls

New Member
Joined
Feb 12, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I am trying to use the SUMIFS function, but my goal is to make the CRITERIA (not the Criteria Range) dynamic. I mean, I want to be able to add new values to "Event" and "Mode"(image below) without updating the SUMIFs.
In the example below, I want to calculate the TOTAL when the Event (column B) is equal to the "Event List" (column F) and the Mode (column C) is equal to "Modes List" (column G), but I want to write a function that will automatically handle new members to the "Events List" and "Modes List".

SUMIFS does not return the correct result when I add the cells F4:10 and G4:G10 as the criterias (the criterias for which columns B and C wil be evaluated).

1707745909364.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
What formula did you use & in what way didn't it work?
 
Upvote 0
Just make the end of the range bigger than the amount of data you will enter, say 1000, e.g.

=SUMIFS(D$3:D$1000,B$3:B$1000,F3,C$3:C$1000,G3)
 
Upvote 0
What formula did you use & in what way didn't it work?
I used the function below :
=SUM(SUMIFS(D4:D16;B4:B16;F4:F10;C4:C16;G4:G10))
But given that I have blank values in the range F4:F10 and range G4:G10, it does not return the correct sum.
 
Upvote 0
Thanks for that, when using two arrays one must be vertical & the other horizontal. Try
Excel Formula:
=SUM(SUMIFS(D4:D16;B4:B16;F4:F10;C4:C16;torow(G4:G10;1)))
 
Upvote 0
He
Just make the end of the range bigger than the amount of data you will enter, say 1000, e.g.

=SUMIFS(D$3:D$1000,B$3:B$1000,F3,C$3:C$1000,G3)

Thanks for that, when using two arrays one must be vertical & the other horizontal. Try
Excel Formula:
=SUM(SUMIFS(D4:D16;B4:B16;F4:F10;C4:C16;torow(G4:G10;1)))
YES !!! Thank you ! This new formula gives me the chances to make the criteria column (F and G) dynamic. Thank you so much !
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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