+ Reply to Thread
Results 1 to 5 of 5

two tables, closest date and time matching

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Poland
    MS-Off Ver
    Excel 365 64bits
    Posts
    46

    two tables, closest date and time matching

    Dear All,

    i am facing issue with the formula.
    i have two tables, on worksheet1 there is a list of dates in column A.
    on column B i would like to get the grade from worksheet PP column B.
    I started to do just simple formula to match closest date and time.
    it works in some rows but sometimes i get repeating result like in the row 2825.

    can you please tell me what is wrong?
    if the formula works, adding vlook to find a grade is a piece of cake, i hope

    attached an example file.


    ExampleDate.xlsx

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

    Re: two tables, closest date and time matching

    Maybe :

    Changing this highlited area :

    =IFERROR(INDEX(PP!$A$2:$A$37,MATCH(MIN(ABS(PP!$A$2:$A$37-Sheet1!A2)),ABS(PP!$A$2:$A$37-A2),1)),"")

    with this

    =IFERROR(INDEX(PP!$B$2:$B$37,MATCH(MIN(ABS(PP!$A$2:$A$37-Sheet1!A2)),ABS(PP!$A$2:$A$37-A2),0)),"")

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    Poland
    MS-Off Ver
    Excel 365 64bits
    Posts
    46

    Re: two tables, closest date and time matching

    thanks for your reply.
    but it does not give such result as i want to get.
    i mean only on closest date info about grade...

    instead of it grades are listed everywhere...

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: two tables, closest date and time matching

    I interpreted your original post the same way azumi did.

    Now I'm confused.

    So, I'll ask....was limiting your INDEX/MATCH range (PP!$A$2:$A$37) to 36 rows your intent?
    Last edited by FlameRetired; 12-08-2014 at 08:43 PM.

  5. #5
    Registered User
    Join Date
    01-22-2013
    Location
    Poland
    MS-Off Ver
    Excel 365 64bits
    Posts
    46

    Re: two tables, closest date and time matching

    Hi,


    Sheet1 has a list of dates.
    Sheet PP has a list of grades produced on some dates.
    i want to match list from PP to Sheet1.
    If i use formula azumi, on a Sheet1 close to dates i got grades through all time not exact or close to dates from PP.
    please find attached file.



    ExampleDate_1.xlsx

+ 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 formula and matching 2 criteria; 1 relating to a closest date
    By fordieuk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2013, 03:59 AM
  2. Return value based on closest time/date and name
    By Steven87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-11-2013, 03:52 PM
  3. [SOLVED] match closest date from within range matching ID number
    By adrianjaeggi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2012, 03:33 PM
  4. Excel calendar, finding closest date and then matching text
    By bellswhiskey in forum Excel General
    Replies: 0
    Last Post: 09-20-2011, 08:40 AM
  5. Replies: 1
    Last Post: 05-27-2006, 04:00 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