Forum Discussion
Nested AND OR
- Aug 17, 2021
Try it this way:
=AND(OR($K2<=TODAY(),$L2="Y"),OR($P2<=TODAY(),$Q2="Y"))
You don't need the IF, the correct syntax for the TODAY function is to add the two brackets, and when you compare to a text you must enclose the text in quotation marks. And finally, you need to fix the column references with a $ sign.
Try it this way:
=AND(OR($K2<=TODAY(),$L2="Y"),OR($P2<=TODAY(),$Q2="Y"))
You don't need the IF, the correct syntax for the TODAY function is to add the two brackets, and when you compare to a text you must enclose the text in quotation marks. And finally, you need to fix the column references with a $ sign.
- brendababy02Aug 17, 2021Copper ContributorThank you, I forgot about the brackets and the $. Now it is highlighting the entire row even though nothing is entered. I think this has to do with the < for the date. Any suggestions?
- Riny_van_EekelenAug 17, 2021Platinum Contributor
brendababy02 Add another rule (should be the first one in the list) and mark it to "Stop if true". For instance, if A2 is empty than don't format anything.
=ISBLANK($A2)
- brendababy02Aug 17, 2021Copper ContributorThank you, that fixed it. I'm still trying to figure out Excel. Now to add my other formulas in other cells and hopefully have them in the right order. Thank you, thank you, thank you.