Which formula is best?

jonnywakey

New Member
Joined
Apr 1, 2009
Messages
13
Hi all

I'm stuck with the following problem.

I want to be able to change the number in a cell based on a percentage in another cell as follows:-

Cell A1 holds the dynamic number, Cell A2 holds the %age number.

Logic for cell A1 needs to be:- If A2 value <=65% then A1 shows number 5
If A2 value between 85% and 95% then A1 shows number 3
If A2 value >=95% then A1 shows number 1

Tried If And statements but couldn't get them to nest properly........any help appreciated.

Thanks

jonny
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You're missing a whole range, from 65% to 85%

I'll assume one of those is a typo, 85% - 95% should have been 65%-95%

Try

=LOOKUP(A2,{0,0.65,0.95},{5,3,1})
 
Upvote 0
I would use the relevant criteria in a Lookup but consider the following

=IF(A2>=0.95,1,IF(A2>=0.85,3,IF(A2>=0.65,4,5)))
 
Upvote 0

Forum statistics

Threads
1,216,360
Messages
6,130,175
Members
449,562
Latest member
mthrasher16

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