ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Take first word out of cell and put it in a new cell (https://www.excelbanter.com/excel-worksheet-functions/193554-take-first-word-out-cell-put-new-cell.html)

LM

Take first word out of cell and put it in a new cell
 
I have a list of data and I want to remove the first word of each cell in one
column and put it in a separate column. Is there a formula for this?



ExcelBanter AI

Answer: Take first word out of cell and put it in a new cell
 
Yes, there is a formula for this. You can use the LEFT and FIND functions in Excel to extract the first word from a cell and move it to a new cell. Here are the steps:
  1. Insert a new column next to the column that contains the data you want to extract the first word from.
  2. In the first cell of the new column, enter the following formula:
    Formula:

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

    (Note: replace "A1" with the cell reference of the first cell in the original column)
  3. Press Enter to apply the formula to the first cell.
  4. Copy the formula down to the rest of the cells in the new column.
  5. The first word from each cell in the original column should now be extracted and displayed in the new column.

This formula works by using the FIND function to locate the first space in the cell, and then using the LEFT function to extract all the characters to the left of that space. The "-1" at the end of the formula is to exclude the space itself from the extracted text.

Bob Phillips[_3_]

Take first word out of cell and put it in a new cell
 
=LEFT(A1,FIND(" ",A1)-1)

--
__________________________________
HTH

Bob

"LM" wrote in message
...
I have a list of data and I want to remove the first word of each cell in
one
column and put it in a separate column. Is there a formula for this?





LM

Take first word out of cell and put it in a new cell
 
Thanks Bob, but that only copies the word. I want to cut it out of the cell
rather than copy it. Any other suggestions?

Lyn.

"Bob Phillips" wrote:

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

--
__________________________________
HTH

Bob

"LM" wrote in message
...
I have a list of data and I want to remove the first word of each cell in
one
column and put it in a separate column. Is there a formula for this?






Bob Phillips[_3_]

Take first word out of cell and put it in a new cell
 
You can't do that with a formula, you would need VBA, macro code.

--
__________________________________
HTH

Bob

"LM" wrote in message
...
Thanks Bob, but that only copies the word. I want to cut it out of the
cell
rather than copy it. Any other suggestions?

Lyn.

"Bob Phillips" wrote:

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

--
__________________________________
HTH

Bob

"LM" wrote in message
...
I have a list of data and I want to remove the first word of each cell
in
one
column and put it in a separate column. Is there a formula for this?








Dave Peterson

Take first word out of cell and put it in a new cell
 
Can you use two formula cells?

Use Bob's formula to get the first word.

Then use this formula to get the rest of the words.
=MID(A1,FIND(" ",A1)+1,LEN(A1))

If you wanted, you could convert both these columns of formulas to values
(edit|copy, edit|Paste special|values) and delete the original data.




LM wrote:

Thanks Bob, but that only copies the word. I want to cut it out of the cell
rather than copy it. Any other suggestions?

Lyn.

"Bob Phillips" wrote:

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

--
__________________________________
HTH

Bob

"LM" wrote in message
...
I have a list of data and I want to remove the first word of each cell in
one
column and put it in a separate column. Is there a formula for this?






--

Dave Peterson

LM

Take first word out of cell and put it in a new cell
 
Just brilliant. That worked a treat. You have just saved me days of work -
I thought I would have to do it manually. Thank you so much to both of you.

"Dave Peterson" wrote:

Can you use two formula cells?

Use Bob's formula to get the first word.

Then use this formula to get the rest of the words.
=MID(A1,FIND(" ",A1)+1,LEN(A1))

If you wanted, you could convert both these columns of formulas to values
(edit|copy, edit|Paste special|values) and delete the original data.




LM wrote:

Thanks Bob, but that only copies the word. I want to cut it out of the cell
rather than copy it. Any other suggestions?

Lyn.

"Bob Phillips" wrote:

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

--
__________________________________
HTH

Bob

"LM" wrote in message
...
I have a list of data and I want to remove the first word of each cell in
one
column and put it in a separate column. Is there a formula for this?






--

Dave Peterson



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

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