Excel chart on one column of date/times
I have a list of date/timestamps, and I would like to plot these to a chart in Excel. What I'm looking for is a chart that shows "events per hour" or something similar. Can this be done easily if I just have one column of data (the list of timestamps)? I'm using excel 2007 and looking at two data sets. One is 56k events and the other 750, both over the span of a few days.
Solution 1:
Give your column of timestamps a name, in the first row, say "Timestamp".
Now create a Pivot Table with Timestamp used twice - once in the Values area (Count) and again in the Row Labels area.
You can then select grouping on the Row Labels as days, hours, minutes, whatever.
Then select Options | PivotChart.
Solution 2:
Several thoughts -
First, search histogram in Excel's built-in help. You should have the ability to install the Data Analysis add-in which has a function to do just that.
Otherwise, if you're willing to shell out the $30 - Addins.com has an addin for this purpose. (I have not used it so I can't say what is better or worse compared to the built-in functions.)
Either way - you may run into trouble with charting limitations (I'm not sure what 2007's limits are, but 2003 only will allow 65k rows of data and other restrictions on points in a chart).
Finally, a plug for 'R' - this software could very simply import arbitrarily large data sets and give you histograms with the data you're looking for. As an added bonus, it's open-source freeware and can import many data file formats. See 'R' at cran.r-project.org
Solution 3:
Make a pivot table, group date field by hour as explained in http://www.contextures.com/xlpivot07.html, then insert a chart based on pivot table.