Average number of unique occurences

ro801

New Member
Joined
Jun 24, 2010
Messages
13
Hi. I need some help to complete a formula. I have calculated the number of unique occurrences but now I need to average number of unique occurrences.

I did this to get unique occurrences which works:
Code:
Table is below, I need the average number of times for each time same 'ID' occurs. Using the scenario below it visually would be 3+1+1/3=1.66 but fields are added to and change frequently. Any help would be appreciated.

[TABLE="width: 313"]
<tbody>[TR]
[TD]LINK_ID[/TD]
[TD]HFDU_CASE_ID[/TD]
[TD]ATT_ID[/TD]
[TD]ID[/TD]
[/TR]
[TR]
[TD]58[/TD]
[TD]29[/TD]
[TD]20/11/201729[/TD]
[TD]31[/TD]
[/TR]
[TR]
[TD]59[/TD]
[TD]30[/TD]
[TD]21/11/201730[/TD]
[TD]31[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]31[/TD]
[TD]22/11/201731[/TD]
[TD]31[/TD]
[/TR]
[TR]
[TD]63[/TD]
[TD]35[/TD]
[TD]06/12/201735[/TD]
[TD]33[/TD]
[/TR]
[TR]
[TD]64[/TD]
[TD]36[/TD]
[TD]21/11/201736[/TD]
[TD]32[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi,

Try this :

E2 =COUNT(D2:D6)/SUM(--(FREQUENCY(D2:D6,D2:D6)>0))

ABCDE
1LINK_IDHFDU_CASE_IDATT_IDIDAverage
2582920/11/201729311.666667
3593021/11/20173031
4613122/11/20173131
5633506/12/20173533
6643621/11/20173632

<colgroup><col span="3"><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
That's great thanks!

Hi,

Try this :

E2 =COUNT(D2:D6)/SUM(--(FREQUENCY(D2:D6,D2:D6)>0))

ABCDE
1LINK_IDHFDU_CASE_IDATT_IDIDAverage
2582920/11/201729311.666667
3593021/11/20173031
4613122/11/20173131
5633506/12/20173533
6643621/11/20173632

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,521
Members
449,088
Latest member
RandomExceller01

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