Copy Left Word

  • Thread starter Thread starter Alectrical
  • Start date Start date
A

Alectrical

Hi

I have a column that contains cells with tag numbers and description, I need
to extract the tag number and place this two cells to the right, ie I need to
copy the left most string within a cell.

Thanks
Alec
 
If the tag number is a constant number of characters.

=LEFT(cell,"number of characters you want to show")

Regards,

Rikki
 
Thanks for your prompt reply, unfortunately, the number of characters can
vary between 2 and 6.
 
Try this:

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

Finds where the first space is and then extracts the characters to the
left of that.

Hope this helps.

Pete
 
Hi

I have a column that contains cells with tag numbers and description, I need
to extract the tag number and place this two cells to the right, ie I need to
copy the left most string within a cell.

Thanks
Alec

Since you give no examples of your data, is it safe to assume that the first
<space> in your string separates the tag number from the description?

If so, you can use a formula, in the 2nd cell to the right, similar to:

=left(cell_ref,find(" ",cell_ref)-1)

IF not, you will need to provide more information.
--ron
 
Thanks Pete



Pete_UK said:
Try this:

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

Finds where the first space is and then extracts the characters to the
left of that.

Hope this helps.

Pete
 
Thanks Ron

Ron Rosenfeld said:
Since you give no examples of your data, is it safe to assume that the first
<space> in your string separates the tag number from the description?

If so, you can use a formula, in the 2nd cell to the right, similar to:

=left(cell_ref,find(" ",cell_ref)-1)

IF not, you will need to provide more information.
--ron
 
Back
Top