# 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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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

=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

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)``

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
394
Replies
1
Views
65
Replies
3
Views
191
Replies
10
Views
725
Replies
1
Views
49

1,216,109
Messages
6,128,877
Members
449,476
Latest member
pranjal9

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

### Which adblocker are you using?

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

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