+ Reply to Thread
Results 1 to 2 of 2

finding a date/time in a list that is closest to an existing date/

  1. #1
    Jamie
    Guest

    finding a date/time in a list that is closest to an existing date/

    I have a list of dates and times. They are all on 15 min intervals. I have
    another list of dates and times that are to the nearest minute.They aren't on
    a regular interval so one time might be 2006-01-01 23:59 and the next might
    be 2006-03-17 15:10. I want to check the dates in the first column(15min
    intervals) against the second column. I would like the formula to recognize
    2006-03-17 15:15 as the closest value to 2006-03-17 15:10 so that the formula
    can take the data from next to the 15:10 and put it next 15:15 time.

    Thanks

  2. #2

    Re: finding a date/time in a list that is closest to an existing date/

    Pressuming your date columns are 52 rows long and the odd intervals are
    in ascending order in column A with their data in column B and the 15
    minute intervals are in column C, put the following formula in cell
    D-1. If column A is not in ascending order use the Sort command from
    the Data menu and be sure to sort only column B along with A.

    =VLOOKUP(C1,$A$1:$D$52,2)

    then copy cell cell D-1 down through D-52


    ed


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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