IF function

tsshchi

New Member
Joined
Oct 22, 2017
Messages
6
I want to create two cell, 1st cell value will be between score 0-100, 2nd cell will be shown in % based on the value in the 1st cell

Example: 1st cell is A1 and 2nd is A2

When A1= 98-100, A2=100%
When A1= 97-91, A2=90%
When A1= 90-86, A2=80%
When A1= 85-81, A2=70%
When A1= 80-76, A2=60%
When A1= 75-71, A2=50%
When A1= 70-66, A2=40%
When A1= 65-61, A2=30%
When A1= 60-56, A2=20%
When A1= 55-51, A2=10%
when A1= 50-0 , A2=0%

I want to use IF function on cell A2 to show the above result.
Appreciate if you can show me the logical equation on this.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I want to create two cell, 1st cell value will be between score 0-100, 2nd cell will be shown in % based on the value in the 1st cell

Example: 1st cell is A1 and 2nd is A2

When A1= 98-100, A2=100%
When A1= 97-91, A2=90%
When A1= 90-86, A2=80%
When A1= 85-81, A2=70%
When A1= 80-76, A2=60%
When A1= 75-71, A2=50%
When A1= 70-66, A2=40%
When A1= 65-61, A2=30%
When A1= 60-56, A2=20%
When A1= 55-51, A2=10%
when A1= 50-0 , A2=0%

I want to use IF function on cell A2 to show the above result.
Appreciate if you can show me the logical equation on this.

I have one big question:
What is the rationale that A2 = xxx% for A1 being between yyy and zzz?
 
Upvote 0
This sould make your day :)

=IF(A1<51,0,IF(AND(A1>90,98>A1),90,CEILING((A1-50)*2,10)))/100

Don't forget to format A2 as Percentage ;)
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top