Avatar of ekaplan323
ekaplan323
Flag for United States of America asked on

Excel 2013 Structured Reference - SUMIFS Multiple Possible Criterion using OR?

I am pulling data using SumIFS and one of the criteria can be any one of 3 answers, "Y", "B", or "E".  Is this possible? Cant get the syntax to work.
Microsoft ExcelSpreadsheets

Avatar of undefined
Last Comment
ekaplan323

8/22/2022 - Mon
regmigrant

how about:
=SUMIFS(D5:D8,E5:E8,"y")+ SUMIFS(D5:D8,E5:E8,"b") + SUMIFS(D5:D8,E5:E8,"e")
ekaplan323

ASKER
I know I can do that, however, the formula has 3 or 4 other criteria and that makes for a long formula.  I am also using absolute values which adds to the length.
Subodh Tiwari (Neeraj)

One way is this...

Assuming the criteria range is B2:B20 and range to be summed is A2:A20 then try this....
You can add more criteria inside the curly braces.

=SUMPRODUCT((ISNUMBER(SEARCH({"Y","B","E"},B2:B20)))*A2:A20)

Open in new window

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
SOLUTION
Professor J

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ekaplan323

ASKER
Here is the formula I put in the Letters after Flight Code not using all of the criteria just the first

=SUMIFS(DataTable[[Bus Leg Miles]:[Bus Leg Miles]],DataTable[[Serial]:[Serial]],'Paper Report Reconciliation'!$H15,DataTable[[Flight Code]:[Flight Code]],{"B","Y","E"},DataTable[[Unique Code]:[Unique Code]],1,DataTable[[Passenger Usage Code]:[Passenger Usage Code]],"Personal Entertainment",DataTable[[Both P&E Code]:[Both P&E Code]],"0")

Bus Leg Miles is the sumrange, the criteriaranges are the other items.
ASKER CERTIFIED SOLUTION
Jerry Paladino

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ekaplan323

ASKER
Great work.