+ Reply to Thread
Results 1 to 6 of 6

How to use the LEFT function to extract just characters

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    How to use the LEFT function to extract just characters

    Hello,

    I need to know a way to extract just the first letters of a post code. I am fine using LEFT, I use it all the time with LEN and FIND amongst other things, but normally it is just to find the first space before extracting a string.

    However I need to know how to get the LEFT function to know when it moves past characters and for it to stop as soon as it finds a digit.

    Post COdes in the data I have will be normal UK standard, so could be two characters before the digits or a single character before the digits....

    CB8 or S4.

    Howe can I extact just the single or double characters and not the digits?

    Regards

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

    Re: How to use the LEFT function to extract just characters

    You could do this with PowerQuery (Get & Transform) - provide a workbook with sample data and I'll show you how.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to use the LEFT function to extract just characters

    Try with formula
    Enter in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 CB8 CB
    2 S4 S
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to use the LEFT function to extract just characters

    Hi,

    One way, no doubt amongst several

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    Re: How to use the LEFT function to extract just characters

    Ah yes, MIN. Totally forgotten about that one. Used it once many moons ago.

    That will do the trick nicely.

    Thanks

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to use the LEFT function to extract just characters

    ....and slightly shorter
    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. [SOLVED] LEFT function should return 2 or 3 characters if it is a number or letter
    By trolle in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-22-2017, 05:07 PM
  2. [SOLVED] Index/Match greater than 255 characters using LEFT function
    By Groovicles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2016, 01:24 PM
  3. [SOLVED] left function without set number of characters
    By courtie89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2015, 06:17 PM
  4. [SOLVED] Using LEFT function to extract value
    By src16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2013, 09:37 AM
  5. Use LEFT formula to extract text preceding ONE OF TWO possible characters
    By potejam in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-22-2013, 08:05 PM
  6. [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
  7. HOW DO I EXTRACT ALL CHARACTERS AFTER 5 CHARACTERS ON LEFT
    By GRYSYF in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2005, 07:05 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