Formula help for days past due

lkndllsgrl

New Member
Joined
Feb 7, 2013
Messages
21
I am trying to use a countif formula to determine how many dates were on time, 7 days late, 14 days late and 30 days or more late. You can see in the table below the columns I am working with. [TABLE="width: 500"]
<tbody>[TR]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Date Recieved[/TD]
[TD]Date Due[/TD]
[TD]Date Submitted[/TD]
[/TR]
[TR]
[TD]10/27/17[/TD]
[TD]11/26/17[/TD]
[TD]12/27/17[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]11/17/17[/TD]
[TD]11/13/17[/TD]
[/TR]
[TR]
[TD]10/17/17[/TD]
[TD]10/23/17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]On Time[/TD]
[TD]7 Days Late[/TD]
[/TR]
[TR]
[TD]10/1/17[/TD]
[TD]10/31/17[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11/1/17[/TD]
[TD]11/30/17[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


The current formula I have is

=countifs(C:C,”>="&A1,C:C,"<="&B1,E:E,”<=”&D:D)

The first part of the formula brings back the correct count of number of instances within the date frame, howver I cannot get the second part to return count of on time instances. \

Please help
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I would make a helper column, which either shows how many days late it was, or uses ifs to label each row with what you're looking for "7 days", "14 days". This will make your countifs much easier.
 
Upvote 0
I did try a helper column with days late, but it acts funny when no dates are input yet. I wasnt sure of a work around for that so I abandoned that train of thought.
 
Upvote 0
do something for your helper column like:

=if(and(Date1Cell <> "", Date2Cell <> ""), Date2Cell - Date1Cel, "")

Then when no dates are input, it will just be blank, otherwise calculate the days late.
 
Last edited:
Upvote 0
I would actually probably do two helper columns (Just because I like to keep my formulas shorter). In second helper column I would do something like:

=if(helpercolumn <= 0, "On Time", if(helpercolumn <=7, "7 days late"....)

To label each row.

Then on your dashboard do something like,

=countifs(DateReceivedColumn, ">=" & $A2, DateReceivedColumn, "<=" & $B2, HelperColumn2, F$1)
 
Upvote 0
I just used the one helper column and it worked well. A bit complex but I got it. Thank you for your help.

I could take this one step further and count the blanks if the due date is past todays date. What do you think of that?
 
Upvote 0
Do you mean if todays date is past the due date?

I think that would be a good idea.

I don't know the exact structure of your workbook but something like:

=if(DueDateCell = "", "", if(DateReceivedCell = "", Today() , DateReceived)-DueDateCell)
 
Last edited:
Upvote 0
The above would be how many days it is past due, as of now.

If you just want to count, number of "Open" past dues (Past Dues that still haven't come in). could just count where DueDate <= Today, and received is still blank.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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