View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
RonaldoOneNil RonaldoOneNil is offline
external usenet poster
 
Posts: 117
Default Mathematically accurate % calculation for "over-score" scenario

=IF(G25H25,H25/G25+1,IF(G25=H25,H25/G25,H25/G25-1))

"WildWill" wrote:

I have G25=60 and H25=30, where a person was given 60 days to perform a task
and he ended up performing the task in 30 days. Thus he has "over-performed"
and scores 150% for that task.

If he completed the task in 60 days, I would have G25=60 and H25=60 and I
would expect a calculated % of 100% performance.

If he completed the task in 90 days, I would have G25=60 and H25=90 and I
would expect a calculated % of 50% performance.

I have tried using (G25/H25)-(H25/G25), whihc works fine for the top example
and gives me 150%, but for all the other combinations it gives me wrong
andswers, i.e. with G25=60 and H25=60 I get 0% and I should get 100%, and
with G25=60 and H25=90 I get -83% and I shoud get 50%.

Please help!