Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Separate names into columns
I have a column that has first and last name or it may have first, middle and
last name. I need to know how to pull the first name in a separate column and also pull the last name into another column. I need to know how to ignore the middle name, if applicable. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Separate names into columns
Try this:
First name: =LEFT(A1,FIND(" ",A1)-1) Last name: =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99)) "Carter" wrote: I have a column that has first and last name or it may have first, middle and last name. I need to know how to pull the first name in a separate column and also pull the last name into another column. I need to know how to ignore the middle name, if applicable. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Separate names into columns
Bit lengthy to handle entries with first names alone...
First name () =LEFT(A12,FIND(" ",A12 & " ")-1) Last name =IF(ISERROR(FIND(" ",A12)),"",TRIM(RIGHT(SUBSTITUTE(A12," ",REPT(" ",99)),99))) If this post helps click Yes --------------- Jacob Skaria "Carter" wrote: I have a column that has first and last name or it may have first, middle and last name. I need to know how to pull the first name in a separate column and also pull the last name into another column. I need to know how to ignore the middle name, if applicable. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Separate names into columns
This worked perfectly. Thanks! Shelia
"Teethless mama" wrote: Try this: First name: =LEFT(A1,FIND(" ",A1)-1) Last name: =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99)) "Carter" wrote: I have a column that has first and last name or it may have first, middle and last name. I need to know how to pull the first name in a separate column and also pull the last name into another column. I need to know how to ignore the middle name, if applicable. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Separate First, Last Names | Excel Discussion (Misc queries) | |||
Need Excel formula to separate names into columns, with exceptions | Excel Discussion (Misc queries) | |||
Names and Separate Worksheets | Excel Worksheet Functions | |||
I wish to separate city, state, and zip into 3 separate columns | Excel Worksheet Functions | |||
Separate names into 2 columns? | Excel Discussion (Misc queries) |