How to extract last set of digit from text string?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
513
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

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
513
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
37,963
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Another way...


=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",300)),300))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,185
Messages
5,857,833
Members
431,900
Latest member
Paradime0346

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