+ Reply to Thread
Results 1 to 4 of 4

split cell

  1. #1
    Forum Contributor
    Join Date
    08-26-2010
    Location
    Poplar Bluff MO
    MS-Off Ver
    Excel 2016
    Posts
    101

    split cell

    I have a cell that has a name such Adam Bean. I want to right a formula that will make this Bean, Adam. I currently have formula's in two cells. The first cell I have =Right(L2,LEN(L2)-find(" ",L2)) and in the other cell I have =LEFT(L2,LEN(L2)-FIND(" ",L2)). Is there a way to combine those formulas into one cell? Also if the name is very short, I get part of the other name. If it is very long then I don't get all of the name.

    If this is confusing I can attach a spreadsheet.

    Thanks

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: split cell

    Try this, splitting it based on the space between names.

    It may get problematic if you have 2 word names, or Jr. Sr. etc..

    =MID(A1&", "&A1,FIND(" ",A1)+1,LEN(A1)+1)

  3. #3
    Forum Contributor
    Join Date
    08-26-2010
    Location
    Poplar Bluff MO
    MS-Off Ver
    Excel 2016
    Posts
    101

    Re: split cell

    Perfect, Thanks!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: split cell

    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. Need Macro code to split data split in 7 sheets based on variable rows in column A
    By Alija_21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2015, 08:03 AM
  2. [SOLVED] create macro to split screen and then in top split, go to a certain cell
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-17-2015, 05:45 PM
  3. Split cell to create sorted heading on empty row above and keep second split info
    By CastingDirector in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2015, 12:24 AM
  4. [SOLVED] Split Array, Listing Marked Items in Split Arrays
    By lesoies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2013, 02:07 AM
  5. [SOLVED] Split Macro modification to Split into new Workbooks instead of sheets within one workbook
    By DLSmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2012, 08:11 PM
  6. Macro : Split text of a single cell into multiple cell
    By rampal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2012, 02:05 PM
  7. Can excels Split() function split a string up at multiple spots?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2011, 02:36 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