Re: Add leading zeros fill space
- From: "Rob" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 11 Nov 2007 11:30:45 -0000
Thanks Bob and Joel, the REPT worked a treat.
Regards, Rob
"Bob Phillips" <bob.NGs@xxxxxxxxxxxxx> wrote in message
news:%23IIHlFFJIHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
=VLOOKUP(REPT("0",6-LEN(A1))&A1,L1:P9,2,FALSE)
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my
addy)
"Rob" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OXN2q7EJIHA.4044@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Using Excel 2000
I have spread*** that uses text entries to do a Vlookup, the look up
range has text in the format of 6 characters albeit they look like
numbers with leading zeros eg. '000100. The entry that I enter if
'000100 returns the correct result. However, when others enter they tend
to just enter '100 which doesn't match. I therefore thought that if I
could check the length of their entry, I could fill with leading zeros to
make it 6 characters long.
Having tried to do this with validation, I'm now thinking this is a
change cell piece of code.
Any pointers of sample code would be appreciated.
Thank you, Rob
.
- References:
- Add leading zeros fill space
- From: Rob
- Re: Add leading zeros fill space
- From: Bob Phillips
- Add leading zeros fill space
- Prev by Date: Office xp
- Next by Date: Re: Calculate the number of days between two dates
- Previous by thread: Re: Add leading zeros fill space
- Next by thread: Office xp
- Index(es):