ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Displaying text. (https://www.excelbanter.com/excel-worksheet-functions/199324-displaying-text.html)

RaY

Displaying text.
 
I have first and last names in a list and need to have excel pull only the
first name. These names are all in the same column. I tried using LEFT but
can't figure out how to have excel stop once it hits the space between the
first and last name.

-RaY

Pete_UK

Displaying text.
 
Try this, assuming your combined name is in A1:

=LEFT(A1,SEARCH(" ",A1)-1)

Hope this helps.

Pete

On Aug 19, 10:19*am, RaY wrote:
I have first and last names in a list and need to have excel pull only the
first name. These names are all in the same column. I tried using LEFT but
can't figure out how to have excel stop once it hits the space between the
first and last name.

-RaY



Mike H

Displaying text.
 
Maybe this dragged down

=LEFT(A1,FIND(" ",A1)-1)

Mike

"RaY" wrote:

I have first and last names in a list and need to have excel pull only the
first name. These names are all in the same column. I tried using LEFT but
can't figure out how to have excel stop once it hits the space between the
first and last name.

-RaY


Gary''s Student

Displaying text.
 
In B1:
=LEFT(A1,FIND(" ",A1)-1)
In C1:
=RIGHT(A1,LEN(A1)-LEN(B1)-1)

--
Gary''s Student - gsnu200800


"RaY" wrote:

I have first and last names in a list and need to have excel pull only the
first name. These names are all in the same column. I tried using LEFT but
can't figure out how to have excel stop once it hits the space between the
first and last name.

-RaY


RaY

Displaying text.
 
Workd perfect. Thanks everyone.

"Mike H" wrote:

Maybe this dragged down

=LEFT(A1,FIND(" ",A1)-1)

Mike

"RaY" wrote:

I have first and last names in a list and need to have excel pull only the
first name. These names are all in the same column. I tried using LEFT but
can't figure out how to have excel stop once it hits the space between the
first and last name.

-RaY



All times are GMT +1. The time now is 12:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com