IF number between or is greater than etc.,

pnr8uk

New Member
Joined
Oct 6, 2018
Messages
19
I have been going crazy to try and solve something which I think seems fairly simple.

In one Cell i.e AF3 this cell can receive any value but I want the adjacent AE2 to display one of a list of values based on the value in cell AF3

For instance if the value in AF3 is >= 250 then the adjacent cell AE2 should display "BIG WIN"
if the value in AF3 is > 100 but < than 250 than the adjacent cell AE2 should display "WIN"
if the value in AF3 is < 100 but < than 50 then the adjacent cell AE2 should display "SMALL WIN"

etc., for about 6 more ranges.

I have tried =IF(AF3>=250, "BIG WIN",0) which works of course
but then if I add IF (AF3>=250(AND < .... things just start to go wrong and I don't get the variations I need.
I tried VLOOKUP with the values defined in another cell.
I tried IF(AND( etc., but I can only get so far.

I have Googled a lot but there seems to be no way to achieve this kind of... if this is and this is then... but if this is and this is then.

Any help as always greatly received.

KR

Paul
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about this
start with the lowest win first and increment up from there
Excel Formula:
=IF(AF3<100,"SMALL WIN",IF(AF3<250,"WIN","BIG WIN"))
 
Upvote 0
Hi,
Try this approach
You can adjust the numbers to suit.

Code:
=LOOKUP(AF3,{0,50,100,250},{"nil","Small Win","Win","Big Win"})

cheers
Paul.
 
Upvote 0
Thank you both for your replies both were very helpful I have gone with Taul's solution eventually as it give me more flexibility. Thanks again both.
Paul
 
Upvote 0
Hi,
Try this approach
You can adjust the numbers to suit.

Code:
=LOOKUP(AF3,{0,50,100,250},{"nil","Small Win","Win","Big Win"})

cheers
Paul.
Many thanks for this, how would I get it work if the value was -250, -100 so the check is for the values quoted which works perfectly but I also want to include negative numbers too.
 
Upvote 0
Hi,
Try this.
Basically keep the same number of items in each of the sets of curly brackets, in this case there are eight items in each set.
You may need to change the -250 to -249 depending on where you want it to switch over.
Code:
=LOOKUP(AF3,{-1000,-250,-100,-50,0,50,100,250},{"whooped","Big Loss","Loss","Small Loss","nil","Small Win","Win","Big Win"})
 
Upvote 0
Solution

Forum statistics

Threads
1,214,812
Messages
6,121,693
Members
449,048
Latest member
81jamesacct

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