cell format

G

Guest

I have a spreadsheet that contains reference number in a format
H123456 (H followed by 6 numbers) for example H005678 I would need to
convert this to 5678. The original cell has been typed in full and is not a
format.

where the number ie 5678 is less than 6 numbers leading zero's have been
included.

I need to do a look up from my original spreadsheet into this new one.
Where my spreadsheet will say 5678 ( and I Can't change) I need to look
this up in the new spreadsheet where it will say H005678 it will possibly
easier to do convert the H005678 in the new SS and then do a look up
Can anyone help
Sean...
 
B

Bob Phillips

Not sure which way you want it, but you can either do

="H"&TEXT(A1,"000000")

or

=--MID(A1,2,6)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

brilliant thanks

Bob Phillips said:
Not sure which way you want it, but you can either do

="H"&TEXT(A1,"000000")

or

=--MID(A1,2,6)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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