Copy Left Word

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
 
C

Chiccada

If the tag number is a constant number of characters.

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

Regards,

Rikki
 
A

Alectrical

Thanks for your prompt reply, unfortunately, the number of characters can
vary between 2 and 6.
 
P

Pete_UK

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
 
R

Ron Rosenfeld

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
 
A

Alectrical

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
 
A

Alectrical

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top