Nested IF, AND, OR

tonybr

New Member
Joined
Sep 4, 2019
Messages
11
Office Version
  1. 365
Having trouble getting this to work so would appreciate some advice on the syntax please.

My question is basically IF the string in cell C1 = "Relief Refuse Driver" and either cell J1 OR cell K1 (or both) are not empty, then do AA or else do AB.

The last bit isn't a problem, it's where to put the OR.

The fomula I am using in Cell G1 does as I want but I am unsure where to put the OR K1:

=IF(AND(C1="Relief Refuse Driver",J1<>""),(Grades!$B$16),(VLOOKUP(F15,'All Staff'!$A$4:$K$107,11,FALSE)))


Thanks in advance.

Tony
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=IF(AND(C1="Relief Refuse Driver",OR(J1<>"",K1<>"")),Grades!$B$16,VLOOKUP(F15,'All Staff'!$A$4:$K$107,11,FALSE))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,098
Messages
6,123,082
Members
449,094
Latest member
mystic19

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