Excel equation for dates past a certain date

samtrublue3

New Member
Joined
Feb 10, 2022
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Help please if you can, I cant seem to find anywhere else.

Im trying to find the equation for 2 things,

1. I have a chart I'm making and trying to calculate if something is past due 30 days, 10days, and 5 days
is there an equation to find out if the dates I entered have passed those numbers of 30,10, and 5.


2. is there an equation to find the average of days between 2 dates i have entered
for example

1/17/2022 1/25/2022
2/5/2022 2/8/2022
1/8/2022 2/10/2022

whats the average number of days it takes from beginning to end?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
if you want to do it in a cell then the formula would be
Excel Formula:
=IF((TODAY()-10)>A1,"true","false")
this will show true or false in the cell. you can repeat the code changing the 10 to what ever value you want.
You could use a very similar code in conditional formatting to change the cell colour if it is past due.

Not sure I understand what your question 2 is but if you subtract the second date from the first it will give you the number of days between.
if they were in cells a1 and b1 it would be
Excel Formula:
=b1-a1
if you want the date half way between the two then it would be
Excel Formula:
=a1+((b1-a1)/2))
in the last example you just need to format the cell to short date to get the actual date
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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