String manipulation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a list of codes in a column. These codes are in the form of a number of any length followed by a '/' followed by another number of any length

I want to extract the number up to the '/' and insert it into the adjacent cel

Any help much appreciate

Thanks, Greg
 
Hi Greg

Menu Data > Text to columns, select / as separator.

--
HTH. Best wishes Harald
Followup to newsgroup only please

Greg said:
Hi,

I have a list of codes in a column. These codes are in the form of a
number of any length followed by a '/' followed by another number of any
length.
 
ActiveCell.Offset(0,1).Value = Left(ActiveCell,instr(ActiveCell,"/")-1)

--
Regards,
Tom Ogilvy

Greg said:
Hi,

I have a list of codes in a column. These codes are in the form of a
number of any length followed by a '/' followed by another number of any
length.
 

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

Back
Top