+ Reply to Thread
Results 1 to 6 of 6

Different sets of dates compared to a static number (Lame description, but I'm lost)

  1. #1
    Registered User
    Join Date
    09-14-2013
    Location
    Hawaii
    MS-Off Ver
    Excel 2007
    Posts
    2

    Different sets of dates compared to a static number (Lame description, but I'm lost)

    First off I'd like to apologized for the following description of my problem. I'll try to make describe as best I can. I work at a hotel and I make sure that every guest has a manager personally assigned to them during their stay. I look at the number arriving guests 3 days prior to arrival and assign the manager. The problem is that each manager needs to have a maximum of 5 guests but because we assign prior to arrival and each guest's stay varies in length, I can't keep track of how many have been assigned. So here's the question (I think), if I have a set of dates that looks like this
    9/14/2013 9/18/2013
    9/16/2013 9/21/2013
    9/15/2013 9/20/2013
    9/16/2013 9/20/2013
    9/14/2013 9/15/2013
    9/16/2013 9/23/2013
    9/14/2013 9/17/2013
    and today I'm assigning for the 17th, I can see that this manager will have 5 guests because there are 2 people departing on or before the 17th. What would the formula be to get a sum of guests that will be assigned to that manager on the 17th?

    I really hope this makes at least a little sense. Please feel free to ask questions, I could be forgeting to explain something. THANK YOU SO MUCH!!!

  2. #2
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Different sets of dates compared to a static number (Lame description, but I'm lost)

    Use the COUNTIFS function. Assuming list of arrival dates is in A, departure dates are in B, managers are in C and the date to check (17th) is in D1:

    =COUNTIFS(A:A,A1<$D$1,B:B,B1>$D$1,C:C,"Manager name")

    Get the idea?


    Edit: hmm hold up, after trying it out i dont think its working...
    Last edited by L-Drr; 09-15-2013 at 06:17 AM.
    When I say semicolon, u say comma!

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Different sets of dates compared to a static number (Lame description, but I'm lost)

    So let's try it with SUMPRODUCT. Have a look at the example below:

    SUMPRODUCT.xlsx

  4. #4
    Registered User
    Join Date
    09-14-2013
    Location
    Hawaii
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up Re: Different sets of dates compared to a static number (Lame description, but I'm lost)

    Ursul,I can't thank you enough for your help on this. It works perfectly! Thank you a million times!

  5. #5
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Different sets of dates compared to a static number (Lame description, but I'm lost)

    Thanks for the feedback, please mark the Thread as 'Solved' and if you wouldn't mind, click on the "* Add Reputation" for me.

    All the best, cheers

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Different sets of dates compared to a static number (Lame description, but I'm lost)

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above to mark a thread as SOLVED. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Need a Macro that Hides Columns Based on Dates compared to Now()
    By yassiada in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2013, 08:29 PM
  2. Number of days between 2 sets of dates (Word table)
    By jayll in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2011, 09:33 AM
  3. 6 sets of data compared
    By corster in forum Excel General
    Replies: 3
    Last Post: 02-07-2010, 06:35 AM
  4. Calculate Number of Days Using 2 sets of Dates
    By essential in forum Excel General
    Replies: 10
    Last Post: 06-05-2009, 02:55 PM
  5. Replies: 3
    Last Post: 02-19-2007, 06:09 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