+ Reply to Thread
Results 1 to 3 of 3

Multiple vlookup that includes date match between two dates

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    winston salem nc
    MS-Off Ver
    Excel 2010
    Posts
    19

    Question Multiple vlookup that includes date match between two dates

    I need some help with Multiple Vlookup, but one of the vlookups is a date that needs to be matched between two dates with -+ 7 day cushion.

    How do I do something like it?

    I have included an example spreadsheet with more information.

    Example Multiple Vlookup.xlsx

    Thank you in advance.
    Last edited by dynamoracing; 09-14-2013 at 11:23 PM.

  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
    52,926

    Re: Multiple vlookup that includes date match between two dates

    Based
    on your date criteria, none of your data matches

    you state that "<- I used this for valid example with date 6/20/13 on Form sheet"
    but the date for that row that you highlighted was 6/10/2013 - your ctiteria is +- 7 days, to 6/13 to 6/17

    Anyway, try this for what you want. Add a helper column on sheet2 (I used H, you can use what you want, and you can hide it too), and copy this down...
    =IF(AND(D2>=Form!$D$4-7,D2<=Form!$D$4+7),H1+1,H1)
    Then to find what you want, use this...
    =IFERROR(INDEX(Data!A:B,MATCH(ROW(Data!A1),Data!H:H,0),2),"")
    and this...
    =IF(B14="","","Yes")

    Let me know how you make out please?
    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
    Registered User
    Join Date
    03-04-2013
    Location
    winston salem nc
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Multiple vlookup that includes date match between two dates

    T-00436732 is a valid promotion because it matches the node, bsp, type and rate of my criteria and it starts on 6/10/13 with 7 day cushion 6/3/13 and ends on 7/8/13 and 7/15/13 with 7 day cushion, our criteria date of 6/20/13 falls between those days which makes it valid.

    ------------------------

    If my criteria date is 6/1/13 and other criteria stays the same, then there is no promotion with dates that have 6/1/13 in between, so I want it to show that my criteria is not valid, but show a promotion that is closest to that date before criteria date which in this case is T-00436731 with cushion start date of 3/29/13 and cushion end date 5/22/13


    I hope this makes sense, I'm adding another worksheet that has added cushion dates columns.

    Example Multiple Vlookup2.xlsx

+ 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. Need help with formula that includes dates
    By kirkts in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-27-2012, 02:51 PM
  2. [SOLVED] Counting Cells that includes exact match and also if a cell includes specific text
    By smclachlan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2012, 07:42 PM
  3. Replies: 9
    Last Post: 03-16-2011, 03:15 PM
  4. Replies: 3
    Last Post: 08-17-2010, 02:54 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