+ Reply to Thread
Results 1 to 5 of 5

Extract Price from String

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    montreal, canada
    MS-Off Ver
    2016
    Posts
    39

    Extract Price from String

    Here's the situation:
    Date Purchase Reward
    04/03/2018 vendor a 10235 ($15.02) 0.15$
    03/29/2018 234 vendor b ($109.47) 0.55$
    03/24/2018 vendor a 10235 ($16.68) 0.17$

    I want to extract the price in the strings of column B to column D. So far the only formula I found extracts all numbers in the string including vendor numbers.
    It's also important to extract with the decimal value still in the same place. (I know that this is easily done by dividing whatever I get from the extraction formula by 100)

    Should look like this:
    Date Purchase Reward Price
    04/03/2018 vendor a 10235 ($15.02) 0.15$ $15.02
    03/29/2018 234 vendor b ($109.47) 0.55$ $109.47
    03/24/2018 vendor a 10235 ($16.68) 0.17$ $16.68

    Thanks!
    Last edited by dominatro; 04-24-2018 at 12:05 AM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Extract Price from String

    Try...
    =SUBSTITUTE(MID(B2,FIND("(",B2)+1,100),")","")*1

    And format cell as currency/accounting.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Extract Price from String

    another way (with PowerQuery)
    Attached Files Attached Files
    Last edited by sandy666; 04-23-2018 at 05:53 PM.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Price from String

    Try this
    Enter formula in D1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D
    1 4/3/2018 vendor a 10235 ($15.02) 0.15$ $15.02
    2 3/29/2018 234 vendor b ($109.47) 0.55$ $109.47
    3 3/24/2018 vendor a 10235 ($16.68) 0.17$ $16.68
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    07-16-2014
    Location
    montreal, canada
    MS-Off Ver
    2016
    Posts
    39

    Re: Extract Price from String

    Thanks guys! all these solutions work!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] extract multi-letter string bits from string depending on size and case
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-18-2017, 10:41 PM
  2. Replies: 4
    Last Post: 10-25-2016, 04:45 PM
  3. [SOLVED] Extract last price depending on recent date
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-27-2015, 09:20 AM
  4. I want to extract Now price and was price in separate column? please help
    By nvn.r10 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-13-2015, 12:55 PM
  5. [SOLVED] Extract all the words from a string for processing, while leaving string intact.
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-10-2014, 02:02 PM
  6. [SOLVED] Tiles price list , extract by size
    By makinmomb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-14-2014, 12:40 PM
  7. [SOLVED] Extract a mainly numeric string (ISSN number) from an arbitrary string
    By Buzzed Aldrin in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-04-2012, 01:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1