+ Reply to Thread
Results 1 to 10 of 10

Works in Process Formula

  1. #1
    Registered User
    Join Date
    12-30-2015
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    5

    Works in Process Formula

    I have a large data set with groups of people using a facility for different date ranges. I am trying to figure out how many groups are at the facility for each calendar day of the year. The start, end and all in-between dates should count as a group at the facility. The attached spreadsheet is a simplified version of my data set that shows the essential information. Any help with this WIP function will be much appreciated.

    Thanks!
    Andrew
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Works in Process Formula

    Do you want to be able to enter a date and get the result for that day, or to list all the days in a year and have the results for each day shown?

    Pete

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Works in Process Formula

    I assumed the latter. So, with a list of dats starting in G2, use this:

    =COUNTIFS(C:C,"<="&G2,D:D,">="&G2)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Works in Process Formula

    Incidentally, April only has 30 days (D24)....

  5. #5
    Registered User
    Join Date
    12-30-2015
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    5

    Re: Works in Process Formula

    Awesome! I assume there is a simple modification to get the total number of people per date?

    Thanks Glenn!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Works in Process Formula

    Yes. This will do total numbers of people:

    =SUMIFS(B:B,C:C,"<="&G2,D:D,">="&G2)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-30-2015
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    5

    Re: Works in Process Formula

    Perfect. Thank you much!

  8. #8
    Registered User
    Join Date
    12-30-2015
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    5

    Re: Works in Process Formula

    The results of this data set analysis were higher than expected so I thought about it and shared it around. I think the discrepancy results from our need to know the number of groups and people using the facility per night, rather than per day. I expect that running an analysis of groups per night would result in smaller numbers than groups per day because one group's entry day and another's exit day would not be counted as an overlapping use in the per night analysis.

    How would I would I calculate overlapping groups per night at the facility?

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Works in Process Formula

    slight mod

    =COUNTIFS(C:C,"<="&G2,D:D,">"&G2)

    =SUMIFS(B:B,C:C,"<="&G2,D:D,">"&G2)

    Does it work?
    Quang PT

  10. #10
    Registered User
    Join Date
    12-30-2015
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    5

    Re: Works in Process Formula

    It seems to work! Thank you.

+ 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. Formula incrementing during copy process
    By sliepner in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2015, 04:45 AM
  2. How to speed up formula calculation process
    By snuffnchess in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-04-2015, 12:19 PM
  3. Replies: 1
    Last Post: 04-27-2013, 09:55 PM
  4. Replies: 5
    Last Post: 03-15-2012, 01:20 AM
  5. Formula works, but works too well...
    By shaunl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2006, 02:57 AM
  6. How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2005, 06:06 AM
  7. [SOLVED] How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2005, 02:06 AM

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