Scraping text starting with specific character

Greymud

New Member
Joined
Feb 19, 2016
Messages
42
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
I have column A that has data like this:


LOCATION
LINCOLN (WING01-FLR01-RM15)
SIOUX CITY (WING02-FLR03-RM27)
FRAMINGHAM (WING01-FLRB2-RM52)

In the next column, I would like to display the first 12 characters after the (. I was doing fine until I got to the variable length before the ( and I can't figure out how to shift over. I was using

=LEFT(RIGHT(A2,18),12)

but then I found the city names weren't all the same length (who would make them like that? HA!). I googled an example using FIND for something similar, but I can't figure out how to blend the two. I'm trying the following, bit it's not right when it looks like it should be.

=LEFT(A3,FIND("(",A3)+12)

I may be in sideways and can't see the easy fix, possibly I'm doing this the hard way and don't know about the right function to use.

Any help would be appreciated!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Maybe =MID(B3,FIND("(",B3)+1,12)
 
Upvote 0
Thanks, GraH! Exactly what I needed.

I probably should have known that if there's a LEFT and a RIGHT, there should be a MID.
 
Upvote 0
Maybe you should have had. ?
 
Upvote 0

Forum statistics

Threads
1,215,179
Messages
6,123,495
Members
449,100
Latest member
sktz

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