E
ExcelMonkey
I have an array with hourly data for an entire year. Normally I use
CountIf on this array to ascertain how many occurences occur ove
certain data ranges over the entire year. So assuming the data is i
B1:B8760. I would Count the number of occurences for the whole yea
where data is greater than 1:
Entire Year =COUNTIF($B$1:$B$8760,>1)
However I now want to use this COUNTIF to assess how may occurence
occur over certain data ranges in certain months. The easy way to d
this is to build 12 separate COUNTIFs and change the array:
January =COUNTIF($B$1:$B$744,>1)
February =COUNTIF($B$745:$B$1416,>1)
etc......
However I have to do this over multiple years taking into account lea
years. I added a new column field called month and assigned the righ
month to each hourly data element. How do I write one COUNTIF statmen
so that it always pulls from the entire holry array and discern
between the months? I will express the ouput over 12 cells in a
column as follows:
Year 1
January-----COUNTIF(DATELOGICARRAY, >1)
February----COUNTIF(DATELOGICARRAY, >1)
March--------COUNTIF(DATELOGICARRAY, >1)
April----------COUNTIF(DATELOGICARRAY, >1)
May----------COUNTIF(DATELOGICARRAY, >1)
June---------COUNTIF(DATELOGICARRAY, >1)
July----------COUNTIF(DATELOGICARRAY, >1)
August------COUNTIF(DATELOGICARRAY, >1)
September-COUNTIF(DATELOGICARRAY, >1)
October-----COUNTIF(DATELOGICARRAY, >1)
November--COUNTIF(DATELOGICARRAY, >1)
December--COUNTIF(DATELOGICARRAY, >1)
Can anyone help me with this?
Thank-yo
CountIf on this array to ascertain how many occurences occur ove
certain data ranges over the entire year. So assuming the data is i
B1:B8760. I would Count the number of occurences for the whole yea
where data is greater than 1:
Entire Year =COUNTIF($B$1:$B$8760,>1)
However I now want to use this COUNTIF to assess how may occurence
occur over certain data ranges in certain months. The easy way to d
this is to build 12 separate COUNTIFs and change the array:
January =COUNTIF($B$1:$B$744,>1)
February =COUNTIF($B$745:$B$1416,>1)
etc......
However I have to do this over multiple years taking into account lea
years. I added a new column field called month and assigned the righ
month to each hourly data element. How do I write one COUNTIF statmen
so that it always pulls from the entire holry array and discern
between the months? I will express the ouput over 12 cells in a
column as follows:
Year 1
January-----COUNTIF(DATELOGICARRAY, >1)
February----COUNTIF(DATELOGICARRAY, >1)
March--------COUNTIF(DATELOGICARRAY, >1)
April----------COUNTIF(DATELOGICARRAY, >1)
May----------COUNTIF(DATELOGICARRAY, >1)
June---------COUNTIF(DATELOGICARRAY, >1)
July----------COUNTIF(DATELOGICARRAY, >1)
August------COUNTIF(DATELOGICARRAY, >1)
September-COUNTIF(DATELOGICARRAY, >1)
October-----COUNTIF(DATELOGICARRAY, >1)
November--COUNTIF(DATELOGICARRAY, >1)
December--COUNTIF(DATELOGICARRAY, >1)
Can anyone help me with this?
Thank-yo