Sumif with match index
Good day
I have a single sheet with the following:
Column A - multiselect of "work area"
Column B - "cost"
I want to create a formula in my sheet summary to sum the Cost (Column B) everywhere a specific "work area" is found in Column A.
I've tried the has function, but no success. I also tried match index. See sample formula I tried here
=SUMIF([Work area]:[work area], HAS([Work area]:[Work area], "Projects"), Cost:Cost)
Best Answer
-
Try this:
=SUMIF([Work area]:[work area], HAS(@cell, "Projects"), Cost:Cost)
Answers
-
Try this:
=SUMIF([Work area]:[work area], HAS(@cell, "Projects"), Cost:Cost)
-
Thanks Paul, that worked
-
@Paul Newcome would the HAS formula work if I had multiple items with Projects as a prefix to pick up all of them for example Projects - process, Projects - systems
-
You would need to switch to the CONTAINS function for that which has reversed syntax.
CONTAINS("Projects", @cell)
-
Thanks Paul, that worked
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!