IF(AND Query)

Corleone

Well-known Member
Joined
Feb 2, 2003
Messages
841
Office Version
  1. 365
Hi - I have the following formula set up in cell AQ1120 and it returns "Late" which is the cell entry in AP1120
however, all the conditions are met in cell Z1120 (ie the date is greater than 0 but also less than the date in "Period!$O$2
so I would expect it to return "Failed"
Can anyone Assist?


=IF(AND(Z1120<=Periods!$O$2,Z1120>0),"Failed",AP1120)

Can anyone Assist?

Thanks

Im using Excel 365
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Are you sure that the entries in Z1120 and Periods!$O$2,Z1120 are valid dates and not dates entered as text?
One easy way to check is with formulas like these:
=ISNUMBER(Z1120)
=ISNUMBER(Periods!$O$2,Z1120)


If either of those formulas return FALSE, then you are dealing with Text and not a true Date.
 
Upvote 0
Solution
Are you sure that the entries in Z1120 and Periods!$O$2,Z1120 are valid dates and not dates entered as text?
One easy way to check is with formulas like these:
=ISNUMBER(Z1120)
=ISNUMBER(Periods!$O$2,Z1120)


If either of those formulas return FALSE, then you are dealing with Text and not a true Date.
You have led me in the right direction - Cheers
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top