Using SUMIF for multiple values separated by comma??

HockeyDiablo

Board Regular
Joined
Apr 1, 2016
Messages
182
I will have column information that will list entries like this:
DD, DD9, SD, LHR, HIGHLIFT
BOTTOM SECTION, DD, D9
DD, PVC DD, SD, LHR, HIGHLIFT

Is there a way to run a SUMIF or other formula on these and separate the values from the commas? I am familiar with Text to Columns but I will be using 22 unique values "DD, DD9..."


DD0.3
DD90.5
SD0.8
LHR1.3
HIGHLIFT1.5
BOTTOM SECTION2

<colgroup><col><col></colgroup><tbody>
</tbody>

So the outcome would look something like this.

DD, DD9, SD, LHR, HIGHLIFT 4.25
BOTTOM SECTION, DD, D9 2.75
DD, SD, LHR, HIGHLIFT 3.75

Appreciate it.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
The below has 2 similar options. Personally I'd go with SUMPRODUCT.

Excel Workbook
ABCDEFGHI
1DD0.3
2DD90.5
3SD0.8
4LHR1.3
5HIGHLIFT1.5
6BOTTOM SECTION2
7
8
9
104.44.4DDDD9SDLHRHIGHLIFT
112.32.3BOTTOM SECTIONDD
123.93.9DDSDLHRHIGHLIFT
Sheet1
 
Upvote 0
Welcome to Mr Excel

Maybe this


A
B
C
D
E
1
Code​
Value​
Codes​
Total​
2
DD​
0,3​
DD, DD9, SD, LHR, HIGHLIFT​
4,4​
3
DD9​
0,5​
BOTTOM SECTION, DD, DD9​
2,8​
4
SD​
0,8​
DD, SD, LHR, HIGHLIFT​
3,9​
5
LHR​
1,3​
6
HIGHLIFT​
1,5​
7
BOTTOM SECTION​
2​

Formula in E2 copied down
=SUMPRODUCT(--ISNUMBER(SEARCH($A$2:$A$7&",",D2&",")),$B$2:$B$7)

Hope this helps

M.
 
Upvote 0
That absolutely worked for me. Now testing time. Thank you so much for your time in helping me with this.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top