+ Reply to Thread
Results 1 to 3 of 3

SUMIFS for Date Range

Hybrid View

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    ithaca
    MS-Off Ver
    Excel 2007
    Posts
    5

    SUMIFS for Date Range

    here's the basis of my struggles boiled down:

    Facts:
    I have 5 buildings, each with 100 rooms.
    Groups of people enter come and go from different buildings
    Groups range in size from 10-100 people
    Each group has a specific Entrance and Exit Date

    Needed:
    determine is a building is in use based on a 'Start Date' column, 'End Date' column, and a reference date
    count the occupancy of the room on a day a building is in use


    Attached is what I have so far.

    Any step in the right direction would help immensely
    Attached Files Attached Files
    Last edited by rlb278; 08-23-2012 at 03:28 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,943

    Re: Date Based Scheduling and Occupancy

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.


    ----------------------------------
    This is a pretty big request in one chunk. I'm sure you'll get better response if you break down your question into several parts, so that they can be tackled one after the other.

    Also, we're happy to help you with your effort, but nobody here will be keen on developing a solution from scratch. This forum is about helping people learn how to use Excel, not a free development service.

    Have you started any work on this project yet?
    How far did you get?
    Where are you stuck?

    We can help you develop your own code, but if you want someone to code this for you all the way, you should try and find a commercial developer.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    ithaca
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Date Based Scheduling and Occupancy

    Yes, sorry for the vagueness:
    The core of the problem is linking up needed rooms tied to the specific date range:

    What I have so far is a way to parse out the amount of rooms being used per building:
    =SUMIFS($B$3:$B$12,$C$3:$C$12,E22)
    =SUMIFS(# of rooms needed, date range, reference cell)

    And a way to determine in a room is being used during that specific date:
    =IF(SUMPRODUCT(($D$3:$D$12<=I$20)*($E$3:$E$12>=I$20+1)*($C$3:$C$12=$H21)),1,0)
    =If(Sumproduct((Start Date <= Reference date in graph)*(End Date <= Reference date in graph)*(building*reference cell)),1,0)

    How can the SUMIFS function be modified to limit the number of rooms returned for only the specified range of dates?

    Attached is the predicament:
    Attached Files Attached Files

+ 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