Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MULTIPLE CELLS - IF STATEMENT QUESTION

Status
Not open for further replies.

kinselas

IS-IT--Management
Joined
Aug 4, 2002
Messages
60
Location
AU
I HAVE THIS FORMULA...BUT I WOULD LIKE TO ADD THE MANDATORY CELLS...G9 AND K9 AND O9 >1 PLEASE HELP WITH THE SYNTAX

=IF(D9>1,"OK TO PRINT","ALL MANDATORY CELLS HAVE NOT BEEN M66")
 
It looks like you have text in M66 that you want appended as part of the message, so the end formula looks something like this:
Code:
=IF(
Code:
AND(D9>1,G9>1,K9>1,O9>1)
Code:
,"OK TO PRINT","ALL MANDATORY CELLS HAVE NOT BEEN "
Code:
&M66
Code:
)
 
Hi kinselas,

Try this, if I understand correctly:

=IF(AND(D9>1,G9>1,K9>1,O9>1),"OK TO PRINT","ALL MANDATORY CELLS HAVE NOT BEEN M66")

This requires all cells to have values > 1, if anyone will do then change the AND to OR.

Good Luck!

Peter Moran
Two heads are always better than one!
 
Zathras & Peter Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top