+ Reply to Thread
Results 1 to 3 of 3

List with between dates + indexmatch/lookup

  1. #1
    Registered User
    Join Date
    08-10-2020
    Location
    Stockholm, Sweden
    MS-Off Ver
    Office365
    Posts
    1

    List with between dates + indexmatch/lookup

    Hi,

    I have a long list of single dates in column D, and another range of weekly start and end dates along with more data connected to each week.

    Is there a way to put a formula next to each single date in column D, and match with the range of weekly start and end dates, to see in which start/end date row/or column, that the single date from column D matches (as to say, when the single date is between a certain weekly dates),

    and last but not least, combine that match with either indexmatch or lookup formula to retrieve value thats linked to each weekly range start/end date.??

    Of course I can either have the weekly range data put horizontal (rows) or vertical (columns). Maybe helper columns/rows helps in some way!? And i know the formula to check if the single date is between one of the weekly ranges, but I want to check all of them to see which one, to not have to make a super long formula...

    Maybe im not explaining clear enough.. Just ask if so

    Thanks!

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: List with between dates + indexmatch/lookup

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,825

    Re: List with between dates + indexmatch/lookup

    It's not clear exactly what you are trying to do, but it really sounds like you want an approximate match lookup. Unfortunately, almost all lookup examples on the internet are for exact match lookups. Are you familiar with how the approximate match option works? This link is one of the few that shows the behavior of the approximate match option: https://www.ablebits.com/office-addi...ximate-vlookup

    My expectation is that, if you build a lookup table with the "start date"/"first day of week" dates (not text) and the accompanying data from each week, you should be able to use =VLOOKUP(date,lookup_table,column_number,TRUE) or HLOOKUP(date,lookup_table,row_number,TRUE) to retrieve the desired information from the lookup table.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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 date information within a list with duplicate dates
    By ryan.wherry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2016, 01:02 PM
  2. Replies: 6
    Last Post: 09-03-2016, 03:14 AM
  3. Replies: 6
    Last Post: 12-30-2015, 07:39 AM
  4. Replies: 0
    Last Post: 06-04-2014, 10:08 AM
  5. Lookup next largest date from static list of dates
    By jjcgirl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2013, 04:14 PM
  6. Replies: 9
    Last Post: 05-26-2010, 12:46 PM
  7. How to lookup the dates of a list that are only the first of the .
    By Snaggle22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2005, 06:06 PM

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