Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have roadway segments that have been rated 1-5. Each segment has a
different length. I want to calculate the average rating for the total length. How do I do that and make it a function of length. example: road A has a rating of 5 and is 3 miles long road B has a rating of 3 and is 1 miles long road C has a rating of 2 and is 2 miles long What is the average rating? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
3.666666667
-- Gary''s Student - gsnu200753 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This is called a 'weighted average'
For your data use (3*5 + 1*3 + 2*2) / (3+1+2) to get average rate You could have a column next to miles and rates to compute miles*rate then add this and divide by sum(miles) But it can be done in one cell: If miles are in A1:A3, rates in B1:B3 the formula =SUMPRODUCT(A1:A3,B1:B3)/SUM(A1:A3) will give the answer best wishes -- Bernard V Liengme Microsoft Excel MVP www.stfx.ca/people/bliengme remove caps from email "rodeo" wrote in message ... I have roadway segments that have been rated 1-5. Each segment has a different length. I want to calculate the average rating for the total length. How do I do that and make it a function of length. example: road A has a rating of 5 and is 3 miles long road B has a rating of 3 and is 1 miles long road C has a rating of 2 and is 2 miles long What is the average rating? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ratings | Excel Discussion (Misc queries) | |||
formula help: calculate length of employment | Excel Worksheet Functions | |||
Calculate the average using the Lookup function or similar | Excel Discussion (Misc queries) | |||
calculate the number of words in a row whose length is greater than 2 | Excel Worksheet Functions | |||
How can I calculate Vacation Time earned based on length of emplo. | Excel Discussion (Misc queries) |