How do I use the SUMIFS function with the OR function?
I am trying to sum the total of amounts listed in column 1 if a specific name is in column2, or column3, or column4, or column5, or column6 AND the column7 ="won".
Names can be listed in multiple columns in a single row. I want to avoid double counting an amount.
I cannot seem to find a similar formula but I read it is possible to use the "OR" function within a "SUMIFS" function.
Best Answer
-
It is possible to use an OR function in a SUMIFS, but it is not the correct solution for this particular case. My suggestion would be to use a helper column that joins each of the name columns into a string and then incorporate a CONTAINS function into the SUMIFS while pointing at this new helper column.
Answers
-
It is possible to use an OR function in a SUMIFS, but it is not the correct solution for this particular case. My suggestion would be to use a helper column that joins each of the name columns into a string and then incorporate a CONTAINS function into the SUMIFS while pointing at this new helper column.
-
Thank you! This worked perfectly!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!