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
 

Some videos you may like

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,963
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
Joined
Oct 12, 2006
Messages
44,061
=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")))))
 

Domski

Well-known Member
Joined
Jan 18, 2005
Messages
7,292
Hi,

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


Dom
 

Darren Bartrup

Well-known Member
Joined
Mar 13, 2006
Messages
1,295
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Feb 6, 2006
Messages
351
Gentlemen,

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

Thank you all again,

Mark
 

Watch MrExcel Video

Forum statistics

Threads
1,123,085
Messages
5,599,650
Members
414,325
Latest member
kfg1287

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
Top