Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

nested if and and

ResolvedVersion 2003

James has attended:
Excel Advanced course

Nested If and And

Please give an example of a formula that includes 'if' and 'and' and 'if' and 'or'

RE: Nested If and And/OR

Hi James,

Thank you for your question.

Enjoy the following example:

=IF(AND(B7>25000,C7>15000),"Yes","No")

This example returns the answer of Yes or No depending on whether both sets of criteria match. If one matches and not the other then No will be returned. If both match then Yes will be returned.

=IF(OR(B7>25000,C7>15000),"Yes","No")

This example returns the answer of Yes if any one of the criteria is matched and will only return No when both criteria do not match.

I hope this answers your question.

Regards

Simon

Excel tip:

Number format shortcut

Ctrl+Shift+! applies the Number format, with two decimal places

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.