Nested IF or IFS?

drewberts

Board Regular
Joined
Sep 5, 2013
Messages
177
Office Version
  1. 365
Platform
  1. Windows
I'm not sure of the correct approach to this formula. My data is as follows in 3 columns:-

Name Date Status

What I'm trying to do in Col C is have a formula that returns Y if the name matches a set list and N for anything else in col A - I've no problem with this bit...

=IF((OR(A1="Tom", A1="Dave", A1="Fred"),"Y","N")

What I want to add in is another two IF statements that also check if Col A & Col B are blank. If either are blank then return a blank in Col C. To return a Y or N in Col C then both A & B need data (i.e. not blank).

I've tried nested IF statements but don't get the required results and using IFS gives me an error - I'm sure its simply down to syntax and how I'm structuring it - can anyone help please?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
How about
Excel Formula:
=IF(OR(A1="",B1=""),"",IF(OR(A1={"Tom","Dave","Fred"}),"Y","N"))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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