+ Reply to Thread
Results 1 to 13 of 13

extract number value from text string

  1. #1
    Registered User
    Join Date
    01-07-2009
    Location
    Summit, New Jersey
    MS-Off Ver
    Office 365
    Posts
    23

    extract number value from text string

    I am trying to extract a number from a text string to multiply by a number value in another cell. I've attached the spreadsheet for your perusal (I think).
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: extract number value from text string

    Which cell contains the text string you're trying to extract the number from?

  3. #3
    Registered User
    Join Date
    01-07-2009
    Location
    Summit, New Jersey
    MS-Off Ver
    Office 365
    Posts
    23

    Re: extract number value from text string

    282E:290E are the cells

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: extract number value from text string

    What bit of those cells do you want to extract? You know what you want, but you have not made it clear to us.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: extract number value from text string

    I'm taking a guess at what you're looking for. If this is not what you want, please reply to AliGW's request for more information.
    Please Login or Register  to view this content.
    This relies on the text string being structured as it is in E282:E290. The formula may have to be adjusted if the structure of the text string changes.

  6. #6
    Registered User
    Join Date
    01-07-2009
    Location
    Summit, New Jersey
    MS-Off Ver
    Office 365
    Posts
    23

    Re: extract number value from text string

    Thanks McIvosh. I'll try to figure out what you did, but it works.

  7. #7
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: extract number value from text string

    MID gives you a substring from a string, based on a starting point and a length. The formula looks for the "@" and adds 2 to get to the starting point, and then looks for the "'" character and subtracts the starting point to get the needed length. Hopefully that makes sense.

  8. #8
    Registered User
    Join Date
    01-07-2009
    Location
    Summit, New Jersey
    MS-Off Ver
    Office 365
    Posts
    23

    Re: extract number value from text string

    See Melvosh's post. He understood.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: extract number value from text string

    Is that meant to be a dig at me for asking for more detail?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Registered User
    Join Date
    01-07-2009
    Location
    Summit, New Jersey
    MS-Off Ver
    Office 365
    Posts
    23

    Re: extract number value from text string

    I was attempting the use of the RIGHT function (RIGHT(3)) to extract the number at the end of the column "E" and multiply by the number in the cell in the "G" column, but got the "Value" error because I couldn't get the "E" column number (text) formatted as number. Your solution works of course, but I don't know why it doesn't run up against the aforementioned problem.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: extract number value from text string

    You can sometimes get round the text issue:

    =VALUE(RIGHT(text_string,3))

    Or:

    =—RIGHT(text_string,3)

  12. #12
    Registered User
    Join Date
    01-07-2009
    Location
    Summit, New Jersey
    MS-Off Ver
    Office 365
    Posts
    23

    Re: extract number value from text string

    OK. No digs intended. BTW, my wife and I visited a Saxon chapel west of London years ago. We met a charming English lady who was impressed that two Yanks took the time to visit this out of the way historic stone building. She was rather chagrined by our use of "OK", and told us it was not proper English, to which we both responded, automatically, "OK". Oops.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: extract number value from text string

    LOL!

    Glad to have helped.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Extract number from text string
    By dchubbock in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-19-2017, 07:44 PM
  2. Need Formula to extract number from text string
    By tuongtu3 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-28-2015, 06:01 PM
  3. Need to extract number from Text String
    By EricJonke in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2014, 11:16 AM
  4. Extract the first Number from a Text String
    By ARGK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-23-2013, 07:36 AM
  5. [SOLVED] How to Extract A Number from String if Text within the String Equals XYZ
    By tyrsfury in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-15-2012, 03:30 PM
  6. Extract number from text string
    By jjjjj55555 in forum Excel General
    Replies: 2
    Last Post: 04-04-2007, 04:38 PM
  7. [SOLVED] Extract a number from a text string?
    By Brian in forum Excel General
    Replies: 8
    Last Post: 01-09-2006, 05:20 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