howardJennings
New Member
- Joined
- Aug 28, 2015
- Messages
- 11
I have a complicated spread sheet which calculated insurance premiums. part of the sheet calculated the 'billing period'
it's pretty simple
IF the 'Effective Date" is this before the invoice date billing period = number of days in the month
ELSE Billing period is Number of days in the month LESS the 'Effective Date".
I have to check whether the 'Effective Date" YEAR & MONTH are the same as the 'Billing Date' YEAR & MONTH (i'm ignoring the day). The formula I'm using to do this is
=IF(AND(YEAR(H10)=YEAR($E$3),MONTH(H10=MONTH($E$3))),"TRUE","FALSE")
Cell H10 & E3 contain the date that i need to check.
The formula works once or twice and then stops, what have i done wrong?
it's pretty simple
IF the 'Effective Date" is this before the invoice date billing period = number of days in the month
ELSE Billing period is Number of days in the month LESS the 'Effective Date".
I have to check whether the 'Effective Date" YEAR & MONTH are the same as the 'Billing Date' YEAR & MONTH (i'm ignoring the day). The formula I'm using to do this is
=IF(AND(YEAR(H10)=YEAR($E$3),MONTH(H10=MONTH($E$3))),"TRUE","FALSE")
Cell H10 & E3 contain the date that i need to check.
The formula works once or twice and then stops, what have i done wrong?