+ Reply to Thread
Results 1 to 3 of 3

Mark the Hours in use based on a start and finish time!!! HELP!!

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2013
    Posts
    10

    Mark the Hours in use based on a start and finish time!!! HELP!!

    I am working on an excel spreadsheet for work and I have to show a chart that shows the time of day a space is in use. Right now I am having to mark all of these by hand which takes me forever because I have a couple thousand lines of information.

    I need to mark the hours in use based off the start and finish time.

    For Example:
    1) If the start time was 7:00 and the end time was 10:45 then the markers would only mark 7am and 10am
    2) If the start time was 7:15 and the end time was 10:00 then the markers would only mark 7am and 9am
    3) If the start time was 7:30 and the end time was 10:30 then the markers would only mark 7am and 10am
    4) If the start time was 7:45 and the end time was 10:15 then the markers would only mark 8am and 9am

    I was given the formula and it works to count the whole hour but now I need the formula tweaked and I don't know how...I need the formula to account for quarterly hours...and I don't know how to fix it.


    Attached is an example of the spreadsheet of what I currently have and of what I need.
    Book1.xlsx

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Mark the Hours in use based on a start and finish time!!! HELP!!

    I used this much simpler formula
    =IF(AND($A2<=C$1, $B2>=D$1), 1, "-")
    Use that formula if,
    for the meeting that goes from 7AM to 7:50, do you want a "1" in the 7:45 position?
    if yes, then
    =IF(AND($A2<=C$1, $B2>=C$1),1,"-")
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Mark the Hours in use based on a start and finish time!!! HELP!!

    Oops, just saw you didn't want it expanded to 15 minute intervals.

    Use this formula in C2 copied across and down
    =IF(AND($A2<=C$1, $B2>=C$1),1,"-")

+ 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. [SOLVED] Mark the Hours in use based on a start and finish time!!! HELP!!
    By KattieSpencer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2014, 09:56 AM
  2. Replies: 0
    Last Post: 11-17-2013, 10:21 AM
  3. [SOLVED] How do i calculate work hours from only a start and finish date and time?
    By transitsolutions in forum Excel General
    Replies: 1
    Last Post: 02-28-2013, 03:39 PM
  4. Calculate finish time given start time, working hours and job duration
    By swanseaexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2012, 03:00 PM
  5. Replies: 1
    Last Post: 03-27-2006, 01:10 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