Time series charting

ozbroady

New Member
Joined
Aug 5, 2015
Messages
3
Hi..

Im hoping someone can help me with some help building a graph.

I have a spreadsheet which I have simplified down to two columns, one is date, and the other is a number between 1 and 10.

The number between 1-10 signifies a category of a particular event that happened that day. Some dates have more than one event.

I would like to graph the total number of occurrences of each category over a monthly period.

So, maybe a line graph with 10 lines, and then the amount of instances for that month on the Y axis or something like that? I would also settle for 10 individual graphs if that was my only option. I am somewhat a novice when it comes to excel - I would really appreciate if someone could help me.

A sample of the data is as follows.

Thanks.


DATEEVENT CATEGORY
25/04/152
25/04/151
25/04/154
25/04/152
25/04/151
27/04/151
27/04/154
28/04/155
29/04/151
30/04/152
30/04/151
1/05/155
1/05/155
1/05/155
1/05/155
1/05/1510
2/05/157
2/05/154
3/05/152
5/05/155
6/05/157
7/05/155
7/05/151
9/05/153
10/05/151
12/05/157
12/05/152
12/05/151
13/05/151
14/05/151
15/05/157
16/05/151
16/05/151
17/05/151
17/05/157
17/05/151
17/05/152
18/05/155
18/05/155
18/05/155
18/05/153
18/05/151
20/05/151
20/05/151
21/05/157
21/05/154
22/05/152
22/05/151
25/05/154
25/05/157
25/05/157
25/05/153
26/05/155
26/05/153
27/05/155
28/05/151
29/05/157
30/05/155
30/05/151
1/06/151
1/06/1510
1/06/154
1/06/157
2/06/155
2/06/1510
2/06/152
2/06/155
2/06/154
2/06/151
3/06/151
3/06/151
5/06/157
5/06/151
5/06/151
5/06/155
6/06/158
6/06/156
7/06/151
7/06/151
8/06/151
8/06/154
9/06/157
10/06/154
10/06/151
11/06/152
12/06/152
13/06/157
13/06/151
13/06/154
14/06/157
15/06/151
16/06/151
16/06/151
16/06/153
16/06/151
16/06/155
17/06/157
17/06/157
17/06/152
18/06/1510
18/06/158
18/06/155
19/06/155
19/06/151
19/06/156
19/06/157
20/06/156
22/06/156
22/06/157
25/06/1510
26/06/152
27/06/151
27/06/151
27/06/154
27/06/154
28/06/157
29/06/157
30/06/151
30/06/151
30/06/151
30/06/151
1/07/155
2/07/1510
2/07/156
2/07/151
3/07/151
5/07/155
5/07/151
5/07/151
6/07/151
7/07/151
8/07/151
9/07/151
9/07/151
9/07/157
10/07/153
10/07/151
10/07/159
10/07/158
11/07/153
11/07/1510
12/07/157
12/07/155
12/07/155
12/07/151
12/07/153
13/07/153
13/07/151
13/07/157
14/07/151
14/07/153
14/07/155
14/07/152
15/07/157
15/07/151
15/07/155

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi and welcome to the MrExcel Message Board.

One thing you could try is a stacked bar chart. That would give you one bar per day. Each bar could have a different colour for each event category and the length of the coloured segments would show the number of events of that category. The total height of the bar would show represent the total number of events for that day.

To do that I reorganised the data. I used the Data menu to make a copy of unique date values then I aded a heading for each event category. I used the last two characters in a look up later.

Then I created a COUNTIFS formula for each cell. There are lots of other ways to transpose the data. The fist few rows of data looked like this. You just need to select the data and insert a stacked bar chart and you are done.


Excel 2013
EFGHIJKLMNO
1DATEEC01EC02EC03EC04EC05EC06EC07EC08EC09EC10
225/04/20152201000000
327/04/20151001000000
428/04/20150000100000
529/04/20151000000000
Sheet1
Cell Formulas
RangeFormula
F2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(F$1,2))
G2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(G$1,2))
H2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(H$1,2))
I2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(I$1,2))
J2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(J$1,2))
K2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(K$1,2))
L2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(L$1,2))
M2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(M$1,2))
N2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(N$1,2))
O2=COUNTIFS($A$2:$A$157,$E2,$B$2:$B$157,RIGHT(O$1,2))
 
Upvote 0
Hi RickXL.. Thankyou so much for your assistance. I think you are on to something here. Instead of the stacked bar chart I used a line graph and it is giving me pretty much precisely the chart I wanted. I now just need to find the quickest way to reorganise the data as you have done. I will replicate the instructions have gave - It all appears quite straight forward.

Thanks again.
Chris
 
Upvote 0
Hi RickXL.. Can I ask what option in the data menu gave you the unique dates? Im guessing it was some sort of consolidation command. And to propogate the event info - was that manual?
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,011
Members
449,414
Latest member
sameri

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