Nested IF or IFS?

drewberts

Board Regular
Joined
Sep 5, 2013
Messages
163
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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,265
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=IF(OR(A1="",B1=""),"",IF(OR(A1={"Tom","Dave","Fred"}),"Y","N"))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,265
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,141,124
Messages
5,704,436
Members
421,349
Latest member
Santhosh3188

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