+ Reply to Thread
Results 1 to 4 of 4

Retrieve User name if current date falls between user available dates

  1. #1
    Registered User
    Join Date
    05-29-2013
    Location
    Upper Lower Middleton
    MS-Off Ver
    Excel 2007
    Posts
    7

    Retrieve User name if current date falls between user available dates

    Greetings, I'm trying to pull a list of users that are available based on a given date range. For example;

    User A has a start date of 5/13/13 and an end date of 9/18/13. I would like to be able to populate a list using current date and the comparison driver. So if today() is between those two dates grab that users name and pull it into the list. I have a list of 13 users that I need to do it for.

    Thanks is advance.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Retrieve User name if current date falls between user available dates

    Maybe I'm thinking of it too simply but I would try =IF(and(d2>b2,d2<c2),a2,"") where the name is in col A, the start dt is in col B, the end dt is in col C and "=Now()" is in col D.
    Then you could compress the list in another column by using an advance filter.

  3. #3
    Registered User
    Join Date
    05-29-2013
    Location
    Upper Lower Middleton
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Retrieve User name if current date falls between user available dates

    It's worth a shot, somehow I was thinking that I had to use a vlookup or something. Thanks.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Retrieve User name if current date falls between user available dates

    Sure, hope it works ok. =Today() also works in place of now in case you didn't know.
    I tend to do things in a couple steps so I would do the formula, then copy paste special values then do the Advanced Filter and copy to another location the unique records only. Probably not as elegant as some would do but it'd work for me.

+ 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