IF, AND, OR function with multiple cells

williamjtmarsh

New Member
Joined
Nov 22, 2018
Messages
8
Hi guys, new here and forums, so apologies for naivety and if I break any basic rules to forum'ing.

I am putting together a project management file and have multiple sheets that are auto populating between each other. All is working great, but the one thing I am struggling with is the below

I have lots of cells (processes) and once all the cells (processes) are completed, they are all filled in with "Y", a cell on another sheet is auto populated with a "Y" only when they are all filled in with a "Y". This is easily done, but I want to add into the mix a "NA" where a certain process may not be applicable to that project. The aim is when all cells are filled in with either a "Y" or a "NA" it will auto populate the cell on the other sheet with a "Y".

ALL cells have to be filled in and any combination of "Y" and "NA". Some combinations have 10 processes, some have 2

Would appreciate the help as I cannot find anything! :(

thanks
Will
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi welcome to the forum,

What formula are you currently using to return "Y" when all cells = "Y"

Gaz
 
Upvote 0
Hi Gaz,

=IF('Info Sheet'!AM4="Y","Y","")

But from what ive read, an IF, OR and AND combination is needed, but just cant get it right!

Thanks
 
Upvote 0
If the cells are only either Blank or contain "Y" or "NA", then try

=IF('Info Sheet'!AM4="","N","Y")

If the cells can have other data and you want to check if they have either "Y" or "NA", then try

=IF(OR('Info Sheet'!AM4={"Y","NA"}),"Y","N")

Gaz
 
Upvote 0
Hi Gaz,

Doesnt work, also I have multiple cells that would fit into that, for example the below doesn't work for two cells, so I added the AND, but still no luck

=IF(AND(OR('Info Sheet'!GF4={"Y","NA"},'Info Sheet'!GG4={"Y","NA"})),"Y","")

Also, when the cell fills in with "Y" it wont disappear when the date is removed from the 'info sheet'

Will
 
Upvote 0
Hi Will,

You are missing Parenthesis & 2nd OR statement

Try
=IF(AND(OR('Info Sheet'!GF4={"Y","NA"}),OR('Info Sheet'!GG4={"Y","NA"})),"Y","N")

Gaz
 
Last edited:
Upvote 0
Hi Gaz,

It is working, however I have to press the formula'd cell and press enter every time the cells have a change of information in :(

Is there a way of making it automatic?

Will
 
Upvote 0
Sounds like you have auto re-calc turned off.

If you press F9 does it work?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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