Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Count number of times a date occurs and make a graph out of it [closed]

I have a list of dates, each date in it can occur more than once. I want to count the number of times each date occurs (histogram) and display it in a graph (with the Y axis being the number of times the date occurs and the X axis being the date itself)?

Sample list:

19/05/2012 19/05/2012 19/05/2012 17/05/2012 17/05/2012 16/05/2012 16/05/2012 16/05/2012 16/05/2012 15/05/2012 15/05/2012 15/05/2012 15/05/2012 12/05/2012 12/05/2012 12/05/2012 7/05/2012 

I clicked every menu option over the past few years and never did I find anything specific to this. Would this be a case for using PivotTables somehow?

like image 393
SystemX17 Avatar asked Jul 30 '12 10:07

SystemX17


People also ask

How do I count the number of times a date appears in Excel?

Use the COUNTIF function to count how many times a particular value appears in a range of cells.

How do you show the number of occurrences in Excel graph?

In C1 , paste this formula: =COUNTIF(A:A;B1) (Use a ; in Excel 2010+, otherwise use a , ). In the bottom right corner of C1 , click the black square and drag it down until you've reached the bottom of column B. Finally, create a graph as you normally would.

How do you count the occurrences of dates?

Count number of occurrences in a date range with formulas Select a blank cell that you want to place the count result, and enter this formula =SUMPRODUCT((A2:A14>=$D$1)*(A2:A14<=$D$2)), press Enter key. Now the number of occurrence in date range has been counted.

How do you make a graph from dates in Excel?

In the chart, right-click the category axis, and then click Format Axis. In the Format Axis pane, select the Axis Options tab. Expand Axis Options, and then under Axis Type, make sure Date axis is selected. Under Units, next to Base, select Days, Months, or Years.


1 Answers

The simplest is to do a PivotChart. Select your array of dates (with a header) and create a new Pivot Chart (Insert / PivotChart / Ok) Then on the field list window, drag and drop the date column in the Axis list first and then in the value list first.

Step 1:

Step1

Step 2:

Step2

like image 179
edeboursetty Avatar answered Nov 11 '22 09:11

edeboursetty