• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Pull Text Value from Cell String

exc4libur

Member
Hi guys,

I have a set of data in column A that goes like this:

[A1] Market: Cheetos & Coke | Supermarket X | $ 3.65 [=2.65+1] (Visa)
[A2] Lunch: Chicken (200 g) & Salad | Garden Grill | $ 21 (MasterCard)

I want to extract the numeric value after the money sign from each string "$".

So, what I am supposed to get in Column B is,

[B1] Answer = 3.65
[B2] Answer = 21

Any help would be awesome! :)
Thanks in advance,
Exc4.
 
Hi @exc4libur

I made a name formula "a" (press Ctrl + F3 - Name Manager) with this formula:
=2+FIND("$",A1)

And use this formula (B1):
=MID(A1,a,FIND(" ",A1,a)-a)

Or, if you want to do it without name Manager, you can use this (B1):
=MID(A1,2+FIND("$",A1),FIND(" ",A1,2+FIND("$",A1))-2-FIND("$",A1))

Blessings!
 

Attachments

  • Ej.xlsx
    9.7 KB · Views: 3
Back
Top