Hello! I'm trying to extract dollar amounts from a cell that contains additional data and the dollar amounts can vary in position. The dollar amounts are all formatted with a $ but are not all the same length after. For example, if you look at the below screenshot, you'll see column R is labeled 'Notes / Ship Rates / Tracking' and column S is where I'm trying to extract the 'Ship Rates' to.
I found a similar situation through a different post which provided the formula you can see being used in the screenshot:
=MID(R2,FIND("$",R2),FIND(" ",R2&" ",FIND("$",R2))-FIND("$",R2))
As you can see, in Column S the formula is extracting the shipping rate, but it's also pulling over the first word (Tracking) in the next line down. I've tried adjusting the formula but can't seem to figure out how to get it to pull only the Shipping rate without any additional information. Any thoughts or suggestions?
Here is the link to the post I was referencing in case it may be helpful.
I found a similar situation through a different post which provided the formula you can see being used in the screenshot:
=MID(R2,FIND("$",R2),FIND(" ",R2&" ",FIND("$",R2))-FIND("$",R2))
As you can see, in Column S the formula is extracting the shipping rate, but it's also pulling over the first word (Tracking) in the next line down. I've tried adjusting the formula but can't seem to figure out how to get it to pull only the Shipping rate without any additional information. Any thoughts or suggestions?
Here is the link to the post I was referencing in case it may be helpful.
Extract from cell dollar amounts that vary in position and length
I'm trying to extract dollar amounts from a cell. The dollar amounts are all formatted with a $ but are not all the same length after the $, e.g. $100, $1235, $25, etc. Also, the dollar amounts appear in different positions in the various text strings, e.g. $100 gift certificate, Spa package for...
www.mrexcel.com
Last edited by a moderator: