+ Reply to Thread
Results 1 to 9 of 9

Using Index & Match with Date Ranges

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Using Index & Match with Date Ranges

    Hi,

    I've been trying to use index and match to give me information from one sheet (detailed data) to another (overall view).

    I have a list of tasks, with dates attached in the detailed sheet.

    e.g.

    Task 1 8-Jan-14
    Task 2 3-Feb-14
    Task 3 6-Apr-14
    etc. etc.

    I want to be able to give a date range (week starting dates from another table) and be able to get the task name to appear

    I have been using index and match, and while this works for task 1, for the subsequent tasks it does not work. the formula i have is:

    =INDEX(A1:A3,(AND(MATCH(WEEK START DATE CELL REF,B1:B3,-1),MATCH(NEXT WEEK START DATE CELL REF,B1:B3,1))))

    Anyone able to help (if you can understand!)?

    Cheers,

    Marissa

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Using Index & Match with Date Ranges

    attach dummy excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    02-18-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Using Index & Match with Date Ranges

    Here you go.

    Quote Originally Posted by nflsales View Post
    attach dummy excel file
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Using Index & Match with Date Ranges

    It's very hard to arrive the Task Names when there is multiple matches for the given date range using the default excel worksheet functions.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Using Index & Match with Date Ranges

    Find the attached file
    if it not solved your problem, please enter the output result manually and attach the file
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-18-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Using Index & Match with Date Ranges

    It is so very close!! What I didn't explain properly is that the dates attached to the tasks are deadline dates, and so ideally if the task deadline didn't fall in that week then the cell would be blank.
    Matches-3.xlsx
    (see the line below for what it would ideally look like - this is just my input though)

    Thanks for your help!!

  7. #7
    Registered User
    Join Date
    02-18-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Using Index & Match with Date Ranges

    anyone got a fix for this?

  8. #8
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,369

    Re: Using Index & Match with Date Ranges

    Not sure but try this:

    =IFERROR(INDEX(Tasks!$A$4:$A$6,MATCH(1,(Tasks!$B$4:$B$6>=B$3)*(Tasks!$B$4:$B$6<=C$3),0)),"")

    Put in B5 and press CTRL-SHIFT-ENTER button together and copied cross
    Attached Files Attached Files

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using Index & Match with Date Ranges

    as long as there is only one task due to end in any week wed-thur then this array entered formula
    =IFERROR(INDEX(Tasks!$A$4:$A$20,MATCH(B3,Tasks!$B$4:$B$20+7-WEEKDAY(Tasks!$B$4:$B$20+2),0)),"")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. [SOLVED] INDEX date that MATCH on date range, MATCH code(string)
    By Dahlia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2014, 03:33 AM
  2. index match 1 row 2 columns, date ranges included
    By distribution master in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-26-2012, 01:47 AM
  3. Utilizing Match & Index with two named ranges
    By purdue7997 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2009, 04:55 PM
  4. Named Ranges and INDEX/MATCH
    By jasoncw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2007, 09:33 AM
  5. Replies: 3
    Last Post: 07-11-2005, 02: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