Calculated Average by Fee Level

Datatellsall2

New Member
Joined
Jul 17, 2018
Messages
23
Hello -


I'm trying to calculate a measure where I can see the average number of hours by fee level based on the 'individual'. As an example based on the data below, the average for Person A would be 4 within the 20K fee level.

[TABLE="width: 497"]
<colgroup><col><col><col span="5"></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 5"]Fee Category[/TD]
[/TR]
[TR]
[TD]Individual[/TD]
[TD]Name of Project[/TD]
[TD]20000[/TD]
[TD]25000[/TD]
[TD]35000[/TD]
[TD]40000[/TD]
[TD]45000[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD]Project 1[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD]Project 2[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD]Project 3[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD]Project 4[/TD]
[TD] [/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD]Project 5[/TD]
[TD] [/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD]Project 6[/TD]
[TD] [/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person B[/TD]
[TD]Project 1[/TD]
[TD] [/TD]
[TD][/TD]
[TD]6[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person B[/TD]
[TD]Project 2[/TD]
[TD] [/TD]
[TD][/TD]
[TD]16[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person B[/TD]
[TD]Project 3[/TD]
[TD] [/TD]
[TD][/TD]
[TD]7[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person B[/TD]
[TD]Project 4[/TD]
[TD] [/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD]Project 5[/TD]
[TD] [/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD]Project 6[/TD]
[TD] [/TD]
[TD][/TD]
[TD]6[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD]Project 7[/TD]
[TD] [/TD]
[TD][/TD]
[TD]12[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD]Project 8[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD]Project 9[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD]Project 10[/TD]
[TD] [/TD]
[TD][/TD]
[TD]11[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD]Project 11[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]7[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Book1
ABCDEFG
1Fee Category
2IndividualName of Project2000025000350004000045000
3Person AProject 13
4Person AProject 23
5Person AProject 35
6Person AProject 43
7Person AProject 58
8Person AProject 63
9Person BProject 16
10Person BProject 216
11Person BProject 37
12Person BProject 48
13Person CProject 55
14Person CProject 66
15Person CProject 712
16Person CProject 81
17Person CProject 913
18Person CProject 1011
19Person CProject 117
20
212000025000350004000045000
22Person A435.503
23Person B009.2500
24Person C059113
Sheet5
Cell Formulas
RangeFormula
C22=IFERROR(AVERAGEIF($A$3:$A$19,$A22,C$3:C$19),0)
C23=IFERROR(AVERAGEIF($A$3:$A$19,$A23,C$3:C$19),0)
C24=IFERROR(AVERAGEIF($A$3:$A$19,$A24,C$3:C$19),0)
D22=IFERROR(AVERAGEIF($A$3:$A$19,$A22,D$3:D$19),0)
D23=IFERROR(AVERAGEIF($A$3:$A$19,$A23,D$3:D$19),0)
D24=IFERROR(AVERAGEIF($A$3:$A$19,$A24,D$3:D$19),0)
E22=IFERROR(AVERAGEIF($A$3:$A$19,$A22,E$3:E$19),0)
E23=IFERROR(AVERAGEIF($A$3:$A$19,$A23,E$3:E$19),0)
E24=IFERROR(AVERAGEIF($A$3:$A$19,$A24,E$3:E$19),0)
F22=IFERROR(AVERAGEIF($A$3:$A$19,$A22,F$3:F$19),0)
F23=IFERROR(AVERAGEIF($A$3:$A$19,$A23,F$3:F$19),0)
F24=IFERROR(AVERAGEIF($A$3:$A$19,$A24,F$3:F$19),0)
G22=IFERROR(AVERAGEIF($A$3:$A$19,$A22,G$3:G$19),0)
G23=IFERROR(AVERAGEIF($A$3:$A$19,$A23,G$3:G$19),0)
G24=IFERROR(AVERAGEIF($A$3:$A$19,$A24,G$3:G$19),0)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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