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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives