# More IF/OR formula help needed.

#### mplees

##### Active Member
Hi,

Wonder if anyone can help me with this. I need a formula who's result comes from evaluating another cell.

The evaluated data will be in column F, the result in column M. What I need to evaluate is as follows:

If F1=1,2,3, 8 or 10 then 0
If F1=7 then 25
If F1=4 or 9 then 50
If F1=5 then 75
if F1=6 then 100

can anyone steer me in the right direction?

Regards,

Mark

### 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.

#### MarkAndrews

##### Well-known Member
You could reference your IF statement to multiple cells, which contain IF's

Thats what i usually do when i need more than 7 IF's

#### Jonmo1

##### MrExcel MVP
=IF(F1=7,25,If(OR(F1=4,F1=9),50,If(F1=5,75,If(F1=6,100,0))))

This is presuming that F1 will not be greater than 10 or less than 1...

If that's not the case, one more If is needed...

Code:
``=IF(OR(F1=1,F1=2,F1=3,F1=8,F1=10),0,IF(F1=7,25,IF(OR(F1=4,F1=9),50,IF(F1=5,75,IF(F1=6,100,"Less than 1 or Greater than 10")))))``

Hi,

Like this maybe:
Book4
ABCDEFG
110450
220
330
4450
5575
66100
7725
880
9950
10100
Sheet1

Dom

#### Darren Bartrup

##### Well-known Member
Not sure if this is the best solution, but it works
Code:
``=CHOOSE(\$F\$1,0,0,0,50,75,100,25,0,50,0)``

#### mplees

##### Active Member
Gentlemen,

Thank you all so much for your input - problem solved, and as always a great learning experience.

Thank you all again,

Mark

Replies
9
Views
121
Replies
18
Views
685
Replies
3
Views
774
Replies
22
Views
1K
Replies
4
Views
2K

Threads
1,171,141
Messages
5,874,007
Members
433,016
Latest member
LorenzAsurza

### 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

### 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