Pull number at end of text

NormChart55

Board Regular
Joined
Feb 22, 2022
Messages
50
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am trying to pull a specific number from the end of data in a row. The problem is that the character length is not always the same. So trying to use =RIGHT() and pull that can pull extra characters, etc. I am trying to find a way to pull just the data that is there through the end. Example below.

example
Store Name City State Store Number - (Best Store Best City Best State XC5559a)

Need Store Number which varies each line -> XC5559a from the above example.

Store number always starts with "XC" and is the only time that shows in the data but can have 4,5,6, etc. characters after

Any thoughts on a formula to grab that successfully?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
How about
Excel Formula:
=SUBSTITUTE(MID(A2,FIND("XC",A2),100),")","")
 
Upvote 0
Solution

Forum statistics

Threads
1,226,530
Messages
6,191,591
Members
453,666
Latest member
madelineharris

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