Frequency of a unique list with a condition.

Don McMahone

New Member
Joined
May 21, 2003
Messages
2
# of HU Desired Values
2003 Freq @ 2003 3
2004 Freq @ 2004 2

YEAR HU
2003 1
2003 1
2003 2
2003 3
2003 3
2003 3
2004 4
2004 4
2004 5
2004 5
2004 5

In the above representation of a spreadsheet the "freq @ 200X" is the field I am trying to develop a formula for. In the list there are 3 unique values in the HU#s for 2003 and 2 unique values in 2004. I can get the frequency of the unique values, but I can't figure how to make it conditional of what year it is in. I would appreaciate any help that anyone can provide.

Thanks,

don
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Book7
ABCDEF
1YEARHU
22003120033
32003120042
420032
520033
620033
720033
820044
920044
1020045
1120045
1220045
Sheet1


The array-formula in E2, which is copied down, is...

=COUNTDIFF(IF($A$2:$A$12=D2,$B$2:$B$12))-1

To array-enter a formula, you need to hit control+shift+enter at the same time, not just enter. The formula requires morefunc add-in.
 
Upvote 0
Book1
ABCDEFGH
1YEARHU20033
22003120042
320031
420032
520033
620033
720033
820044
920044
1020045
1120045
1220045
13
14
15
Sheet8
 
Upvote 0
Fantastic response. I've had two suggestions that will both solve my problem within the first 30 minutes.

Thanks so much for your assistance.

don
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,431
Members
451,705
Latest member
Priti_190

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