+ Reply to Thread
Results 1 to 3 of 3

COUNTIF time interval falls between set of time ranges

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    5

    COUNTIF time interval falls between set of time ranges

    Hi Everyone,

    In one spreadsheet, I have a list of classes with the day(s) they occur along with their start and end times. See below. btw, M = Monday, T = Tuesday, W = Wednesday, R = Thursday, F = Friday

    Course Days Start Time End Time
    NU450 MT 7:00 AM 1:00 PM

    NU266 M 6:00 AM 9:00 AM

    NU615 WF 4:00 PM 7:00 PM

    NU455 R 10:00 AM 12:00 PM

    NU 220 WR 10:00 AM 2:00 PM

    In another spreadsheet, I have a table that looks like this:
    (Sorry about the format. Basically, each day has its own column and each time has its own row.)

    6:00 AM M T W R F
    6:30 AM
    7:00 AM
    7:30 AM
    8:00 AM
    8:30 AM
    9:00 AM
    9:30 AM
    10:00 AM
    10:30 AM
    11:00 AM
    11:30 AM
    12:00 PM
    12:30 PM
    1:00 PM
    1:30 PM
    2:00 PM
    2:30 PM
    3:00 PM
    3:30 PM
    4:00 PM
    4:30 PM
    5:00 PM
    5:30 PM
    6:00 PM
    6:30 PM
    7:00 PM
    7:30 PM
    8:00 PM
    8:30 PM
    9:00 PM
    9:30 PM
    10:00 PM
    10:30 PM
    11:00 PM
    11:30 PM
    12:00 AM

    I want to know, how many classes occur every half hour throughout the day. For example, how many classes occur from 6:00am - 6:29 am, 6:30 am - 6:59 am, etc. So if a class occurs from 7:00 am - 1:00 pm, it would be counted 12 times (1 for every half hour starting at 7:00 am and ending at 12:59 pm.

    Eventually, I would like to put this on a line graph that has the times on the x axis and the # classrooms on the y axis.

    I've been stumped on this forever. I would be more than ecstatic if someone could help me solve this problem.

    Thanks thanks thanks!

    Emily
    Last edited by eyoonbbj; 07-15-2014 at 12:29 PM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: COUNTIF time interval falls between set of time ranges

    Hello and welcome to the forum can you upload a sample book with expected results.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    07-15-2014
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    5

    Re: COUNTIF time interval falls between set of time ranges

    Sure thing! I've attached a workbook. The first tab has the data. The second tab is what I eventually want to achieve.

    Thanks so much!
    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)

Similar Threads

  1. Replies: 1
    Last Post: 04-29-2014, 04:42 AM
  2. use of countif formula to calculate time intervals eg.15 min interval
    By sachin kokitkar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2013, 10:32 AM
  3. [SOLVED] SUM data that falls within a time interval
    By shelsx in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-12-2012, 11:17 PM
  4. Replies: 0
    Last Post: 04-23-2012, 10:06 AM
  5. Countif to Count Activities in a time interval on a Specific Date
    By rajxkumar in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-28-2011, 03:55 PM

Tags for this Thread

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