Past Due Dates

abruce

New Member
Joined
Oct 12, 2017
Messages
2
I’m working on a spreadsheet which has expected dates (A1) & actual dates (B1)

I need a formula which shows me what arrived on time, what was late & by how many days, what was early by how many days, & what is over due and by how many days


A1 = Expected date
B1 = Actual date

I have managed to work out part of the formula which shows if it was on time, late or early, but I can’t work out if “B1” is blank show to show it's overdue and by how many days

=IF(COUNT(B1,A1)=2,TEXT(A1-B1,"0 ""Day(s) Late"";0 "" Day(s) Early"";""On Time"""),"")
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi, welcome to the board :)

Building on your existing formula, maybe:

=IF(COUNT(B1,A1)=2,TEXT(A1-B1,"0 ""Day(s) Late"";0 "" Day(s) Early"";""On Time"""),TEXT(TODAY()-A1,"0 ""Days(s) overdue"";;"))
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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