First time posting here - stuck on a problem!
I want to SUM a numerical column if the corresponding text column contains one of several strings of text.
By way of example, if the word "hotdog" appears in column E, I want to sum the corresponding numbers in column D
This works well enough if I use: =SUMIF(E:E, "*hotdog*",D:D)
Where I am getting stuck is if I try to sum cells with multiple alternative words. For example, if the strings "hotdog" OR "burger" appear in column E, I want the sum of column D.
All of the solutions I have found on the Internet so far ignore one twist: If a cell contains BOTH "hotdog" AND "hamburger" then I only want to account for the number in column D once. For this reason, the following formula is not working: =SUM(SUMIFS(D:D,E:E,{"*hotdog*","*burger*"})) That formula seems to work up until it finds a cell containing both strings, and then it doubles the column D output.
Who has ever addressed this before? Thanks!
Bookmarks