Gantt or stacked bar chart timeline - help needed!

trevorsteer

New Member
Joined
Mar 19, 2012
Messages
1
Hi there,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
I'm attempting to chart data obtained from our phone system to see when users are logged in/on rest. <o:p></o:p>
<o:p></o:p>
I’m using Excel 2007.<o:p></o:p>
<o:p></o:p>
The data we extract has:<o:p></o:p>
person | status | start | finish | duration<o:p></o:p>
<o:p></o:p>
Status is either “login” or “rest”<o:p></o:p>
Start/finish is time (h:mm)<o:p></o:p>
Duration is a formula (h:mm, finish - start)<o:p></o:p>
<o:p></o:p>
I want to have a stacked bar chart that shows when a person was logged in/on rest; one bar for each person.<o:p></o:p>
<o:p></o:p>
x-axis: person<o:p></o:p>
y-axis: time (8am – 6pm)<o:p></o:p>
legend: status<o:p></o:p>
<o:p></o:p>
The problem I’m encountering is that each person logs in and out multiple times throughout the day (therefore, has multiple lines to their name in the data), and I can’t get this information to appear on a single bar for each person.<o:p></o:p>
<o:p></o:p>
I've sorted the data into a pivot table which gives me the information I want, but I can’t figure out how to get the chart.<o:p></o:p>
<o:p></o:p>
Row labels<o:p></o:p>
a. Person<o:p></o:p>
b. status<o:p></o:p>
c. start<o:p></o:p>
<o:p></o:p>
Values<o:p></o:p>
Min of duration<o:p></o:p>
<o:p></o:p>
I’ll be very appreciative of any help. I’m happy to email the spreadsheet I’ve worked on thus far.
<o:p></o:p>
Ideally, I would like to avoid using a Gantt chart within cells (as it would involve vlookup/if statements), but am beginning to think that’s my only option...
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

sorry for the delay, sadly I couldn't present it exactly as you wished. Here is an alternative for your appraisal.
urlink

Please let us know so maybe we could work onto a different approach.

Cheers.
 
Upvote 0
Hi,
Ok disregard my last comment, I think this is what you are looking for: data(2) is the previous proposal and data(3) is I believe closer to what you want to see.
urnewlink
Thanks to let us know if this is acceptable

I modified the duration as to fit perfectly the time in and out...

Cheers.
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top