+ Reply to Thread
Results 1 to 4 of 4

Pulling Number from Text String

  1. #1
    Registered User
    Join Date
    03-17-2017
    Location
    California - US
    MS-Off Ver
    MS 2010
    Posts
    27

    Pulling Number from Text String

    Good morning all,

    I am wondering the easiest way to pull a number from a column where the cells will be given an identifier number in addition to the name.

    For example,

    [10-001 Customer Name] Normally I would do a left function, but my department is starting to see more instances of [10-1000 Customer Name] and we're expecting to see [10-10000 Customer Name] in the future.

    I'm wondering if it's possible to do some sort of TRIM(SUBSTITUTE("-","",) etc. to get the "-" symbol in the ID to pull just the numeric values, but I'm not sure how to extract that value from a text string.

    Any leads?


    Thanks!!
    Scott

  2. #2
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: Pulling Number from Text String

    How about =LEFT(A2,FIND(" ",A2)-1)

  3. #3
    Registered User
    Join Date
    03-17-2017
    Location
    California - US
    MS-Off Ver
    MS 2010
    Posts
    27

    Re: Pulling Number from Text String

    Yep that totally works! Thanks - never used FIND before.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Pulling Number from Text String

    In the case of your samples - what is your expected result???
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. Finding and Pulling Text Mid String
    By tdoolittle13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-11-2014, 05:27 PM
  2. [SOLVED] Pulling numbers out of text string
    By snoopy1461 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-27-2013, 12:17 PM
  3. [SOLVED] pulling out 12 digit number from an alphanumeric string
    By susan doyle in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2013, 08:49 AM
  4. Replies: 2
    Last Post: 07-02-2013, 11:35 AM
  5. [SOLVED] Pulling a string of text
    By Montoro22 in forum Excel General
    Replies: 5
    Last Post: 06-11-2013, 11:36 AM
  6. [SOLVED] pulling text from the middle of a string
    By DRFILL in forum Excel General
    Replies: 3
    Last Post: 09-21-2012, 11:35 AM
  7. Pulling only the number out of a string
    By bconner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2008, 03:32 PM
  8. Help w pulling alpha letters out of text string
    By BattleShip in forum Excel General
    Replies: 3
    Last Post: 01-18-2007, 03:26 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