Problem with IF/AND/OR formula

WillM66

New Member
Joined
Jul 15, 2010
Messages
10
I'm trying to construct a spreadsheet and I'm having trouble with a formula.

I want the formula to be able to do the following:

<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:DoNotOptimizeForBrowser/> </w:WordDocument> </xml><![endif]-->IF cell e3 is greater than 3 and cell m3=true or cell n3=true show 'true' if not show 'false'

Try as I might, I just can't get it to work.

Thanks in advance for any responses.

Will M


 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
=IF((E3 > 3)*((M3=TRUE)+(N3=TRUE)),TRUE,FALSE)
Try that, I have not tested it, but it should work
 
Upvote 0
So if I3 shoulds anything else the entire argument should be false?
=IF((E3 > 3)*(I3="Y")*((M3=TRUE)+(N3=TRUE)),TRUE,FALSE)

And basically * means and, while + means or.
the excel built in and/or fail with big arguments, so its a lot easier to use the */+
 
Upvote 0
So if I3 shoulds anything else the entire argument should be false?
=IF((E3 > 3)*(I3="Y")*((M3=TRUE)+(N3=TRUE)),TRUE,FALSE)

And basically * means and, while + means or.
the excel built in and/or fail with big arguments, so its a lot easier to use the */+

Cheers - I changed the * after the (I3="Y") aprt to a + and it worked just great.

I promise this will be the last one (I promise I've tried, but just can't get this to work)

I need another formula that does the following

If Cell P3 is "FALSE" cell should equal 0 (zero)

If P3 = "TRUE" and M3 reads "College" - result needs to be "College Pass"

But if M3 reads "Public" I need to show a value of £250.00


Sorry to pester you again!

Will M
 
Upvote 0
=IF(P3="FALSE",0,IF((P3="TRUE")*(M3="College"),"College",IF(M3="Public","$250","ERROR))

Try that
 
Upvote 0
You don't need all those If's. Boolean functions return Boolean Values;

=AND(E3>3,I3="Y",OR(M3=TRUE,N3=TRUE))

should suffice for your first question.
 
Upvote 0
Second question, perhaps:

=IF(P3,LOOKUP(M3,{"College","College Pass";"Public",250}),0)
 
Upvote 0
=IF(P3="FALSE",0,IF((P3="TRUE")*(M3="College"),"College",IF(M3="Public","$250","ERROR))

Try that

Doesn't seem to be working.

When I have 'PUBLIC" in cell M3, but "FALSE" IN P3 it returns £250 (should be zero)

When I input COLLEGE in M3 it returns #NAME?

Sorry to be a pain.

Will M
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,147
Members
452,891
Latest member
JUSTOUTOFMYREACH

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