SOLVED

Multiple Condition IF Statement

Copper Contributor

Hi All,

 

I have a dataset similar to the below;

 

Mech Complete?Scaffold ErectedInsulation RemovedWOL RaisedGood to Go?
YesN/AYes  
N/AYesYesN/A 
N/AN/AYesN/A 
 N/AYes  

 

I need a formula column E ('Good to Go') to perform the following logic;

 

If cells in columns A - D contain "Yes" or "N/A" formulate to "Yes"

If cells in columns A - D contain a single 'Blank Cell' formulate to 'Blank'

 

Any help will be much appreciated!

 

Elliot 

10 Replies

@Serdet 

Perhaps

image.png

@Sergei Baklan  

 

Hi Sergei Baklan,

Thanks for your quick reply. I have tried this formula in my spreadsheet and it is not working, when I change cells to blank it does not change the 'Good to Go' column value.

 

I have tried copy & pasting my data over to your spreadsheet and it seems to work perfectly. Columns A - D are all populated by IF formulas, I'm not sure if this has anything to do with it not working.

 

Please see the attached spreadsheet as this may give you an idea as to why it is not working (Data is actually located in columns AF:AI)

 

Kind regards,

 

Elliot 

@Serdet 

I guess that's since you could have not blank cells, but cells with empty string "" returned by formulas. Empty string doesn't mean the cell is blank, it only looks like like blank.

I'll modify the formula in short while, have to shift on another task shortly.

best response confirmed by Serdet (Copper Contributor)
Solution

@Serdet 

To change the check on empty string the formula could be

=IF(ISNA(XMATCH("",AF3:AI3)), "Yes", "N/A")

In attached file I changed K3 to test.

@Sergei Baklan

 

That works perfect, thank you very much!

 

Have a good weekend.

 

Elliot  

@Serdet 

Elliot, glad to help. Have a nice weekend too.

@Sergei Baklan 

 

Hi Sergei,

 

I have now added a new column which has to come into the equation and was wondering if you could give me a helping hand.

 

A new column called 'On Hold' has been added to the end of the table (let's say column Z).

 

If fields within this column state 'On Hold' I need the previous 'Good to Go' column to state "N/A".

 

I hope this is all clear.

 

Cheers

 

Elliot 

@Serdet 

You may wrap the formula with one more condition

=IF(Z3="On Hold", "N/A",  IF(ISNA(XMATCH("",AF3:AI3)), "Yes", "N/A"))
Hi Sergei,

That works great. Thank you.

Elliot Serdet

@Serdet , you are welcome

1 best response

Accepted Solutions
best response confirmed by Serdet (Copper Contributor)
Solution

@Serdet 

To change the check on empty string the formula could be

=IF(ISNA(XMATCH("",AF3:AI3)), "Yes", "N/A")

In attached file I changed K3 to test.

View solution in original post