My friend is tracking a medical problem that has multiple start/stop times each day. I put her data in excel using military time, but do not know how to get the graph to show the data correctly.
Thank you in advance for your help
Judy
My friend is tracking a medical problem that has multiple start/stop times each day. I put her data in excel using military time, but do not know how to get the graph to show the data correctly.
Thank you in advance for your help
Judy
Times are just numbers (fractions of a day), so they should chart up just fine. Without knowing more detail about what you are doing (chart type, how you are trying to incorporate times in your chart, etc.) I don't think we can provide much specific help. Can you explain in more detail what you are doing -- perhaps upload a sample spreadsheet?
Originally Posted by shg
Thank you for your prompt reply.
My friend has Restless Leg Syndrome (RLS) - and the Dr has requested a chart showing when the affliction
starts and ends each day (start/stop times 'duration' each day).
I think I have attached a portion of the spreadsheet (Excel 2010) - but let me know if it is not attached -
still figuring this out.
Judy
maybe something like this one
Thank you sandy666 - but the chart needs to show the stop and start times for each day -
I 'drew' something in MS Word to better show a possible 'output'
Let me know if it makes sense...
Judy
like this one?
Thanks Sandy - Much more like this - but can we get the end time to stop (instead of extending to another time)?
Judy
I'll try it a little later
Maybe, in the meantime, someone else will give you more accurate solution.
That looks like a basic Gantt chart. Most Gantt charts are stacked bar, where your picture shows a stacked column, but that doesn't change the basic ideas. Here's how I would proceed
0) Hopefully useful links about creating charts in Excel:
stacked bar/column tutorial: https://www.extendoffice.com/documen...umn-chart.html
basic Gantt chart tutorial (based on duration in days, but the same basic idea applies to times): https://www.officetimeline.com/gantt-chart-excel
introduction to how Excel stores dates and times: http://www.cpearson.com/Excel/datetime.htm
1) What is the most "starts -- stops" intervals you expect to ever see in a day? Set up that many pairs of columns.
2a) Enter data. I would expect a format like this:2b) Note that I enter the values as decimal hours at this point, because I find that easier to enter. Also note that I subtracted each time pair in my head to get the durations. If you want to take advantage of Excel's time formatting, you need to convert these values to "fraction of a day" by dividing everything by 24 (Enter 24 in a convenient cell -> Copy this cell to clipboard -> select these durations -> Paste -> Paste special -> Divide -> Format cells as desired time format).Please Login or Register to view this content.
2c) If you don't want to compute durations in your head, it would be easy enough to enter start and end times in the same table format, then use simple subtraction formulas to get the durations. Just remember that you are going to build the Gantt chart based on durations, not the original time data. If you go this route, it will be important to get your times entered in a way that Excel will recognize them as time. Based on your sample, that is probably easiest by entering hh:mm AM/PM like you did in column B and C, but you must include a space before the AM/PM to get Excel to recognize the time entry.
3a) With your table of durations set up, select the table -> Insert -> Chart -> Stacked column (or bar if you decide you like the horizontal arrangement better).
3b) Hopefully Excel correctly interpreted the chart. If not, go into the Select Data dialog and fix Excel's mistakes (try not to grumble too much).
3c) Format data series as desired (mostly this is selecting the columns/bars between the End times and the Start times where the RSL was absent to have no fill). If needed, format vertical axis (horizontal axis if you changed to a stacked bar chart) so that it shows time in the desired format.
3d) Other formatting as desired.
Note that most of the work in creating a Gantt chart is in building the table of values that feed into the chart. If you spend the necessary time getting a good arrangement of the data, the chart will be easy to create and maintain. If you try any shortcuts in step 2, you will probably have trouble with your Gantt chart.
Does that help? Where do you get stuck?
Thank you MrShorty - I am printing your response and will work on it today and get back with any questions
Thanks to sandy also - for helping me clarify specifics
Judy
One more
You can play with this like you want
I had a different approach with a stacked barchart.
Kind regards,
Piet Bom
Dear Piet Bom,
This DOES work -
It looks like multiple formulas for start/stop times -
I did add dates and start/stop times to the data - and it continues to graph accordingly -
So my question is - what do I need to do to make sure I can continue to add info? My friend has an appointment at Yale in mid-October, so she will have data from 7/1 - 10/15
Thank you in advance
Judy (the Excel novice - but I am taking a course on Swift programming
Hi Judy,
I extended the sheet to 4 months.
Is this what helps you ?
Last edited by PietBom; 09-11-2017 at 05:43 PM.
Glad to help you and your friend with RLS.
Please let me know if the Dr could use the chart info as it is presented in this format.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks