+ Reply to Thread
Results 1 to 5 of 5

add floating bar to time schedule

  1. #1
    Registered User
    Join Date
    09-29-2008
    Location
    california
    Posts
    5

    add floating bar to time schedule

    Hello, I would like to create an excel formula that would have a start time, end time, duration, then have a bar graph showing that time to the right. any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Try this

    Please Login or Register  to view this content.
    Then copy to all the range
    I need your support to add reputations if my solution works.


  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,447
    You can use conditional formatting to colour the cells.

    Select the range $D$4:$BU$22

    =AND(D$2>=$A4,D$2<$B4)


    This though does not handle the breaks in the duration.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    You haven't put the times of the lunch breaks(?) in...
    If they're always the same 'distance' from the start time you should be able to add them fairly easily.

    My solution is thus:
    You need a stacked column (or stacked bar, in your case, but this is purely cosmetic). For this to work you need Excel to know the differences between times - not the actual times. I have written an expanded version of how this looks in the attached but you could condense it very easily - it's just to show the logic of the solution. This means you can say on a day which starts at 6:45, has an hour for lunch at 11:45 and finishes at 4:45 is:
    Off->6:45
    On for 5 hours
    Off for an hour
    On for 4 hours

    When you stack these up you get the outline of what you're looking for.

    Then all we need to do is right click the "before work starts" series and set the border and fill to none and sim. for the "lunch time" series.

    See attached, I'm sure once you see how this works you'll be able to tweak it to your own taste.

    HTH
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-29-2008
    Location
    california
    Posts
    5
    works great, thank you very much.

+ 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. Code Execution Degrades Over Time
    By KDT in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-25-2008, 04:28 PM
  2. Changing time
    By Ziggy_ks1 in forum Excel General
    Replies: 1
    Last Post: 04-21-2008, 10:42 PM
  3. Time w/in Each Hour of Day btwn a Time Range
    By gbrogmus in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-30-2007, 03:01 AM
  4. Date and Time Graphs
    By sach0025 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-10-2007, 01:07 AM
  5. Assignment overDUE PLEASE PLEASE HELP!!
    By undergrad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2006, 12:34 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