+ Reply to Thread
Results 1 to 8 of 8

How to extract specific number from a single cell

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    India
    MS-Off Ver
    MS Office 2016
    Posts
    45

    How to extract specific number from a single cell

    HI,

    I am using Excel 2016.

    Need help to extract specific number/value from a single cell.

    The text is in Column "A" and result is in Column "B". Sample sheet attached.


    Thanks
    Nitesh
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: How to extract specific number from a single cell

    There's no common logic here, so I don't think it's going to be easy. Have you covered all eventualities with this sample?
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-02-2013
    Location
    India
    MS-Off Ver
    MS Office 2016
    Posts
    45

    Re: How to extract specific number from a single cell

    Yes Ali and before posting I have tried the solutions available on google but didn't get the result which I am expecting.

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

    Re: How to extract specific number from a single cell

    That's not what I meant at all!

    Does your sample file show all possible types of number that need extracting, or are there other scenarios?

  5. #5
    Registered User
    Join Date
    04-02-2013
    Location
    India
    MS-Off Ver
    MS Office 2016
    Posts
    45

    Re: How to extract specific number from a single cell

    Yes, all possible types of number that need extracting

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: How to extract specific number from a single cell

    This formula caters for the 4 specific examples that you included in your sample file:

    =IF(COUNTIF(A2,"*#*"),MID(A2,FIND("CSI#",A2),12),IF(COUNTIF(A2,"* No.*"),MID(SUBSTITUTE(A2," No.","#"),FIND("CSI#",SUBSTITUTE(A2," No.","#")),12),IF(ISNUMBER(--RIGHT(A2,8)),RIGHT(A2,8),"")))

    You can put it in C2 and copy down, so you can compare directly.

    If you have other variations in your data you need to point these out to us, as ALI has already asked, as the formula may not work fully.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    04-02-2013
    Location
    India
    MS-Off Ver
    MS Office 2016
    Posts
    45

    Re: How to extract specific number from a single cell

    Thanks Pete , its worked

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: How to extract specific number from a single cell

    Glad to hear it - thanks for the rep.

    Pete

+ 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 specific number of characters if word in cell begins with specific text
    By Tapyr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2021, 06:29 PM
  2. [SOLVED] Formula to extract a specific number from data in a cell
    By Doofus1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2020, 07:26 PM
  3. Extract Specific numbers from a Single Cell
    By vikas_newports in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-27-2020, 08:15 PM
  4. extract enlgish letter and number from specific cell
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-05-2020, 05:31 PM
  5. [SOLVED] How to extract 7 single digits from a 7-digit number in one cell into 7 subsequent cells?
    By bansche123 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-02-2020, 07:29 AM
  6. [SOLVED] Extract line items in a cell upto the specific number
    By Sekars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 10:48 PM
  7. [SOLVED] Extract a single number after a specific word that shows up in some cells and not others
    By Trovis84 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-11-2012, 01:09 AM

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