View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
dennis dennis is offline
external usenet poster
 
Posts: 202
Default If number in cell does not equal 6 digits, add zeros to the left

=TEXT(A1,"000000")

"kza40381" wrote:

I have 3 tables in Excel that I would like to join in Access by using a
numeric field. Unfortunately, in one table, the number reflected always has
6 digits. They ensure this by putting zeros to the left, i.e.,

Subject #
000001
000050
000128

The other two tables, which use the same subject # field, do not include the
zeros. Can someone help me with a formula that either deletes these zeros or
add zeros to the other tables?

Thank you!!