Question on returning last word in text string

leopardhawk

Well-known Member
Joined
May 31, 2007
Messages
611
Office Version
  1. 2016
Platform
  1. Windows
I am wondering if it is possible for a formula to return only the last part of a text string (without the $) from another cell?

ie. in this example, the formula would return 81416.

"over $47,630 up to $81,416"

Hoping for a solution.

Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Assuming that all entries look like that and have two "$" in them, try this for an entry in cell A1:
Code:
=SUBSTITUTE(MID(A1,FIND("$",A1,FIND("$",A1)+1)+1,LEN(A1)),",","")

If you need to return a numeric value instead of text, try this variation instead:
Code:
=MID(A1,FIND("$",A1,FIND("$",A1)+1)+1,LEN(A1))+0
 
Last edited:
Upvote 0
Hi,

Result converted to Real number:


Book1
AB
1over $47,630 up to $81,41681416
Sheet667
Cell Formulas
RangeFormula
B1=RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99)+0
 
Last edited:
Upvote 0
Many thanks to all three of you who responded! I have tested all three solutions and they all work perfectly. I also appreciate your foresight that I would want the result converted to a real number!

Thank you so much... I also gain a better insight into some of the more subtle nuances of Excel. Always learning!

Cheers!
 
Upvote 0
Many thanks to all three of you who responded! I have tested all three solutions and they all work perfectly. I also appreciate your foresight that I would want the result converted to a real number!

Thank you so much... I also gain a better insight into some of the more subtle nuances of Excel. Always learning!

Cheers!

It is correct, in excel we are always learning.
Thank you for the feedback.
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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