Conditional Frequency?

bp32

New Member
Joined
Mar 6, 2009
Messages
49
Hi all,

I am trying to create a series of frequency tables but have data that spans multiple years. I would like the tables calculated, but for each year separately.

Is there a way to write a formula for a conditional frequency? So that the frequency is only calculated for those rows where the year is equal to what I specify?

Thanks.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi all,

I am trying to create a series of frequency tables but have data that spans multiple years. I would like the tables calculated, but for each year separately.

Is there a way to write a formula for a conditional frequency? So that the frequency is only calculated for those rows where the year is equal to what I specify?

Thanks.
Maybe something like this...

Book1
AB
26/5/201030
310/3/201087
46/26/201034
59/20/201411
68/26/201077
77/30/200634
88/9/201030
97/24/201073
108/30/200916
114/23/201479
128/10/200650
137/27/201012
1410/14/200875
157/25/201072
Sheet1

Count numbers that are >=50 that correspond to year 2010.

=SUMPRODUCT(--(YEAR(A2:A15)=2010),--(B2:B15>=50))
 
Upvote 0
Thanks! I think I can use a reference rather than the number in the second part of the formula to make this easier, since I have a mess load of bins.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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