E
Ellen Burd
Using Excel 2002 (soon 2003) on XP Pro
Can anyone steer me to a good explanation of
importing/converting/comparing/exporting files that
contain numbers that have leading zeroes -- or should
have, but don't?
We frequently work with ID numbers that should contain
leading zeroes. They come from multiple sources,
including:
~ text files
~ other Excel files
~ Access files
~ within the company (we have some control)
~ external sources (we have no control)
We import into Excel and sometimes later export to
Access.
The IDs tend to be in different formats from the various
sources:
'009999 (text)
009999 (text)
9999 (text)
9999 (number)
009999 (custom format)
We need to be able to convert these IDs to a standard
format that will export/import consistently so that we
can compare them from one list or sheet to another, print
them in reports, etc.
The custom format doesn't seem to work well, because the
user I'm helping can't always tell that that's what it
is. Then, when comparing to other lists or exporting,
there's no match or the zeroes don't export.
I usually convert to plain text (009999 no apostrophe)
using If statements, concatenation, etc. However, it's
time-consuming to figure out the current format, insert
columns, apply the functions, copy the functions, paste
special values, and delete the old data every time.
I could probably write a macro that would help speed the
process if I would just take the time.
BUT -- This seems like it must be a common issue. It
seems like Excel must have an easier solution that I just
haven't run across yet.
Thank you for your help!
Can anyone steer me to a good explanation of
importing/converting/comparing/exporting files that
contain numbers that have leading zeroes -- or should
have, but don't?
We frequently work with ID numbers that should contain
leading zeroes. They come from multiple sources,
including:
~ text files
~ other Excel files
~ Access files
~ within the company (we have some control)
~ external sources (we have no control)
We import into Excel and sometimes later export to
Access.
The IDs tend to be in different formats from the various
sources:
'009999 (text)
009999 (text)
9999 (text)
9999 (number)
009999 (custom format)
We need to be able to convert these IDs to a standard
format that will export/import consistently so that we
can compare them from one list or sheet to another, print
them in reports, etc.
The custom format doesn't seem to work well, because the
user I'm helping can't always tell that that's what it
is. Then, when comparing to other lists or exporting,
there's no match or the zeroes don't export.
I usually convert to plain text (009999 no apostrophe)
using If statements, concatenation, etc. However, it's
time-consuming to figure out the current format, insert
columns, apply the functions, copy the functions, paste
special values, and delete the old data every time.
I could probably write a macro that would help speed the
process if I would just take the time.
BUT -- This seems like it must be a common issue. It
seems like Excel must have an easier solution that I just
haven't run across yet.
Thank you for your help!