Average score for each project by person

kadam

New Member
Joined
Aug 29, 2008
Messages
5
I want to calculate average "Estimated Effort" for project associated to each EVP.

For example, Wilber has two projects, one has an estimated effort of 2 and the other one is a 3, so I want to create a table that pulls the information for Wilbert and states looks something like this:


Report
EVPNum of ProjectsAverage Est Effort
Mike24
Wilber22.25
Hank31

<colgroup><col><col><col></colgroup><tbody>
</tbody>



Here is the source table:
Project TitleEVPEst. Project Size (T-shirt Sizing)Application DependenciesEstimated Effort
Remove Sybase (Architecture)Mike444
Pre-Requisites to Conversion to OracleWilber312
Quote ReplacementMike444
OEM Lock DownWilber233
Locker Pickup P2Hank111
POS Restriction to Purchase when BSS has a STD xref.Hank111
Modify POS New Store Database build to support version 7.3Hank111

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
with PowerQuery aka Get&Transform

EVPCountAvg
Mike
2​
4​
Wilber
2​
2.5​
Hank
3​
1​

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Project Title", type text}, {"EVP", type text}, {"Est. Project Size (T-shirt Sizing)", Int64.Type}, {"Application Dependencies", Int64.Type}, {"Estimated Effort", Int64.Type}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"EVP"}, {{"Count", each Table.RowCount(_), type number}, {"Avg", each List.Average([Estimated Effort]), type number}})
in
    #"Grouped Rows"[/SIZE]

is that what you want?
 
Upvote 0
Yes, that is the results I'm looking for. I'm not familiar with Power Query but I'm sure I can find some tutorials on how to do it.

Thank you
 
Upvote 0
Please forgive me if I am missing a critical detail, but why not just use AVERAGEIF where your (test) range is your EVP, your criteria is the name of the EVP, and the average range is the Estimated Effort column?

ABCDE
1Project TitleEVPEst. Project SizeApp DependenciesEst. Effort
2P1Mike444
3P2Wilber312
4P3Mike444
5P4Wilber233
6P5Hank111
7P6Hank111
8P7Hank111
9
10EVPCountEst. Effort
11Mike24
12Wilber22.5
13Hank31

<tbody>
</tbody>

Where the formula in cells C11:C13 is =AVERAGEIF($B$2:$B$8,B11,$E$2:$E$8)
 
Last edited:
Upvote 0
That makes sense too. I tried to use an AverageIf statement but couldn't get it to work, obviously I wasn't doing it right and no help menus were very helpful. Thank you.
 
Upvote 0
AVERAGEIF is pretty straightforward. The arguments are, in order:

Range: the range where you want to test on some condition. In your case, it will be the range of cells that contain your EVP names.

Criteria: the test. If you are testing for anything otherwise than equality, you have to put the test (<,>,<=,>=,<>) and the test value, inside quotes. For example, if your condition was >5, your criteria arg would be “>5”.

Since you are testing for equality, simply using the cell reference that has the value you are looking to test on suffices.

Average Range: this is an optional arg and is used when the values you want to average are not in the range you are testing on. In your specific case, the range of cells containing the estimated effort.

Using absolute and relative cell referencing correctly should allow you to copy and paste the formula up/down/left/right as needed.

If you’re still not sure what do do, just google AVERAGEIF Anne Excel is Fun.
 
Upvote 0

Forum statistics

Threads
1,215,758
Messages
6,126,709
Members
449,331
Latest member
smckenzie2016

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