Can i separate the last numbers into another column

Neha83

New Member
Joined
Oct 5, 2016
Messages
15
Office Version
  1. 365
Platform
  1. MacOS
Ive tried text to column in every way possible but as some are 2 digit and some are 3 digit . It doesnt seem possible. Please let me know if you know what i can look at to separate the digits - any tips would be great.

1709309445014.png
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Excel Formula:
=TEXTAFTER(A1:A7," ",-1)

or for earlier excel versions

Excel Formula:
=MID(A1,SEARCH(" ?A ",A1)+4,9)
 
Upvote 0
Solution
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hi

May I ask what the +4 is doing in the formula =MID(A1,SEARCH(" ?A ",A1)+4,9).

I see that it is searching for "A" which is at the end of the string but can't quite see why the +4 is required.

Many thanks
 
Upvote 0
The search function tries to match a space, followed by anything (?), then the letter A and then a space again.
It will return the position of that pattern. The pattern starts at the first space so you have to add +4 positions (length of the pattern) to get to the start of the number at the end.
 
Upvote 1
Got it, thank you! (I thought it was looking for the "A" at the end not how you described)
 
Upvote 0

Forum statistics

Threads
1,215,151
Messages
6,123,321
Members
449,094
Latest member
Chestertim

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