+ Reply to Thread
Results 1 to 3 of 3

Keeping zeros in front of number

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    23

    Keeping zeros in front of number

    Is there a way to keep zeros in front of a number that ALSO shows in the formula bar?

    I have product numbers such as 0022 but when I use a vlookup, it doesn't work because it is looking for 22.

    I need to keep the numbers in original format for it to work.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Keeping zeros in front of number

    format your result cell with same format
    Never use Merged Cells in Excel

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Keeping zeros in front of number

    see the TEXT function, eg:

    =VLOOKUP(TEXT(C1,"0000"),A:B,2,0)

    where C1 holds 22

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1