How to extract last set of digit from text string?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
505
Office Version
  1. 2010
Platform
  1. Windows
Dear All,
I do have a following sample set as follows.
I would ike to extract the last set from the string as mentioned below.
Could somebody help me with the formula which can perfom the task as desired?
Sheet1

*AB
1Sample DataDesired Result
2AA BB CCC DDDDDD
3AAA B CC DDD EEEE
4AA BBB C DDDD E FFF GGGG
5AAAA BB CCC DDDD EE FFFFFFFF

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 198px;"><col style="width: 93px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie Html" target="_blank"> Excel Jeanie HTML 4
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Paella1

Active Member
Joined
Mar 10, 2005
Messages
382
In B2:
=RIGHT(A2,LEN(A2)-SEARCH("^^",SUBSTITUTE(A2," ","^^",LEN(A2)-LEN(SUBSTITUTE(A2," ","")))))
 

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
505
Office Version
  1. 2010
Platform
  1. Windows
Dear Paol:eek:,
Thank you so much for the mesmerising solution.
Really appreciate your support & help:)
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,976
Office Version
  1. 2016
Platform
  1. Windows
Another way...


=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",300)),300))
 

Watch MrExcel Video

Forum statistics

Threads
1,129,685
Messages
5,637,809
Members
416,983
Latest member
LessThanAverageUser

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
Top