I have the following columns and Rows
H3: Date (on spreadsheet is 11/14/2011)
E5: Contract End Date (on spreadsheet is 09/30/2012)
G5: Dollar Amount
I want to evaluate a cell to see if the date in H3 is less than or equal to the date in E5. I am only concerned with the month and year.
I am using the following formula but it is not working correctly. The cell displays 0, but I would expect it to show the value in G5.
=IF(AND(MONTH(H3)<=MONTH(E5),YEAR(H3)<=YEAR(E5)),G5,0)
This is not working. My
H3: Date (on spreadsheet is 11/14/2011)
E5: Contract End Date (on spreadsheet is 09/30/2012)
G5: Dollar Amount
I want to evaluate a cell to see if the date in H3 is less than or equal to the date in E5. I am only concerned with the month and year.
I am using the following formula but it is not working correctly. The cell displays 0, but I would expect it to show the value in G5.
=IF(AND(MONTH(H3)<=MONTH(E5),YEAR(H3)<=YEAR(E5)),G5,0)
This is not working. My