ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Mathematically accurate % calculation for "over-score" scenario (https://www.excelbanter.com/excel-discussion-misc-queries/248740-mathematically-accurate-%25-calculation-over-score-scenario.html)

WildWill

Mathematically accurate % calculation for "over-score" scenario
 
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!

RonaldoOneNil

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!


WildWill

Mathematically accurate % calculation for "over-score" scenari
 
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!


Daryl S

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!


WildWill

Mathematically accurate % calculation for "over-score" scenari
 
Hi Daryl S

Not quite: following my example, once I reach a situation of G25=60 and
H25=120, I should hypothetically get an answer of 0%, since it has taken the
member twice as long to achieve the result as defined by the terget (60) -
but it actually returns 100%.

"Daryl S" wrote:

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!


Bernie Deitrick

Mathematically accurate % calculation for "over-score" scenari
 
This will give you what you want

=1+(G25-H25)/G25

HTH,
Bernie
MS Excel MVP


"WildWill" wrote in message
...
Hi Daryl S

Not quite: following my example, once I reach a situation of G25=60 and
H25=120, I should hypothetically get an answer of 0%, since it has taken the
member twice as long to achieve the result as defined by the terget (60) -
but it actually returns 100%.

"Daryl S" wrote:

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!




WildWill

Mathematically accurate % calculation for "over-score" scenari
 
Ahhhh Absolution!!! Bernie - thank you so much!

"Bernie Deitrick" wrote:

This will give you what you want

=1+(G25-H25)/G25

HTH,
Bernie
MS Excel MVP


"WildWill" wrote in message
...
Hi Daryl S

Not quite: following my example, once I reach a situation of G25=60 and
H25=120, I should hypothetically get an answer of 0%, since it has taken the
member twice as long to achieve the result as defined by the terget (60) -
but it actually returns 100%.

"Daryl S" wrote:

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!



.



All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com