Find a value in a string specific to a text

just_lookin_009

New Member
Joined
Jan 16, 2014
Messages
5
Column DataResult
NW-Nrth(20% / $2.0M),0
SW-Rail(0% / $0.M),0%
NW-Calif(5% / 390M), SW-DMA(5% / $39.0M), UGD-UGD W(2 / 179.M), 5%
,0
East-Trans(20% / $80.0M), SW-Rail(20% / $8.0M),20%
TISW-TIC G(40% / $10.0M,SW-Rail(20% / $5.0M)20%

<tbody>
</tbody>

I have a column that changes values but I need to find the % value after the "KSW-Rail" or "KSW-DMA" text, there are around 800 lines of data that will change/ update weekly

Thanks for your help!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Column DataResult
NW-Nrth(20% / $2.0M),0
SW-Rail(0% / $0.M),0%
NW-Calif(5% / 390M), SW-DMA(5% / $39.0M), UGD-UGD W(2 / 179.M),5%
,0
East-Trans(20% / $80.0M), SW-Rail(20% / $8.0M),20%
TISW-TIC G(40% / $10.0M,SW-Rail(20% / $5.0M)20%

<tbody>
</tbody>

I have a column that changes values but I need to find the % value after the "KSW-Rail" or "KSW-DMA" text, there are around 800 lines of data that will change/ update weekly

Thanks for your help!

Looking at your sample data, it appears the text that you really want to search by is not KSW-Rail or KSW-DMA, but SW-Rail and SW-DMA, is that correct?
 
Upvote 0
If there is no W-Rail in the text try this:

=TRIM(MID(A2,MIN(FIND({"W-Rail","SW-DMA"},A2&"W-RailSW-DMA"))+7,3))
 
Upvote 0

Forum statistics

Threads
1,214,865
Messages
6,121,988
Members
449,060
Latest member
mtsheetz

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