View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Daryl S Daryl S is offline
external usenet poster
 
Posts: 135
Default Mathematically accurate % calculation for "over-score" scenari

WileWill -

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

--
Daryl S


"WildWill" wrote:

Thanks RonaldoOneNil

I do however also need it to work correctly for any other single increments
in the numbers, i.e. if I have G25=60 and H25=54, I expect an answer of 110%
performance, and I get 190% with the formula above.

"RonaldoOneNil" wrote:

=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!