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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,223,575
Messages
6,173,148
Members
452,502
Latest member
PQCurious

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