+ Reply to Thread
Results 1 to 5 of 5

Extract cell text string between 2 different characters

  1. #1
    Registered User
    Join Date
    01-31-2018
    Location
    London
    MS-Off Ver
    16
    Posts
    31

    Extract cell text string between 2 different characters

    Hi Everyone,

    I need some help with the following data column where i have a list of supplier codes and names that need to have just the number element extracted without any preceding zeros, however, gets a bit more tricky as i don't know the number of preceding zeros for each vendor code as per example below;

    000000213908 - ACme data systems
    0009065 - BB4 enterprise9
    0000000012309 - Evans ltd

    Values that should be returned are 213908, 9065 and 12309 respectively.

    The position of the dash after the number is always in the same place.

    Any formula ideas that would help?

    Thanks

    Shallabee.

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Extract cell text string between 2 different characters

    This might do the trick...

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

  3. #3
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Extract cell text string between 2 different characters

    the position of the dash after the number is always in the same place.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-31-2018
    Location
    London
    MS-Off Ver
    16
    Posts
    31

    Re: Extract cell text string between 2 different characters

    Quote Originally Posted by PaulSP8 View Post
    This might do the trick...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks, this partly works but includes the Supplier name that should be removed so only 3965 remains.

    3965 - ABC 123 Ltd

  5. #5
    Registered User
    Join Date
    01-31-2018
    Location
    London
    MS-Off Ver
    16
    Posts
    31

    Re: Extract cell text string between 2 different characters

    Quote Originally Posted by XLent View Post
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Excellent, many thanks, just what i needed.

+ 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] Remove duplicate characters from a text string in a cell
    By sam99 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-22-2020, 06:10 PM
  2. Extract Characters from a string and paste in a new cell
    By georgiabrown in forum Excel General
    Replies: 4
    Last Post: 12-21-2018, 07:50 AM
  3. Extract Characters from a string and paste in a new cell
    By georgiabrown in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2018, 03:26 AM
  4. Extract text between two characters in a string - varing text length
    By luv2birdie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2014, 06:10 PM
  5. [SOLVED] Extract left characters from string with exception of 2 right characters
    By sweetkel23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2012, 10:45 PM
  6. EXTRACT all characters from a string
    By Blake 7 in forum Excel General
    Replies: 2
    Last Post: 03-11-2011, 07:06 AM
  7. Extract Text characters only from a cell
    By judasdac in forum Excel General
    Replies: 2
    Last Post: 05-06-2009, 12:22 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