+ Reply to Thread
Results 1 to 10 of 10

Formula Issue

  1. #1
    Registered User
    Join Date
    02-15-2016
    Location
    Kansas City, Missouri
    MS-Off Ver
    2010
    Posts
    21

    Unhappy Formula Issue

    I'm doing vlookup between two different spreadsheets to pull up a date of when a person schedules. The formula is: =VLOOKUP(B4,'[New Referral Spreadsheet.xlsx]New Referral Record'!$B:$P,15,FALSE)

    Sometimes the formula pulls over the correct date and sometimes it pulls over a date of 1/00/00. Any reason why it works for some but not for others?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Quebec, Canada
    MS-Off Ver
    2013
    Posts
    232

    Re: Formula Issue

    Could it be that the vlookup is returning the value of an empty cell? A 0 value has a date of "1900-01-00"

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,198

    Re: Formula Issue

    Date of 01/01/1900 is a returned value of 0 so column P is blank for B4 value.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula Issue

    Yep, that means it found a matching value for B4 in Column B
    But the corresponding cell in column P is either blank, or actually 0.

    When the cell with your formula is formatted as a date, 0 is shown as 1/00/1900 ( or 1/00/00 if you have only yy shown)

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula Issue

    To resolve it, and make it return a blank instead..

    =IFERROR(1/(1/VLOOKUP(B4,'[New Referral Spreadsheet.xlsx]New Referral Record'!$B:$P,15,FALSE)),"")

    This has the benefit of also hiding the #N/A errors when there is no match for B4.

  6. #6
    Registered User
    Join Date
    02-15-2016
    Location
    Kansas City, Missouri
    MS-Off Ver
    2010
    Posts
    21

    Re: Formula Issue

    Thanks all! Is there a way to alter the formula so the cell is blank unless there is a date in column P to avoid the 1/1/00?

  7. #7
    Registered User
    Join Date
    02-15-2016
    Location
    Kansas City, Missouri
    MS-Off Ver
    2010
    Posts
    21

    Re: Formula Issue

    This formula didn't seem to do the trick. Any other ideas?

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula Issue

    Works for me, in what way does it not work for you?

    Is it still showing 1/00/00 ?

    That would indicate the value in P is NOT blank, and is also NOT exactly 0.

    Can you post a sample book?

  9. #9
    Registered User
    Join Date
    02-15-2016
    Location
    Kansas City, Missouri
    MS-Off Ver
    2010
    Posts
    21

    Re: Formula Issue

    Spreadsheet 1 is an ongoing spreadsheet of visits from people.
    Spreadsheet 2 is a separate spreadsheet for different visits of a different kind.

    I want spreadsheet 2 to pull up the date in the "ATC APPOINTMENT" column from "atc_date" in spreadsheet 1. I also want it to be an empty cell unless it has a date.

    Hope that makes sense.
    Attached Files Attached Files

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula Issue

    So in spreadsheet 2
    In N2 and filled down I put
    =VLOOKUP(B2,'[formula-issue-spreadsheet-1.xlsx]Sheet1'!$B:$P,15,0)

    Most of them returned #N/A, Im sure because you deleted alot of sensitive data, and just put bogus stuff in.
    But the ones that did work (N5 N17 and N31), they returned proper date values.
    I didn't get any 1/00/00 values.


    I'm still not really clear on what "This formula didn't seem to do the trick." means.
    Can you elaborate ?

+ 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] OR Formula Issue
    By cunninghamtm in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-02-2016, 11:27 AM
  2. [SOLVED] Index Match Formula Issue - Lookup Value is a Formula
    By dodgemain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2016, 11:48 AM
  3. Lookup Formula Issue, Search issue
    By kperitz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-07-2014, 01:50 PM
  4. [SOLVED] IF formula issue
    By m1ner in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-20-2014, 12:25 AM
  5. Excel 2008 : Help with a formula issue.
    By dravenkai in forum Excel General
    Replies: 2
    Last Post: 09-02-2011, 07:14 PM
  6. Formula Issue
    By dragonfly2004 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-11-2008, 03:44 PM
  7. Formula issue
    By chris2485 in forum Excel General
    Replies: 2
    Last Post: 01-23-2007, 05:55 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