More IF/OR formula help needed.

mplees

Active Member
Joined
Feb 6, 2006
Messages
351
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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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
 
Upvote 0
=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")))))
 
Upvote 0
Hi,

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


Dom
 
Upvote 0
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)
 
Upvote 0
Gentlemen,

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

Thank you all again,

Mark
 
Upvote 0

Forum statistics

Threads
1,213,491
Messages
6,113,963
Members
448,536
Latest member
CantExcel123

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