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
Help Article Resources
Categories
Check out the Formula Handbook template!