Cost per worker hr. is ($20.00 + ($16.50 x 0.5))
To calculate the Avg. hr. rate you need the number of hrs. worked by each for any given period.
If name is col.A, salary is col.B, hrs col.C and a days pay is col.D, Then:
=SUM(Dy:Dx)/SUM(Cy:Cx)
where D = [=Bx*Cx]
x and y are ranges or cells.
The trick is to get a days pay for each worker first. then add [SUM] all the days pay for the period you want and devide it by the total hours worked. If you do this for each worker, to give you more data, then add each worker average and devide by the number of workers. It will work if you do all the data for all workers at once as well. JSW
=SUM(D1:D2)/SUM(C1:C2)
average hourly pay rate--be careful
IMHO, it is not accurate to "average the averages" to
get your overall average. Instead add all the wages and
all the hours, then divide.
Not what I was asking about
I was asking how I could sort by the number of total hours. I never mentioned pay rate at all. But I did get my question answered (sort of) and I really appreciate the help. Thanks for your input everyone.
TJ