Help with Nested If Function

ardykav

Board Regular
Joined
Oct 18, 2015
Messages
172
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Currently i have an issue where i want to have 15 if(and functions that have 4 conditions in each but it says im not allowed have that many in a nested if statement.

An example of the current formula i am using is:
=IF(AND(H2="Y",I2="Y",J2="Y",K2="Y"),"All are available",IF(AND(H2="Y",I2="Y",J2="Y",K2="N"),"Jess",IF(AND(H2="Y",I2="Y",J2="N",K2="Y"),"Dave",IF(AND(H2="N",I2="Y",J2="Y",K2="N"),"Derek",IF(AND(H2="Y",I2="Y",J2="Y",K2="N"),"Paul",IF(AND(H2="Y",I2="Y",J2="Y",K2="N"),"Dave and jess",IF(AND(H2="Y",I2="Y",J2="Y",K2="N"),"Dave jess and Paul","No one available")))))))

This is the table i am working from. So basically just needs to let me know who is not free for the party?
PaulDerekDavejessOptionNot available
YYYY15All Are availble
YYYN14Jess
YYNY13Dave
YNYY12Derek
NYYY11Paul
YYNN10Dave and Jess


All help greatly appreciated,

thanks

<tbody>
</tbody><colgroup><col span="4"><col><col></colgroup>
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try:
Code:
=IF(COUNTIF(H2:K2,"Y")=4,"All are available",SUBSTITUTE(IF(H2="N",H$1&" and ","")&IF(I2="N",I$1&" and ","")&IF(J2="N",J$1&" and ","")&IF(K2="N",K$1&" and ","")," and ","";COUNTIF(H2:K2,"N")))
If not all are available, this adds the name + " and " to he string for each unavailable person; the SUBSTITUTE will get rid of the last " and ".
 
Upvote 0

Forum statistics

Threads
1,215,265
Messages
6,123,961
Members
449,135
Latest member
jcschafer209

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