formula to extract the first two characters after a space FROM THE RIGHT

kbishop94

Active Member
Joined
Dec 5, 2016
Messages
476
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
the target string in cell A10 is:

1_6_YAM_Robert_Saltsman_300_KY_3:27

* where the "_" equals ONE space.

I've managed to get the formulas I need when starting over from the LEFT, but I can't get this figured out when needing to start from the RIGHT so that the formula returns:

"KY"


I need the formula to find the first space over from the right (the one after "KY" and before "3:27") and then grab the first TWO characters from that space and going towards the LEFT... it should return "KY"

Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try this

Book1
AB
11 6 YAM Robert Saltsman 300 KY 3:27KY
Sheet1
Cell Formulas
RangeFormula
B1B1=TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",500)),1000),500))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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