+ Reply to Thread
Results 1 to 4 of 4

lookup function returning 00-jan-00 date values.

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    30

    lookup function returning 00-jan-00 date values.

    In my current workbook I have a lookup function that looks up dates in other Excel files:

    Please Login or Register  to view this content.
    However, the function is returning a date value of 00-Jan-00 whenever no date is found against the lookup value in A2.

    The cell should be left blank if that's the case and not display 00-Jan-00.

    Can anyone recommend how that can be achieved?
    Last edited by SpiritedAway; 08-23-2013 at 08:32 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: lookup function returning 00-jan-00 date values.

    You would normally do this:

    =IF(your_formula=0,"",your_formula)

    but that would make it a bit unwieldy. Another way is to apply conditional formatting to the cell, such that if the cell is zero use the same foreground colour as background, so that it would appear blank.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: lookup function returning 00-jan-00 date values.

    Hi,

    Can you please upload a sample of your workbook containing the formula with the erroneous result so that I can step through the calculation to see why this is happening?

    Thanks

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: lookup function returning 00-jan-00 date values.

    Try custom formatting the formula cell as follows:

    dd-mmm-yy;;

    the two semi-colons at the end ensure that zeroes are shown as blanks rather than 00-Jan-00
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Help with lookup returning non existent values
    By Uncle heFTy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-24-2013, 03:18 AM
  2. [SOLVED] MAX function NULL values returning today's date
    By scsuflyboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2012, 08:08 PM
  3. Excel 2007 : Lookup returning old values
    By jjlad in forum Excel General
    Replies: 2
    Last Post: 02-24-2012, 05:26 PM
  4. Replies: 3
    Last Post: 10-10-2005, 01:05 PM
  5. Returning all values from a lookup - not just the first/last one
    By Jim Burns in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-06-2005, 07:05 AM

Tags for this Thread

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