+ Reply to Thread
Results 1 to 4 of 4

Picking Closest Date from List - With Date Minimum

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Picking Closest Date from List - With Date Minimum

    I have a list of dates when my company offers specific training that all of my new employees go through once they've been with us for 30 days, 60 days, and 90 days. I want to set up a spreadsheet where I can input the employee and their start date and have the spreadsheet assign them to the date of the class they need to attend.

    I have the list of training dates in one area of the spreadsheet, and then the employees and their start dates in another. I need to figure out how to somehow put together a formula that will take their start date, and then for the 30 day training find the closest training date after they have completed at least 20 days of work. And for the 60 day I need for it to take their start date and find the closest training date from the list once they have completed 50 days of work. The same for the 90 day training, I need for it to figure the closest date to 80 days plus their hire date.


    if John Doe was employed on January 9, 2013, and the dates I have listed are:

    1/6/2013, 2/3/2013, 3/6/2013, and 4/9/2013.

    For John I would want it to pick the 2/3/2013 because it is the closest to 20 days after his start date.

    But if I have Jane Doe who started on January 23rd, 2013, I would want for it to return 3/6/2013 and skip the 2/3/2013 because she would not have completed 20 days of work yet.

    Does anyone know how I might put that together?

    Thanks in advance for any help.

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Picking Closest Date from List - With Date Minimum

    See the attached
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-04-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Picking Closest Date from List - With Date Minimum

    I appreciate your quick reply, but I still seem to be having some issues when I try to plug my actual info in and use your formula for the new information. It seems to just default to picking the “smallest date”, not the closest one to the hire date plus the required minimum days (20,50, or 80)

    I'm including a link to the sheet. Unfortunately my work network will not allow me to upload the sheet to the site.

    https://www.dropbox.com/s/i0fh1jffsv...st%20date.xlsx
    Last edited by JPolvCB; 01-04-2013 at 01:12 PM.

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Picking Closest Date from List - With Date Minimum

    Quote Originally Posted by JPolvCB View Post
    I appreciate your quick reply, but I still seem to be having some issues when I try to plug my actual info in and use your formula for the new information. It seems to just default to picking the “smallest date”, not the closest one to the hire date plus the required minimum days (20,50, or 80)

    I'm including a link to the sheet. Unfortunately my work network will not allow me to upload the sheet to the site.

    https://www.dropbox.com/s/i0fh1jffsv...st%20date.xlsx
    =MIN(IF($A$2:$A$11>=E3+20,$A$2:$A$11))

    Array formula: Ctrl+Shift+Enter. Not just Enter
    Last edited by Teethless mama; 01-05-2013 at 12:59 AM.

+ 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