+ Reply to Thread
Results 1 to 5 of 5

IF( Vlookup>Date) displays 1/0/1900 instead of blank

  1. #1
    Registered User
    Join Date
    07-12-2015
    Location
    London, England
    MS-Off Ver
    2011
    Posts
    8

    IF( Vlookup>Date) displays 1/0/1900 instead of blank

    So I'm trying to use

    =IFERROR(VLOOKUP(D2,'Sheet2l'!$A$2:$M$2467,6,FALSE)>P2,VLOOKUP(D2,'Sheet2'!$A$2:$M$2467,6,FALSE))

    I tried using it with IF instead of IFERROR as well and it didn't work

    using

    =IF(VLOOKUP(D2,'Sheet2'!$A$2:$M$2467,6,FALSE)<=P2,VLOOKUP(D2,'Sheet2'!$A$2:$M$2467,6,FALSE),"")


    which produces 1/0/1900 for anything that has a blank in Sheet2

    Any way to fix the 1/0/1900's and the #N/A's that come with the second formula?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: IF( Vlookup>Date) displays 1/0/1900 instead of blank

    1st of all, IFERROR() is used to show/do something else (which you define) if your formula returns an error - in essence a form of IF() but only for errors...
    =IFERROR(your formula [gives error], then do this instead)

    Try thi perhaps...
    =IFERROR(VLOOKUP(D2,'Sheet2l'!$A$2:$M$2467,6,FALSE),"")

    you give no indication or what is in P2?

    if you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,028

    Re: IF( Vlookup>Date) displays 1/0/1900 instead of blank

    The VLOOKUP is returning a zero for cells that are blank ... and I'm guessing the cell is formatted as a date. You need to specifically test if the value is blank. For example, =IF(VLOOKUP(...) = "", "", VLOOKUP(...))


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: IF( Vlookup>Date) displays 1/0/1900 instead of blank

    Withdrawn by FR.
    Dave

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

    Re: IF( Vlookup>Date) displays 1/0/1900 instead of blank

    One option is to stick with your original formula but custom format result cells as

    m/d/yyyy;;

    By using the two semi-colons you will get blanks instead of 1/0/1900 (although the underlying value will still be zero)
    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] MAX date formula displaying 00/01/1900 as blank fields in lookup
    By Jennsy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-02-2024, 12:44 PM
  2. Produce a blank cell if date is = 00/01/1900
    By Butehawk in forum Excel General
    Replies: 10
    Last Post: 09-29-2014, 11:28 AM
  3. [SOLVED] ODBC date field displays as 1/0/1900
    By mateoc15 in forum Excel General
    Replies: 2
    Last Post: 03-26-2014, 09:02 AM
  4. Excel 2007 : changing a defualt date (00/00/1900) to a blank
    By Icehockey44 in forum Excel General
    Replies: 9
    Last Post: 03-08-2012, 11:24 AM
  5. VLOOKUP a blank date = 00/01/1900
    By Melville in forum Excel General
    Replies: 1
    Last Post: 07-05-2010, 07:17 PM
  6. Display 'Date' cell as blank instead of default year 1900
    By charger100 in forum Excel General
    Replies: 5
    Last Post: 11-19-2009, 05:21 PM
  7. [SOLVED] format a cell to use mo/date with no year:,displays 1900?
    By SKI CLUB BILL in forum Excel General
    Replies: 2
    Last Post: 04-20-2006, 12:00 AM
  8. Vlookup Displays Blank
    By Jani in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-12-2006, 04:00 PM

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