please help! my brain isnt brain-ing today

LIZEEY

New Member
Joined
Feb 1, 2024
Messages
6
Office Version
  1. 2019
Platform
  1. Windows
i need to create a formula that will return me different value based on percentage met ie; under 90% = 1 / 90-95% = 2 / 95-100% = 5 / 100+% = 10 my mind is a complete blank1 i have tried IF/AND but just cant get it to work for all 4 scenarios -( please help
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
try the following; use the one that you prefer

T202402a.xlsm
ABCDE
1
20%1
390%2
495%5
5100%10
6
792%222
1a
Cell Formulas
RangeFormula
C7C7=LOOKUP(B7,B2:C5)
D7D7=LOOKUP(B7,{0,1;0.9,2;0.95,5;1,10})
E7E7=IF(B7>=1,10,IF(B7>=0.95,5,IF(B7>=0.9,2,IF(B7>=0,1,0))))
 
Upvote 1
Solution
Perhaps this:

Book1
AB
10.51
20.751
30.891
40.92
50.932
60.955
70.975
80.995
9110
101.0110
111.0910
120.9492
Sheet1
Cell Formulas
RangeFormula
B1:B12B1=LOOKUP(A1,{0,0.9,0.95,1},{1,2,5,10})
 
Upvote 1
Perhaps this:

Book1
AB
10.51
20.751
30.891
40.92
50.932
60.955
70.975
80.995
9110
101.0110
111.0910
120.9492
Sheet1
Cell Formulas
RangeFormula
B1:B12B1=LOOKUP(A1,{0,0.9,0.95,1},{1,2,5,10})
thank you for this! ive never used lookup like this before and it looks like it could be really useful! i have tried adapting it for my sheet but its not working, what am i doing wrong - my data is very specific no it needs to be exact to the .00%
 

Attachments

  • excel.png
    excel.png
    4.8 KB · Views: 4
Upvote 0
thank you! i have tried the bottom and changed to match my data but the 0.5 bracket cells are returning 0 :( what am i doing wrong?

=IF(AI16>=100%,2,IF(AI16>=95%,1,IF(AI1>=90%,0.5,IF(AI16<90%,0,0))))


 
Upvote 0
try the following; use the one that you prefer

T202402a.xlsm
ABCDE
1
20%1
390%2
495%5
5100%10
6
792%222
1a
Cell Formulas
RangeFormula
C7C7=LOOKUP(B7,B2:C5)
D7D7=LOOKUP(B7,{0,1;0.9,2;0.95,5;1,10})
E7E7=IF(B7>=1,10,IF(B7>=0.95,5,IF(B7>=0.9,2,IF(B7>=0,1,0))))

thank you! i have tried the bottom and changed to match my data but the 0.5 bracket cells are returning 0 :( what am i doing wrong?

=IF(AI16>=100%,2,IF(AI16>=95%,1,IF(AI1>=90%,0.5,IF(AI16<90%,0,0))))
 
Upvote 0
thank you! i have tried the bottom and changed to match my data but the 0.5 bracket cells are returning 0 :( what am i doing wrong?

=IF(AI16>=100%,2,IF(AI16>=95%,1,IF(AI1>=90%,0.5,IF(AI16<90%,0,0))))
The trick with LOOKUP is the lookup array should contain the lowest possible values in each bracket. So for the "under 90%", we use 0, then 90 for the 90-95 bracket.
 
Upvote 0
It probably means the entry in AI16 is really text and not a number.
What does this formula return?
Excel Formula:
=ISNUMBER(AI16)

By the way, your formula can be shortened/simplified to:
Excel Formula:
=IF(AI16>=100%,2,IF(AI16>=95%,1,IF(AI16>=90%,0.5,0)))
 
Upvote 0
HOLD ON!

I just noticed a typo in your formula:
Rich (BB code):
=IF(AI16>=100%,2,IF(AI16>=95%,1,IF(AI1>=90%,0.5,IF(AI16<90%,0,0))))
I believe the part in red should also be "AI16"
 
Upvote 0
try the following; use the one that you prefer

T202402a.xlsm
ABCDE
1
20%1
390%2
495%5
5100%10
6
792%222
1a
Cell Formulas
RangeFormula
C7C7=LOOKUP(B7,B2:C5)
D7D7=LOOKUP(B7,{0,1;0.9,2;0.95,5;1,10})
E7E7=IF(B7>=1,10,IF(B7>=0.95,5,IF(B7>=0.9,2,IF(B7>=0,1,0))))

try the following; use the one that you prefer

T202402a.xlsm
ABCDE
1
20%1
390%2
495%5
5100%10
6
792%222
1a
Cell Formulas
RangeFormula
C7C7=LOOKUP(B7,B2:C5)
D7D7=LOOKUP(B7,{0,1;0.9,2;0.95,5;1,10})
E7E7=IF(B7>=1,10,IF(B7>=0.95,5,IF(B7>=0.9,2,IF(B7>=0,1,0))))
Dave Patton i could kiss you! used the first option and its fabulous :) thank you so much!
 
Upvote 0

Forum statistics

Threads
1,215,149
Messages
6,123,311
Members
449,095
Latest member
Chestertim

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