Over due and due dates in a payment table.

Detectiveclem

Active Member
Joined
May 31, 2014
Messages
320
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi,

Could anyone help me with a formula to allow me to show 'DUE' or 'OVER DUE' or leave the cell blank when niether apply.

I have a table showing displaying Months running along Row '5' and individuals names running down Column 'B'.


Each individual is expected to pay a certain amount each month. When they make payment the amount is recorded in the relevant cell.


I would like a formula, based on today's date which will show in the blank cells for the current month (i.e. where no monatery value has been entered) the word "DUE" but if payment exceeds 30 days this changes to "OVER DUE". But future months remain blank (until that month is reached).


Any help gratefully appreciated.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
I have assumed you want it to operate for multiple years, so the cells in row 5 would have Jan 18, Feb 18, etc. in, so this is a cumbersome formula, but if you put this in cell c6 and copy across and down it should do the trick:

=IF(YEAR(TODAY())&TEXT(MONTH(TODAY()),"00")>YEAR(C5)&TEXT(MONTH(C5),"00"),"Overdue",IF(YEAR(TODAY())&TEXT(MONTH(TODAY()),"00")=YEAR(C5)&TEXT(MONTH(C5),"00"),"Due",""))

If you just want a single year this can be simplified to:

=IF(MONTH(TODAY())>MONTH(C5),"Overdue",IF(MONTH(TODAY())=MONTH(C5),"Due",""))

Regards
John
 
Last edited:
Upvote 0
Thank you John, I used the single year formula and it works perfectly. Thank you once again.

Paul
 
Upvote 0
Actually, the formula as I wrote it is slightly wrong - it should be: =IF(MONTH(TODAY())>MONTH(C$5),"Overdue",IF(MONTH(TODAY())=MONTH(C$5),"Due","")) - sorry!
 
Upvote 0
Thank you I will change it, but it seemed to work. I appreciate you coming back to me. Kind regards, Paul
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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