+ Reply to Thread
Results 1 to 4 of 4

Vlookup with Dates trouble

  1. #1
    Registered User
    Join Date
    03-29-2004
    Location
    MA
    Posts
    6

    Vlookup with Dates trouble

    I am using excel 2007, and trying to incorporate a VLookup into some code. The VLookup is comparing dates, which I think may be part of the problem.


    Please Login or Register  to view this content.



    In the v lookup, the range being searched (3rd argument) does not seem to be providing the date value. The first record being checked should match as the date being searched for (9/26/2009) exists in both LastDate and a cell contained in RngDaily (A53) Result is evaluating as error 2042. Testing in the immediate window, by setting last date equal to Cell(A53) evaluates as True. As does the following:
    Please Login or Register  to view this content.
    But the VLookup does not find the match? Anything else to test?



    Thanks in advance

    kirk
    Last edited by Kirk A; 10-05-2009 at 09:17 AM. Reason: clarify issue, provide additional information

  2. #2
    Registered User
    Join Date
    03-29-2004
    Location
    MA
    Posts
    6

    Re: Vlookup with Dates trouble

    Bump (apologies if not allowed) I did add some additional details to the original post.

    Thanks

    Kirk

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

    Re: Vlookup with Dates trouble

    perhaps try searching for the Long equivalent...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-29-2004
    Location
    MA
    Posts
    6

    Re: Vlookup with Dates trouble

    Thanks, works a charm!

+ 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