Detectiveclem
Active Member
- Joined
- May 31, 2014
- Messages
- 320
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
Hi I am currently using the following formula to successfully flag up when a person is either due to pay or if they haven't paid by the end of the month when payment was due. When less than 30days the cell shows "due x number of days ago". When over 30 days it shows 'Overdue and the number of days'.
=IF(MONTH(TODAY())>MONTH($C$4),"Overdue "&TODAY()-EOMONTH($C$4,-1)&" days",IF(MONTH(TODAY())=MONTH($C$4),"Due "&TODAY()-$C$4&" days ago",""))
This works perfectly, but now I am preparing the same spreadsheet for 2019. However all cells now show over due, even although we havent reached 2019 yet.
I need to incorporate the YEAR into the above formula but my attempts have proved useless so far. Can anyone help?
Thank you.
=IF(MONTH(TODAY())>MONTH($C$4),"Overdue "&TODAY()-EOMONTH($C$4,-1)&" days",IF(MONTH(TODAY())=MONTH($C$4),"Due "&TODAY()-$C$4&" days ago",""))
This works perfectly, but now I am preparing the same spreadsheet for 2019. However all cells now show over due, even although we havent reached 2019 yet.
I need to incorporate the YEAR into the above formula but my attempts have proved useless so far. Can anyone help?
Thank you.