Q: How can I create a chart that creates new series every year when the data is not collected daily?
I collect numbers from my solar system "occasionally", and want to create a normalized graph that shows that generation on a yearly basis so I can compare fall to fall each year, etc.
Since the information is not strictly "daily" (just whenever I get to it), I don't know how to normalize it across multiple years.
For example, if I had
Date - Kw/day
1/15/10 - 14
4/3/10 - 18
4/18/10 - 17
6/1/10 - 19
9/21/10 - 15
12/3/10 - 9
2/7/11 - 13
5/2/11 - 16
8/17/11 - 18
11/1/11 - 12
11/2/11 - 12
1/5/12 - 9
6/4/12 - 12
and so on.
What I'd like to see is a line graph for each year from January to December with those datapoints on it. I have much more "incremental data" than I presented above, but it's on "random dates" over the last 8 years, and I'm just trying to see how each year compares to the other years.
To be up front, I tried to figure out how to to this in Excel as well, but couldn't figure it out there either.
TIA for any advice/hints/tips!
Steve
MacBook Pro, OS X El Capitan (10.11.3), 16Gb RAM (running 10.11.4)
Posted on Sep 4, 2016 9:26 AM
This might work for you...
I placed your data in a table named "Data"
Create a second (in this example, titled "Table 1")
In the table "Table 1" months are in the first column and the first row (which is a header row) contains the years-- add columns to add new years:
B2=IF(SUMIFS(Data::$B, Data::$A, ">="&DATE(B$1, $A2, 1), Data::$A, "<"&EOMONTH(DATE(B$1, $A2, 1),0))>0, SUMIFS(Data::$B, Data::$A, ">="&DATE(B$1, $A2, 1), Data::$A, "<"&EOMONTH(DATE(B$1, $A2, 1),0)), "")
this is shorthand for... select cell B2 then type(or copy and paste from here) the formula:
=IF(SUMIFS(Data::$B, Data::$A, ">="&DATE(B$1, $A2, 1), Data::$A, "<"&EOMONTH(DATE(B$1, $A2, 1),0))>0, SUMIFS(Data::$B, Data::$A, ">="&DATE(B$1, $A2, 1), Data::$A, "<"&EOMONTH(DATE(B$1, $A2, 1),0)), "")
select cell B2 copy
select cells B2 thru the end of F13, paste
now select cells A2 thru F13, and add a chart (the XY Scatter chart)
To add new years add one (or more) new columns for table "Table 1", then add the year at the top:
Now single click the chart to activate the chart. then click the button "Edit Data References"
now drag the data reference control handle to the right to add new years to the chart:
You can add several years at a time so you do not have to this very often
Posted on Sep 4, 2016 7:01 PM


