+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP Multiple Criteria (Dates)

  1. #1
    Forum Contributor
    Join Date
    10-04-2006
    Posts
    151

    VLOOKUP Multiple Criteria (Dates)

    Hello - In column I, there is a list of dates - month and day only

    In column J there is a list of dates, month,day, and year.

    --I----------------J
    1/14----------1/14/2009
    1/14----------1/15/2009
    1/14----------1/16/2009
    1/15----------1/17/2009


    in column K, I am trying to setup a Vlookup statement that states if the month and day in column I = the month and day in column J then return the value in column J.

    I have the following formula, but it just returns N/A.

    Please Login or Register  to view this content.
    I have tried different variations and different methods to no avail. I have even tried adding an if statement into the mix. I have tried using direct/match without success and my knowledge of Excel in this area is limited.
    Help is much appreciated. Thank you for your time.
    Last edited by NewExcelUser; 01-23-2009 at 12:50 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Are the values in column I dates formatted as m/dd or are they text entries (i.e "1/14")?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    10-04-2006
    Posts
    151
    I'm not sure... The information is a result of a formula that pulls the data from another sheet. It is formatted as "General" when I go to "format cells" in the drop down.

    I can tell you that if I place the following formulas in it comes up true...=IF(MONTH(H1)=MONTH(I1),"TRUE","FALSE"

    Please let me know if there is anymore information that you need... thank you.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try perhaps?

    =INDEX($K$1:$K$4,MATCH(MONTH(I1)&DAY(I1),MONTH($J$1:$J$4)&DAY($J$1:$J$4),0))

    or

    =INDEX($K$1:$K$4,MATCH(TEXT(I1,"mm/dd"),TEXT($J$1:$J$4,"mm/dd"),0))

    where your table is in I1:K4... adjust as necessary.

    After you adjust, you must confirm this formula with CTRL+SHIFT+ENTER not just ENTER.. then you will see { } brackets appear around the formula.

    Then copy it down.

  5. #5
    Forum Contributor
    Join Date
    10-04-2006
    Posts
    151
    I have adjusted the formula to

    Please Login or Register  to view this content.
    and my result is as follows.

    --I----------------J--------------------K
    1/14----------1/14/2009----------1/14
    1/14----------1/15/2009----------1/14
    1/15----------1/16/2009----------1/14
    1/15----------1/17/2009----------1/14
    1/16----------1/18/2009----------1/15
    1/16----------1/19/2009----------1/15

    As is shown the results above, the numbers do not quite match up and only change after every fourth cell. Also, the year needs to appear in column K if possible.

    Your time is appreciated.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Maybe you meant:

    Please Login or Register  to view this content.
    REMEMBER: confirmed with CTRL+SHIFT+ENTER..

    formatted to date format.

  7. #7
    Forum Contributor
    Join Date
    10-04-2006
    Posts
    151

    Smile

    Wow! That works! Thank you soooo much! I would've never figured that out on my own. You're awesome. Thanks again.

+ 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