With A1:B11 containing this list:
Priority Value
2 5
3 6
1 16
1 8
2 10
2 12
0 15
3 3
2 30
0 9
and...
D1: Priority
D2: 0
D3: 1
D4: 2
D5: 3
E1: Average
Then...this formula returns the average for Priority 0 items
E2: =SUMIF($A$2:$A$11,D2,$B$2:$B$11)/COUNTIF($A$2:$A$11,D2)
Copy that formula down through E5
..OR...you could use a Pivot Table to automatically build the table.
Still using the above example...(Column heading must exist):
From the Excel Main Menu: <Data><Pivot Table>
Use: Excel……Click [Next]
Select your data…(A1:B11)…Click [Next]
Click the [Layout] button
ROW: Drag the Priority field here
COLUMN: (leave this area blank)
DATA: Drag the Value field here
If it doesn't list as Average of Value...dbl-click it and set it to Average
Click [OK]
Select where you want the Pivot Table…Click [Finish].
That will list each Priority and the Average Value.
Does that help?
To refresh the Pivot Table, just right click it and select Refresh Data
Bookmarks