ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   return 1st word in string (https://www.excelbanter.com/excel-discussion-misc-queries/201628-return-1st-word-string.html)

EngelseBoer

return 1st word in string
 
is it possible to search a column (A)
and copy the 1st word of each cell to (B)

A B
Dopper Zulu = Dopper
Korma Xhosa = Korma

Gary''s Student

return 1st word in string
 
=LEFT(A1,FIND(" ",A1)-1) and copy down.
--
Gary''s Student - gsnu200802

Sheeloo

return 1st word in string
 
Assuming first word is followed by an space in all cells
then you can enter the following in B1 and copy down;
=LEFT(A1,FIND(" ",A1))

"EngelseBoer" wrote:

is it possible to search a column (A)
and copy the 1st word of each cell to (B)

A B
Dopper Zulu = Dopper
Korma Xhosa = Korma


Lars-Åke Aspelin[_2_]

return 1st word in string
 
On Sun, 7 Sep 2008 02:56:20 -0700, EngelseBoer
wrote:

is it possible to search a column (A)
and copy the 1st word of each cell to (B)

A B
Dopper Zulu = Dopper
Korma Xhosa = Korma



Assuming that there is always at least one space in the cells of
column A you can try the following formula:

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

Copy down as far as needed.

Hope this helps / Lars-Åke

EngelseBoer

return 1st word in string
 
thanks

"Gary''s Student" wrote:

=LEFT(A1,FIND(" ",A1)-1) and copy down.
--
Gary''s Student - gsnu200802


EngelseBoer

return 1st word in string
 
thanks

"Sheeloo" wrote:

Assuming first word is followed by an space in all cells
then you can enter the following in B1 and copy down;
=LEFT(A1,FIND(" ",A1))

"EngelseBoer" wrote:

is it possible to search a column (A)
and copy the 1st word of each cell to (B)

A B
Dopper Zulu = Dopper
Korma Xhosa = Korma


EngelseBoer

return 1st word in string
 
thanks

"Lars-Ã…ke Aspelin" wrote:

On Sun, 7 Sep 2008 02:56:20 -0700, EngelseBoer
wrote:

is it possible to search a column (A)
and copy the 1st word of each cell to (B)

A B
Dopper Zulu = Dopper
Korma Xhosa = Korma



Assuming that there is always at least one space in the cells of
column A you can try the following formula:

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

Copy down as far as needed.

Hope this helps / Lars-Ã…ke



All times are GMT +1. The time now is 07:02 PM.

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