Bar chart to show time

sbaily

Board Regular
Joined
May 13, 2007
Messages
162
hi all

i have date (see below) and i want to display this in a barchart. How do i do this?

Column A
Start time
08:30

Column B
Pt arrives
09:00

Column C
Patient seen
09:30

Column D
Patient left
10:20

Column E
end time
11:00

I want to show block of colour on the graph for each stage, the start being 8:30 and end being 11:00. the gaps will be shown in a different colour so i can show wasted time

thanks
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
4,922
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
You want a stacked bar chart. The first bar goes from 0 to 8:30, and is formatted with no fill, so it is invisible. The second bar, stacked on the first, has a length of 9:00 minus 8:30, or 0:30. The third bar has length 9:30 minus 9:00, or 0:30. The fourth is 10:20 minus 9:30, or 0:50, and the last is 11:00 minus 10:20, or 0:40. These can all be computed with simple formulas.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,420
Messages
5,528,675
Members
409,829
Latest member
CFreeamaz

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top