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
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives