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
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives