Get text from string after last number

sharky12345

Well-known Member
Joined
Aug 5, 2010
Messages
3,430
Office Version
  1. 2016
Platform
  1. Windows
Is there a quick way I can extract the text in a string after the last number?

My strings are all letters, then numbers, then letters again - the numbers always fall in the middle of the string, but I need the text at the end, excluding any spaces.

Is it possible please guys?
 
Is there a quick way I can extract the text in a string after the last number?

My strings are all letters, then numbers, then letters again - the numbers always fall in the middle of the string, but I need the text at the end, excluding any spaces.

Is it possible please guys?
Are you really still using XL2016? If so, then I cannot help you as I only have XL365 here. However, if you do happen to have XL365 or XL2024, then this single formula will generate all of the text for the specified range...

=TEXTAFTER(A1:A3,SEQUENCE(10,,0),-1)
 
Upvote 0
I don't have that old of a version to test this, but maybe:
=MID(A1,MATCH(2,IF(ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),1,""))+1,100)
 
Upvote 0

Forum statistics

Threads
1,226,835
Messages
6,193,227
Members
453,781
Latest member
Buzby

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