+ Reply to Thread
Results 1 to 5 of 5

How to extract Text and Numbers from a Cell

  1. #1
    Registered User
    Join Date
    07-04-2018
    Location
    Los Angeles, CA, USA
    MS-Off Ver
    Office 365
    Posts
    19

    How to extract Text and Numbers from a Cell

    I have been attempting to extract the first series of letters and the last series of numbers from a cell. I have tried using the MIN(), FIND(), RIGHT(), and LEFT() functions but have not been successful as my experience is limited with these functions. The premise is simple enough. Lets assume Column-A has alpha-numeric text strings. The strings will not always be the same length but will be composed the same.

    A1= ".DIS210430C177.5"
    A2 =".TSLA210430P500"
    A3= ".SHOP210430C1020"

    I would need Column-B to list the first series of letters in each row (B1="DIS", B2="TSLA", and B3=SHOP). The letters will ALWAYS follow a decimal point and will not always be the same length.

    I would need Column-C to list the last series of numbers, to include any decimal points (C1= "177.5", C2= "500", C3= "1020") The numbers will ALWAYS follow a "C" or a "P" and will not always be the same length.

    For some reason I can't wrap my head around how to accomplish this.....any and all help would be HUGELY appreciated!!!!

    Thank you in advance!!

    Mike

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: How to extract Text and Numbers from a Cell

    array formulas (use , in stand of ; according your regional settings)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In the case of decimal separator is dot then
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by BMV; 04-27-2021 at 02:35 PM.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to extract Text and Numbers from a Cell

    The following formulas seem to work for your examples
    In B1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In C1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    07-04-2018
    Location
    Los Angeles, CA, USA
    MS-Off Ver
    Office 365
    Posts
    19

    Re: How to extract Text and Numbers from a Cell

    Those worked fantastic.....I really need to practice this more..... but i learned alot from your answers. Any chance i could get your help one more time? As I'm sure you noticed, the middle numbers correspond to a date. can those middle numbers be extracted and converted to a date?

    ex.

    A1= ".DIS210430C177.5"

    Would need B1 to be a date 04/30/2021....

    I very much appreciate all your help.......sincerely!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to extract Text and Numbers from a Cell

    Sorry for the delay. Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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 numbers from a text in excel cell
    By Petra07 in forum Excel General
    Replies: 2
    Last Post: 01-28-2015, 03:56 PM
  2. Replies: 5
    Last Post: 12-05-2013, 01:35 AM
  3. extract numbers from a cell, before a specific text
    By xlepws in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-11-2013, 01:46 PM
  4. [SOLVED] Formula to Extract Numbers from Text Cell
    By MHamid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2012, 04:08 PM
  5. Extract numbers from cell with Text and Numbers
    By wiredwrx in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-18-2006, 06:00 PM
  6. [SOLVED] How do I extract numbers from a cell with both text and numbers?
    By SHANNON in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2005, 10:35 PM
  7. [SOLVED] extract numbers from cell containing text & numbers
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2005, 03:10 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