ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Multiple condition (https://www.excelbanter.com/excel-discussion-misc-queries/180998-multiple-condition.html)

ak

Multiple condition
 
Can I do multiple condition in Excel? How? Please tell me an example. Also
please let me know can I do that in IIF condition? Would appreciate your
response.

Martin Fishlock

Multiple condition
 
Hi AK:

The way that you test for multiple conditions is to use 'or' or 'and' .

So I could test cells a1 and a2:

=if(and(a1=1,a2=2),true part,false part)

An 'and' is used to test two conditions are true.
An 'or' is used to test if either of the conditions is true.

You can have more than two conditions in the tests.

The iif is not part of the worksheet functions.



--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"ak" wrote:

Can I do multiple condition in Excel? How? Please tell me an example. Also
please let me know can I do that in IIF condition? Would appreciate your
response.



All times are GMT +1. The time now is 05:51 AM.

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