SUMIF vs. SUMIFS
I am looking to add the total hotel night stays from multiple labels in a single criteria column. This is my formula, but it results in "0" which is incorrect:
=SUMIFS(NIGHTS10:NIGHTS38, AFFILIATION10:AFFILIATION38, "Researcher", AFFILIATION10:AFFILIATION38, "RAN", AFFILIATION10:AFFILIATION38, "ECD awardee")
NIGHTS:NIGHTS = # of hotel night stays
AFFILIATION:AFFILIATION = location of labels (criteria)
SUMIF or SUMIFS? What am I missing in the formula above if using SUMIFS?
Patty
Comments
-
Hi Patty,
Try this.
SUMIFS adds numbers within a range that meet multiple criteria so all criteria needs to be true for the formula to sum.
=SUMIFS(NIGHTS10:NIGHTS38; AFFILIATION10:AFFILIATION38; "Researcher") + SUMIFS(NIGHTS10:NIGHTS38; AFFILIATION10:AFFILIATION38; "Ran") + SUMIFS(NIGHTS10:NIGHTS38; AFFILIATION10:AFFILIATION38; "ECD awardee")
The same version but with the below changes for your and others convenience.
=SUMIFS(NIGHTS10:NIGHTS38, AFFILIATION10:AFFILIATION38, "Researcher") + SUMIFS(NIGHTS10:NIGHTS38, AFFILIATION10:AFFILIATION38, "Ran") + SUMIFS(NIGHTS10:NIGHTS38, AFFILIATION10:AFFILIATION38, "ECD awardee")
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did it work?
Have a fantastic week!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
YES! WOOHOO!!
thank you, Andree. -
Great!
Happy to help!
Best,
Andrée
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives