+ Reply to Thread
Results 1 to 8 of 8

Is Index/Match the proper formula for this?

  1. #1
    Registered User
    Join Date
    12-10-2018
    Location
    Washington, DC
    MS-Off Ver
    365 Business
    Posts
    4

    Is Index/Match the proper formula for this?

    Hello All,

    I've been racking my brain on this problem for days now and I think it's time for me to ask for help. I have two sheets in a book which has the same fields and need to find a way to do the following:

    Let's say Sheet 1 is your storm door
    Sheet 2 is your front door.

    Every day for the past 10 days Sarah has been going through Sheet 1 and Sheet 2 at least once a day. The issue I'm having is that whenever I try to pull data using Index/Match, it will only pull the first instance of the day, omitting the subsequent entrances. Is there any way to pull data from Sheet 2 into Sheet 1 within X minutes from each other and match the person doing so? Reason why I can't use Sheet 2 to do the same is because sometimes Sarah will go through the storm door but change their mind and not go through the front door. (The use is different, but the effect is the same).

    Sheet 1 Contents:
    Date, Time, (Date & Time Combined), Name
    1/1/18, 00:01, 1/1/18 00:01, Sarah
    1/1/18, 01:01, 1/1/18 01:01, Sarah
    1/2/18, 12:01, 1/2/18 12:01, Neil
    1/2/18, 12:02, 1/2/18 12:02, Sarah
    1/2/18, 14:01, 1/2/18 14:01, Sarah
    1/2/18, 14:06, 1/2/18 14:06, Neil

    Sheet 2 Contents:
    Date, Time, (Date & Time Combined), Name
    1/1/18, 00:02, 1/1/18 00:02, Sarah
    1/1/18, 01:02, 1/1/18 01:02, Sarah
    1/2/18, 12:02, 1/2/18 12:02, Neil
    1/2/18, 12:03, 1/2/18 12:03, Sarah
    1/2/18, 14:03, 1/2/18 14:03, Sarah

    I intentionally omitted an entry to Sheet 2 for Neil on the second go-around as I'm going to put in an IFERROR to kick out any "violations", but need help figuring out the rest. The actual sheet has over 218,000 entries on Sheet 1 and 150,000 entries on Sheet 2, and no one can enter Sheet 2 without entering Sheet 1...

    I really hope I'm explaining this properly...

    Please help!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Is Index/Match the proper formula for this?

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  3. #3
    Registered User
    Join Date
    12-10-2018
    Location
    Washington, DC
    MS-Off Ver
    365 Business
    Posts
    4

    Re: Is Index/Match the proper formula for this?

    Hi All,

    I'm hoping that I was able to upload the file successfully. Thanks again for allowing me to brainstorm with you.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Is Index/Match the proper formula for this?

    See if the following does what you want:
    1) Change the formulas for both column D's to read: =SUM(A2,B2)
    2) Custom format both column D's m/dd/yyyy h:mm:ss
    3) Select cell E2 on the 'Storm Door' sheet,
    4) Paste the following into the formula bar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    5) Custom Format m/dd/yyyy h:mm:ss
    6) Double click the fill handle to copy down.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    12-10-2018
    Location
    Washington, DC
    MS-Off Ver
    365 Business
    Posts
    4

    Re: Is Index/Match the proper formula for this?

    This is awesome! Thank you so much for your help.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Is Index/Match the proper formula for this?

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

  7. #7
    Registered User
    Join Date
    12-10-2018
    Location
    Washington, DC
    MS-Off Ver
    365 Business
    Posts
    4

    Re: Is Index/Match the proper formula for this?

    Good Afternoon and Happy Holidays everyone!

    Thanks again for your help JeteMC. For my own sanity though I was hoping to see if anyone would be able to help explain as to why this formula (set as an array, plugged into the "Storm Door" sheet, Cell E2) works similar to the response that JeteMc has provided, however isn't as accurate and takes forever to calculate??

    =IFERROR(INDEX(TEXT('Front Door'!$A:$A,"MM/DD/YYYY")&" "&TEXT('Front Door'!$B:$B,"hh:mm:ss"),MATCH($C2&1,'Front Door'!$C:$C&IF(D2<='Front Door'!$D:$D,IF($D2>=($D2+(5/1440)),1)),0)),"Did not enter nest")

    Thanks again for the Aggregate solution; I have to look into how the Aggregate works as I can probably apply it to other workbooks I've been using Index/Match on and sparing myself the hours of processing. haha

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Is Index/Match the proper formula for this?

    I feel that the formula 'takes forever' due to the whole column references. When I changed those to match the range of the Front Door data, rows 2:526 it displayed results pretty much immediately.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    As for the the accuracy I visually compared the first 20 results in each file and didn't see a difference.
    Let us know if you have any questions.

+ 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 formula changing my Index daily
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2017, 02:19 PM
  2. [SOLVED] This formula works but I donīt understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  3. INDEX MATCH 2 way won't return proper value
    By sheeptape in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2015, 03:44 PM
  4. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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