ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If statement - 2 tests (https://www.excelbanter.com/excel-worksheet-functions/43430-if-statement-2-tests.html)

RobertLees

If statement - 2 tests
 

Hi

How can I test 2 criteria to set a cell value? I think there is an
=if(or---etc, but what syntax should I use.

Thanks
Robert


--
RobertLees
------------------------------------------------------------------------
RobertLees's Profile: http://www.excelforum.com/member.php...o&userid=26580
View this thread: http://www.excelforum.com/showthread...hreadid=401072


William

Hi Robert

=IF(OR(A1=5,A1=10),"Its 5 or 10","")

--


XL2003
Regards

William



"RobertLees" wrote
in message ...

Hi

How can I test 2 criteria to set a cell value? I think there is an
=if(or---etc, but what syntax should I use.

Thanks
Robert


--
RobertLees
------------------------------------------------------------------------
RobertLees's Profile:
http://www.excelforum.com/member.php...o&userid=26580
View this thread: http://www.excelforum.com/showthread...hreadid=401072





All times are GMT +1. The time now is 08:34 PM.

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