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.
 

Some videos you may like

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

BrianJN1

Well-known Member
Joined
Jun 15, 2017
Messages
603
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?
 

Flashbond

Well-known Member
Joined
Mar 13, 2010
Messages
670
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:

tsshchi

New Member
Joined
Oct 22, 2017
Messages
6
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 ;)

OMG!!!You are absolute right!!!! You did just make my day:)

Salute from Hong Kong!!! Thx man.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,567
Messages
5,596,907
Members
414,110
Latest member
docops

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
Top