+ Reply to Thread
Results 1 to 4 of 4

Finding End Week Dates Using Vlookups Within Date Ranges

  1. #1
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Finding End Week Dates Using Vlookups Within Date Ranges

    I'm trying to find the week end date using fridays as the end of the week from a list that has the actual date work was done for items 1-12. The dates need to be with in the range specified at the top. Basically if the actual dates for work done for items 1-12 from the date table below fall into the specified range, the friday end date of that week the work was done would appear in the table above and everything outside the range would remain blank. I've attached an very basic example. I imagine i would need to use some sort of Vlookup that looked at the table below to match the item number to the date and then if that date fell into the data range it would change the date to the friday of that week.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Finding End Week Dates Using Vlookups Within Date Ranges

    This formula in B7 copied down and across to C18 will give the results you show

    =IF(AND(B23>=$D$2,B23<=$D$3),B23+7-WEEKDAY(B23+1),"")
    Audere est facere

  3. #3
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Finding End Week Dates Using Vlookups Within Date Ranges

    That definitely works for the example shown so thank you, but I left out some detail. The table down below is actually going to be coming from another workbook where the item numbers are not going to be in order as they are in my example. I'm basically going to need the formula to do a check (like a vlookup) against the item#s before it does the other formulas.

  4. #4
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Finding End Week Dates Using Vlookups Within Date Ranges

    Thanks daddy, I figured it out using the format you gave me and inserting a vlookup function into it. here is the formula if anyone is interested.

    =IF(AND(VLOOKUP($A8,$A$23:$C$34,2,FALSE)>=$D$2,VLOOKUP($A8,$A$23:$C$34,2,FALSE)<=$D$3),VLOOKUP($A8,$A$23:$C$34,2,FALSE)+7-WEEKDAY(VLOOKUP($A8,$A$23:$C$34,2,FALSE)+1),"")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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