Calculated Average by Fee Level

Datatellsall2

New Member
Joined
Jul 17, 2018
Messages
23
Hello -


I'm trying to calcuate 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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Excel Workbook
ABCDEFGHIJKLMNO
1IndividualName of Project2000025000350004000045000Individual2000025000350004000045000
2Person AProject 13Person A435.53
3Person AProject 23Person B9.25
4Person AProject 35Person C59113
5Person AProject 43
6Person AProject 58
7Person AProject 63
8Person BProject 16
9Person BProject 216
10Person BProject 37
11Person BProject 48
12Person CProject 55
13Person CProject 66
14Person CProject 712
15Person CProject 81
16Person CProject 913
17Person CProject 1011
18Person CProject 117
sheet2



[TABLE="class: grid, width: 600"]
[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]K2[/TD]
[TD]=SI.ERROR(AVERAGEIFS(C$2:C$18,$A$2:$A$18,$J2,C$2:C$18,"<>0"),"")[/TD]
[/TR]
[/TABLE]


Copy the formula to the right up to column O and then down to row 4.
Change the formula 18 to the number of your last row with data.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
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