+ Reply to Thread
Results 1 to 7 of 7

Left formula to compensate for varied number of characters

  1. #1
    Forum Contributor
    Join Date
    02-20-2017
    Location
    Indiana
    MS-Off Ver
    2016
    Posts
    101

    Left formula to compensate for varied number of characters

    Hello,

    I'm trying to take the first column's values and transfer only the names to the next column of the table below.

    Column 1
    Mike Trout (LAA - CF)
    Jose Altuve (HOU - 2B)
    Nolan Arenado (COL - 3B)
    Trea Turner (WSH - SS)
    Paul Goldschmidt (ARI - 1B)

    Column 2
    Mike Trout
    Jose Altuve
    Nolan Arenado
    Trea Turner
    Paul Goldschmidt

    The left formula will need a way to vary the num char value part of the formula. My first thought was to have it "go" until it reachs a second " ", but I'm not sure if that's even possible in excel. Any suggestions are appreciated.
    Last edited by BryceVBA; 03-21-2018 at 04:56 PM. Reason: format table

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Left formula to compensate for varied number of characters

    Try this:
    Please Login or Register  to view this content.
    Pete

  3. #3
    Forum Contributor
    Join Date
    02-20-2017
    Location
    Indiana
    MS-Off Ver
    2016
    Posts
    101

    Re: Left formula to compensate for varied number of characters

    There is no * in the data. Sorry, that's just the way the table posted.

  4. #4
    Forum Contributor
    Join Date
    02-20-2017
    Location
    Indiana
    MS-Off Ver
    2016
    Posts
    101

    Re: Left formula to compensate for varied number of characters

    Are there any ways to find the second space in a string?
    Last edited by BryceVBA; 03-21-2018 at 04:59 PM.

  5. #5
    Registered User
    Join Date
    12-21-2015
    Location
    United States
    MS-Off Ver
    2016
    Posts
    62

    Re: Left formula to compensate for varied number of characters

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

  6. #6
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Left formula to compensate for varied number of characters

    Hi, to all!

    You can try:
    =LEFT(A2,FIND("(",A2)-2)

    Or, taking care of second space, try:
    =LEFT(A2,FIND("|",SUBSTITUTE(A2," ","|",2))-1)
    Or:
    =TRIM(LEFT(SUBSTITUTE(A2," ",REPT(" ",99)),198))

    Blessings!
    Last edited by johnmpl; 03-21-2018 at 05:21 PM.

  7. #7
    Forum Contributor
    Join Date
    02-20-2017
    Location
    Indiana
    MS-Off Ver
    2016
    Posts
    101

    Re: Left formula to compensate for varied number of characters

    Thanks for your input everyone.

    the formula =LEFT(A2,FIND("(",A2)-2) worked best in my case.

+ 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. Replies: 2
    Last Post: 03-16-2018, 01:59 AM
  2. [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
  3. Issue with left formula - need to get characters in the middle
    By cchap in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-03-2016, 10:05 AM
  4. [SOLVED] Removing varied number of letters from end of number-letter string
    By WhiskeyGolf in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-16-2015, 04:43 AM
  5. [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
  6. Replies: 1
    Last Post: 01-16-2012, 04:03 AM
  7. [SOLVED] remover characters from left & right excel formula
    By boldcode in forum Excel General
    Replies: 4
    Last Post: 08-22-2011, 04:27 PM

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