IF (And) forms excel

dankri92

New Member
Joined
Oct 16, 2015
Messages
2
How do I make the form if:

X = 1-50 then 81

X = 51-100 then 108

X = 101-200 then 158

I can only do the first one :(


Please help.


//: Dan
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
untested as I don't know what cell you are looking at
=IF(AND(cell>=101,Cell<=200,158),IF(AND(cell>=51,Cell<=100,108),IF(AND(cell>=1,Cell<=50),81,"No Match)
 
Upvote 0
It is not working..

I need to find out how to:

If X is a number between 1 and 50 then The number has to be 81

And if X is between 51 and 100 then The number has to be 108.


So x has to be a cell, where i can chance The number.
 
Upvote 0
I think this should work also

=IFERROR(LOOKUP(A1,{1,51,101},{81,108,158}),"")
 
Upvote 0
It is not working..

I need to find out how to:

If X is a number between 1 and 50 then The number has to be 81

And if X is between 51 and 100 then The number has to be 108.


So x has to be a cell, where i can chance The number.

where is the cell you are looking at to put your number, because unless you tell us, or you are extremely lucky, what does work, won't
 
Upvote 0

Forum statistics

Threads
1,215,543
Messages
6,125,423
Members
449,223
Latest member
Narrian

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