ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If statement to output specific text if 2 criteria are met? (https://www.excelbanter.com/excel-discussion-misc-queries/190032-if-statement-output-specific-text-if-2-criteria-met.html)

mcmilja

If statement to output specific text if 2 criteria are met?
 
Hello,

What If statement can I use to output specific text if 2 criteria are met?
For example if cell B2 and C2 contains text "spare" then D2 outputs "spare"

Thanks.
Jaret





David Biddulph[_2_]

If statement to output specific text if 2 criteria are met?
 
=IF(AND(B2="spare",C2="spare"),"spare","whatever you want in the alternative
condition")
--
David Biddulph

"mcmilja" wrote in message
...
Hello,

What If statement can I use to output specific text if 2 criteria are met?
For example if cell B2 and C2 contains text "spare" then D2 outputs
"spare"

Thanks.
Jaret








All times are GMT +1. The time now is 02:55 PM.

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