+ Reply to Thread
Results 1 to 8 of 8

Offset Lookup

  1. #1
    Registered User
    Join Date
    02-25-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    43

    Offset Lookup

    Hey everyone! I am looking to find a date up or down from a specific date in a table. I attached an excel to make it easier. Basically trying to look up and down (offset) using a date that I write down. Hope someone can help! Thanks in advance!
    Attached Files Attached Files

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

    Re: Offset Lookup

    Try

    =OFFSET(INDEX($E$6:$E$25213,MATCH(J6,$E$6:$E$25213)),120,0)
    and
    =OFFSET(INDEX($E$6:$E$25213,MATCH(J6,$E$6:$E$25213)),-120,0)

  3. #3
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Offset Lookup

    Hi,
    try this for "120 Days Back"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and this for "120 Days Forward
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    "

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Offset Lookup

    This will return D-120:
    =INDEX($E6:$E$25213,MATCH(J6-120,$E$6:$E$25213,1))

    This will return D+120:
    =INDEX($E$6:$E$25213,MATCH(J6-120,$E$6:$E$25213,1))

    There is no exact match for some values in your list (e.g. 08/11/32 +120 = 08/03/33 = missing). I have set the formual to returning the matching date or the first matching date EARLIER than the required one. If you'd prefer it to show a blank, use this:

    =IFERROR(INDEX($E$6:$E$25213,MATCH(J6-120,$E$6:$E$25213,0)),"")
    Last edited by Glenn Kennedy; 09-21-2016 at 10:55 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: Offset Lookup

    That's not quite the same Glenn.

    I think the op wants search column E for the date listed in J, and offset 120 'ROWS' from that cell.
    The list of dates in E is NOT all inclusive, it's skipping many dates.
    So just subtracting 120 from the date in J is going back 120 DAYS, not the same thing.

    AFter looking a little more, it appears the missing dates from E are weekends and holidays.
    If that's the case, then the WORKDAY function is much simpler, without the need for the long list of dates.

    =WORKDAY(J6,-120,$A$1:$A$100)

    Where A1:A100 is a list of the holiday dates to exclude.

  6. #6
    Registered User
    Join Date
    02-25-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    43

    Re: Offset Lookup

    Wow everyone came in quick! Thanks as it works!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Offset Lookup

    Jonmo... you may well be right. We'll see...

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

    Re: Offset Lookup

    You're welcome.

+ 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. lookup with offset?
    By bj in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 PM
  2. lookup with offset?
    By GEORGIA in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  3. lookup with offset?
    By GEORGIA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2005, 05:05 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