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.

[TABLE="width: 388"]
<tbody>[TR]
[TD]6[/TD]
[TD]RSXF2 LED P3 40K AWFD MVOLT IS PER7 DDBXD[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]RSXF1 LED P4 40K WFL MVOLT IS FAO DBLXD[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]RSX1 LED P1 50K R3 MVOLT IS DWHXD[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]RSXF1 LED P4 40K AWFD MVOLT RPA DDBXD[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]RSXF1 LED P3 40K AWFD MVOLT IS DDBXD[/TD]
[/TR]
</tbody>[/TABLE]

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.

[TABLE="width: 214"]
<tbody>[TR]
[TD]Comp[/TD]
[TD]Color[/TD]
[TD]Qty needed[/TD]
[/TR]
[TR]
[TD]IS[/TD]
[TD]DDBXD[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]IS[/TD]
[TD]DBLXD[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]IS[/TD]
[TD]DWHXD[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]RPA[/TD]
[TD]DDBXD[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]PER7[/TD]
[TD]DDBXD[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]


Would appreciate any help on this, thanks!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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