+ Reply to Thread
Results 1 to 11 of 11

Text/Number String Formula Help

  1. #1
    Registered User
    Join Date
    02-02-2017
    Location
    Houston
    MS-Off Ver
    2010 and 2013
    Posts
    28

    Question Text/Number String Formula Help

    I have some ID's that I need to extract the numbers out of and concatenate them. I received help on extracting the first set of numbers and it works perfectly, now I can't seem to figure out how to extract the last set of numbers. The strings are as follows:

    NCAN4085DC1
    NCAT251DC5
    PWMB2023DC11
    DFWL123AC23

    The formula someone from this forum gave me to extract first set of numbers is: =LOOKUP(10000,--MID(B2,5,{1,2,3,4,5}))
    The first set of numbers will not begin with a zero and always have the four letter prefix.
    The second set of numbers will be 1 or 2 digits and always be preceded by 'DC' or 'AC'.

    What I am wanting is:
    40851
    2515
    202311
    12323

    Thanks in advance for the expert help that I know is out there! :-)

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Text/Number String Formula Help

    Try this:

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

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Text/Number String Formula Help

    Perhaps

    =LOOKUP(100,--RIGHT(A1,{1,2}))

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

    Re: Text/Number String Formula Help

    another way
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and Control+Shift+Enter

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Text/Number String Formula Help

    Another way (CSE):

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

  6. #6
    Registered User
    Join Date
    02-02-2017
    Location
    Houston
    MS-Off Ver
    2010 and 2013
    Posts
    28

    Re: (SOLVED)Text/Number String Formula Help

    You guys ROCK...
    thanks so much.
    All of them work. I will determine which works best with data set.
    Thanks so much for solving what I have been trying to solve myself for past hour or so...

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

    Re: Text/Number String Formula Help

    TEXTJOIN()
    This function is available if you are an Office 365 subscriber and have the latest version of Office installed. It's also available with Excel Online, Excel Mobile, Excel for iOS, and Excel for Android phones and tablets.

  8. #8
    Registered User
    Join Date
    02-02-2017
    Location
    Houston
    MS-Off Ver
    2010 and 2013
    Posts
    28

    Re: Text/Number String Formula Help

    Thank YOU!

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

    Re: Text/Number String Formula Help

    If the basic problem is solved
    - it's always a good practice to show respect to the person(s) who have helped you
    - is a click on the Add Reputation first (left lower corner of the post of person(s) who helped you) and then
    - mark the thread as SOLVED (top right corner over your first post - Thread Tools). This is important for all of us,

    Thanks

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

    Re: Text/Number String Formula Help

    Thanks Zbor

  11. #11
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Text/Number String Formula Help

    Deserved

+ 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. Adding and removing String text to number in excel formula
    By xpnciv in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-24-2016, 01:23 AM
  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. [SOLVED] Need a formula to isolate a number from a text string
    By chicolocal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2013, 01:19 PM
  4. [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
  5. Formula to Count the Number of Occurrences of a Text String in a Range
    By poug1903 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-10-2011, 06:49 AM
  6. Replies: 1
    Last Post: 09-18-2009, 04:15 PM
  7. [SOLVED] Splitting a text string into string and number
    By mcambrose in forum Excel General
    Replies: 4
    Last Post: 02-21-2006, 11:50 AM

Tags for this Thread

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