Formula to sum different objects depending on criteria

Joe Rdz

New Member
Joined
Nov 16, 2017
Messages
6
Hi, I've been trying to achieve something since yesterday but I haven't had any luck yet. Here's what's going on.

6RSXF2 LED P3 40K AWFD MVOLT IS PER7 DDBXD
8RSXF1 LED P4 40K WFL MVOLT IS FAO DBLXD
5RSX1 LED P1 50K R3 MVOLT IS DWHXD
1RSXF1 LED P4 40K AWFD MVOLT RPA DDBXD
5RSXF1 LED P3 40K AWFD MVOLT IS DDBXD

<tbody>
</tbody>

I have those descriptions, with a quantity to their left, as you can see there's DDBXD, DBLXD, DWHXD at the very end of the sentence. What I basically want is a formula that will let me know how many components I need (In this case, how many "IS", "PER7", "RPA") based on their color.

For example, as a result I would like something like this.

CompColorQty needed
ISDDBXD11
ISDBLXD8
ISDWHXD5
RPADDBXD1
PER7DDBXD6

<tbody>
</tbody>


Would appreciate any help on this, thanks!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
How about


Excel 2013/2016
ABFGHI
1CompColorQty needed
26RSXF2 LED P3 40K AWFD MVOLT IS PER7 DDBXDISDDBXD11
38RSXF1 LED P4 40K WFL MVOLT IS FAO DBLXDISDBLXD8
45RSX1 LED P1 50K R3 MVOLT IS DWHXDISDWHXD5
51RSXF1 LED P4 40K AWFD MVOLT RPA DDBXDRPADDBXD1
65RSXF1 LED P3 40K AWFD MVOLT IS DDBXDPER7DDBXD6
Sheet2
Cell Formulas
RangeFormula
I2=SUMPRODUCT((ISNUMBER(SEARCH(G2,B$2:B$6)))*(ISNUMBER(SEARCH(H2,B$2:B$6))),(A$2:A$6))
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,247
Members
448,879
Latest member
oksanana

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