A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
How about
=IF(AND(I4>=DATE(2024, 8, 3), I4<=DATE(2024, 8, 5)), 0, 50)
or
=((I4<DATE(2024, 8, 3))+(I4>DATE(2024, 8, 5)))*50
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to use the IF function with AND and DATEVALUE. I finally got all the errors resolved but I am not getting the correct result. Here is my formula: =(IF(AND(I4>=DATEVALUE("8/3/2024"), I4<=("8/5/2024")), +(0), +(50))). I am getting the last result (50) no matter what date is is field I4. Can you tell me what I'm doing wrong?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
How about
=IF(AND(I4>=DATE(2024, 8, 3), I4<=DATE(2024, 8, 5)), 0, 50)
or
=((I4<DATE(2024, 8, 3))+(I4>DATE(2024, 8, 5)))*50