Hi all,
I want to write a formula that returning either the end of month of this month or the prior month.
If a date is already at end of month, then I'll take the date as is. Example: 1/31/14 should return 1/31/14.
If a date is before end of month, I want Excel to give me the end of month from the prior month. Example: 1/15/14 should return 12/31/13.
Was trying to use EOMONTH, but didn't know how to test if a date is already at the end of month.
Thanks,
Susana
I want to write a formula that returning either the end of month of this month or the prior month.
If a date is already at end of month, then I'll take the date as is. Example: 1/31/14 should return 1/31/14.
If a date is before end of month, I want Excel to give me the end of month from the prior month. Example: 1/15/14 should return 12/31/13.
Was trying to use EOMONTH, but didn't know how to test if a date is already at the end of month.
Thanks,
Susana