Sum of value based on if all keywords in text thread are present

media_karen

New Member
Joined
Mar 2, 2017
Messages
1
Hi all,

The titles says it all. I would like to get a sum value via lookup based on if the text thread matches my search criteria. Below is an example of what I would like to do!

Placement Name

<tbody>
</tbody>
Spend

<tbody>
</tbody>
NAT_STA_DIS_MOB_BAN_STA_INAPP_300x250_DCM

<tbody>
</tbody>
$100.00

<tbody>
</tbody>
NAT_STA_DIS_MOB_BAN_STA_MW_300x250_DCM

<tbody>
</tbody>
$100.00

<tbody>
</tbody>
NAT_STA_DIS_MOB_BAN_STA_INAPP_728x90_DCM

<tbody>
</tbody>
$200.00

<tbody>
</tbody>
NAT_STA_DIS_MOB_BAN_STA__MW_728x90_DCM

<tbody>
</tbody>
$150.00

<tbody>
</tbody>

<tbody>
</tbody>

Mobile
Spend
MOB INAPP$300.00
MOB MW$250.00

<tbody>
</tbody>

I would like my formula to search though column A on the first able and find all text strings with the words "MOB" & "INAPP" in them. Then it would pull the values corresponding to that string and sum it up. Currently, I have a formula that works with one keyword. But with more variations of the string, I need at least two keywords to make it work. Is that even possible?

Thanks in advance!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I don't know how to do that from scratch. If you can make it work for one text phrase, then use the and() formula and use the same technique for each desired criteria.

Hope this helps
 
Upvote 0
Welcome to Mr Excel

Maybe...


A
B
C
D
E
1
Placement Name​
Spend​
Keywords​
Spend​
2
NAT_STA_DIS_MOB_BAN_STA_INAPP_300x250_DCM​
100,00​
MOB INAPP​
300​
3
NAT_STA_DIS_MOB_BAN_STA_MW_300x250_DCM​
100,00​
MOB MW​
250​
4
NAT_STA_DIS_MOB_BAN_STA_INAPP_728x90_DCM​
200,00​
5
NAT_STA_DIS_MOB_BAN_STA__MW_728x90_DCM​
150,00​

Formula in E2 copied down
=SUMIF($A$2:$A$5,"*"&SUBSTITUTE(D2," ","*")&"*",$B$2:$B$5)

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,216,361
Messages
6,130,180
Members
449,563
Latest member
Suz0718

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