ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I complete this nested if formula (https://www.excelbanter.com/excel-worksheet-functions/227893-how-do-i-complete-nested-if-formula.html)

Bobbybee

How do I complete this nested if formula
 
This formula is working for the condition "If Long" but how do I add "If
Short" in a nested formula thats checks both criteria?

=IF(AND(B3="Long",H3<E3-G3),"NO GOOD","GOOD")

Luke M

How do I complete this nested if formula
 
Depends on how you want it nested, but my guess is:
=IF(AND(OR(B3="Long",B3="Short"),H3<E3-G3),"NO GOOD","GOOD")

If B3 equals "Long" or "Short, and H3<E3-G3, then cell displays "no good".
If either condition is false, returns "good".
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Bobbybee" wrote:

This formula is working for the condition "If Long" but how do I add "If
Short" in a nested formula thats checks both criteria?

=IF(AND(B3="Long",H3<E3-G3),"NO GOOD","GOOD")



All times are GMT +1. The time now is 09:53 AM.

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