Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
SUMIF with OR condition

Hi. We have a calculation that will total various costs based on a manager. It works fine if we only need to include costs for a single manager. However, it doesn't work if we want it to total costs that might be related to more than one manager. We're using an OR condition when checking for the manager. Can you please help?
Here's what we're using:
=SUMIFS([Estimated Cost]:[Estimated Cost], [Spend Aprvd]:[Spend Aprvd], "1", Manager:Manager, ("Bob Smith" or "Jane Doe"), Quarter:Quarter, "Q4FY18 (May-Jul)")
Comments
-
Hello,
I think this is what you're wanting:
=SUMIFS([Estimated Cost]:[Estimated Cost], [Spend Aprvd]:[Spend Aprvd], "1", Manager:Manager, OR(@cell = "Jane Doe", @cell = "Bob Smith"), Quarter:Quarter, "Q4FY18 (May-Jul)")
Replace "Jane Doe" and "Bob Smith" with the names of your managers. You can also add more people to the OR() function in that formula as long as you use @cell with it:
OR(@cell = "Jane Doe", @cell = "Bob Smith", @cell = "Frodo Baggins")
More on the OR function can be found here: https://help.smartsheet.com/function/or
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.9K Get Help
- 429 Global Discussions
- 147 Industry Talk
- 486 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 74 Community Job Board
- 498 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives