+ Reply to Thread
Results 1 to 5 of 5

INDEX MATCH based on Date Range and Name

  1. #1
    Registered User
    Join Date
    06-13-2019
    Location
    Utah, United States
    MS-Off Ver
    MS 2016
    Posts
    9

    INDEX MATCH based on Date Range and Name

    My goal is to find an average score for a given agent based on a date range.

    I have been using the following formula:

    =ArrayFormula(AVERAGE(INDEX(Sheet1!$BJ:$BJ,MATCH(1,((Sheet1!$E:$E>=$F$5)*(Sheet1!$E:$E<=$F$6)*(Sheet1!$B:$B=$F$7)),0))))


    whereas Sheet1!BJ:BJ is the index from which the QA scores are pulled if it matches the name determined from the dropdown F7 AND falls within the date range (start date F5 and end date F6).




    However, my formula appears to be dependent only on the start date. How can I write the formula so that the results will yield ALL the entries within the date range for that agent?

    Please advise, thank you!
    Last edited by treegee; 06-13-2019 at 05:51 PM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: INDEX MATCH based on Date Range and Name

    Your formula appears to be for google sheets, not excel.

    Try (excel formula).

    =AVERAGEIFS(Sheet1!$BJ:$BJ,Sheet1!$E:$E,">="&$F$5,Sheet1!$E:$E,"<="&$F$6,Sheet1!$B:$B,$F$7)

    If this does not work, I suggest that you ask a moderator to move your question to the correct sub-forum for google sheets questions. You can do this by clicking the 'report post' button on your question.

  3. #3
    Registered User
    Join Date
    06-13-2019
    Location
    Utah, United States
    MS-Off Ver
    MS 2016
    Posts
    9

    Re: INDEX MATCH based on Date Range and Name

    YES! THANK YOU! I was working in google sheets because the doc must be filled in live-time... but your equation worked! Thank you!!!

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: INDEX MATCH based on Date Range and Name

    You're welcome! Thanks for the feedback.

    For your information, index and match only return the first correct match from the array, not all correct matches. It appeared to only match the start date because presumably, your data is in chronological order. If you sorted it in reverse order, then it would have appeared to match only the end date because the latest entry would be first.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    06-13-2019
    Location
    Utah, United States
    MS-Off Ver
    MS 2016
    Posts
    9

    Re: INDEX MATCH based on Date Range and Name

    Thank you for the feedback and help. I appreciate it.

+ 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. Index Match within specified date range
    By julesjanker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2019, 03:27 AM
  2. Index Match to find match date to a range of dates
    By downcrusher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2017, 06:05 PM
  3. Replies: 10
    Last Post: 01-15-2017, 08:02 AM
  4. [SOLVED] Index Match Based on One Date Criteria, Table Contains Beginning Date and End Date
    By jcox1953 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2014, 02:41 PM
  5. [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
  6. [SOLVED] Index Match Based on date range and name criteria
    By darkhangelsk in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-02-2014, 11:33 PM
  7. [SOLVED] INDEX MATCH based on 5 criteria, including a date range.
    By Folshot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 09:35 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