ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Shortcut Nested If Statements (https://www.excelbanter.com/excel-programming/348975-shortcut-nested-if-statements.html)

[email protected]

Shortcut Nested If Statements
 
Is there a shorter way to do this formula:
=if( or(a1="test",b1="test",c1="test",d1="test"),"true" ,"false" ) ?

Looking for something like
=if ( a1:d1 = "test", "true","false")

Thanks,
Andrew V. Romero


Tom Ogilvy

Shortcut Nested If Statements
 
=if(countif(A1:D1,"text")0,True,False)

or just

=countif(A1:D1,"text")0

--
Regards,
Tom Ogilvy


wrote in message
ups.com...
Is there a shorter way to do this formula:
=if( or(a1="test",b1="test",c1="test",d1="test"),"true" ,"false" ) ?

Looking for something like
=if ( a1:d1 = "test", "true","false")

Thanks,
Andrew V. Romero





All times are GMT +1. The time now is 02:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com