+ Reply to Thread
Results 1 to 5 of 5

Left Function to Stop at a Number

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Mac Excel 2008
    Posts
    18

    Left Function to Stop at a Number

    Hi. I want to know if there is a function that would stop at a number. For instance, "People's Place 15 Deer Yard", I would like a function that would stop at the 15 and only keep the "People's Place". I basically need an array in a search function. Nesting the sumproduct(--(isnumber(search())) does not work as it will only return the first value of the cell if there is a number. I would rather not nest 10 left functions detailing 1,2,3,4,5,6,7,8,9,0. I would much rather have a function that is much more contained. Thanks.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Left Function to Stop at a Number

    Like this...

    =LEFT(A1,MIN(FIND({1,2,3,4,5,6,7,8,9,0},A1&1234567890))-1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    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: Left Function to Stop at a Number

    Hi,

    One way

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


    entered as an array formula with Ctrl Shift Enter
    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.

  4. #4
    Registered User
    Join Date
    06-20-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Mac Excel 2008
    Posts
    18

    Re: Left Function to Stop at a Number

    Thank you! I understand the first function but Richard can you explain your function to me? Thanks again. Pat

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Left Function to Stop at a Number

    Quote Originally Posted by pat3white View Post
    Thank you! I understand the first function...
    You're welcome!

+ 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] Finding next available number with addition of Left function
    By Samba1 in forum Excel General
    Replies: 15
    Last Post: 07-03-2012, 03:22 PM
  2. Replies: 2
    Last Post: 03-05-2012, 05:20 PM
  3. "Left" function - How to skip over a full stop in text
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2010, 03:08 AM
  4. Replies: 8
    Last Post: 08-11-2009, 09:57 AM
  5. How to force LEFT function to recognize a number?
    By Tommy1005 in forum Excel General
    Replies: 3
    Last Post: 07-29-2009, 10:44 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