Counting down the difference between two date using today function

bamacwby

New Member
Joined
Sep 27, 2008
Messages
44
Office Version
  1. 365
I am trying to figure out a way to countdown the months between two dates while also using the Today function. Here is the sheet that I'm trying to use for the result to show up in cell I22. I can't figure it out, I'm at a loss. Thanks for any help.


1743686391029.png
 
they are rows 18-20
Ok, How about this,
Book1
ABCDEFGH
151.190 DAY CORROSION INSPECTIONTM 1-1520-237-23&P, WP028690DAYS28-Jul-2429-Apr-248 months, 10 days ago
161.11EVERY 6 MONTHSTM 1-1520-237-23&P, WP02886MONTH30-Nov-2431-May-244 months, 8 days ago
171.12EVERY 12 MONTHSTM 1-1520-237-23&P, WP028912MONTH31-Jul-2331-Jul-2220 months, 7 days ago
181.13EVERY 24 MONTHSH-60-20-ASAM-04, ADDENDUM PT324MONTH1-Jun-241-Jun-2210 months, 6 days ago
191.14EVREY 48 MONTHSTM 1-1520-237-23&P, WP029048MONTH1-Jun-231-Jun-1922 months, 6 days ago
201.15PHASE MAINTENANCE INSPECTION (PMI-1 & PMI-2)TM 1-1520-237-23&P, WP0348 035448MONTH1-Feb-261-Feb-229 months, 25 days
Sheet2
Cell Formulas
RangeFormula
H15:H20H15=LET(s, MIN(TODAY(), F15), e, MAX(TODAY(), F15), m, DATEDIF(s, e, "m"), d, DATEDIF(EDATE(s, m), e, "d"), m & " months, " & d & " days" & IF(F15 < TODAY(), " ago", ""))
 
Upvote 0
Solution
Ok, How about this,
Book1
ABCDEFGH
151.190 DAY CORROSION INSPECTIONTM 1-1520-237-23&P, WP028690DAYS28-Jul-2429-Apr-248 months, 10 days ago
161.11EVERY 6 MONTHSTM 1-1520-237-23&P, WP02886MONTH30-Nov-2431-May-244 months, 8 days ago
171.12EVERY 12 MONTHSTM 1-1520-237-23&P, WP028912MONTH31-Jul-2331-Jul-2220 months, 7 days ago
181.13EVERY 24 MONTHSH-60-20-ASAM-04, ADDENDUM PT324MONTH1-Jun-241-Jun-2210 months, 6 days ago
191.14EVREY 48 MONTHSTM 1-1520-237-23&P, WP029048MONTH1-Jun-231-Jun-1922 months, 6 days ago
201.15PHASE MAINTENANCE INSPECTION (PMI-1 & PMI-2)TM 1-1520-237-23&P, WP0348 035448MONTH1-Feb-261-Feb-229 months, 25 days
Sheet2
Cell Formulas
RangeFormula
H15:H20H15=LET(s, MIN(TODAY(), F15), e, MAX(TODAY(), F15), m, DATEDIF(s, e, "m"), d, DATEDIF(EDATE(s, m), e, "d"), m & " months, " & d & " days" & IF(F15 < TODAY(), " ago", ""))
I apologize the rows that won't take the original formula that you posted are cells G16, G17, G18. and why did you put the formula in H Column
 
Upvote 0
I apologize the rows that won't take the original formula that you posted are cells G16, G17, G18. and why did you put the formula in H Column
Please show a way to insert this formula into your image file with merged columns. Hope someone can help you. Thanks
 
Upvote 0
Ok, How about this,
Book1
ABCDEFGH
151.190 DAY CORROSION INSPECTIONTM 1-1520-237-23&P, WP028690DAYS28-Jul-2429-Apr-248 months, 10 days ago
161.11EVERY 6 MONTHSTM 1-1520-237-23&P, WP02886MONTH30-Nov-2431-May-244 months, 8 days ago
171.12EVERY 12 MONTHSTM 1-1520-237-23&P, WP028912MONTH31-Jul-2331-Jul-2220 months, 7 days ago
181.13EVERY 24 MONTHSH-60-20-ASAM-04, ADDENDUM PT324MONTH1-Jun-241-Jun-2210 months, 6 days ago
191.14EVREY 48 MONTHSTM 1-1520-237-23&P, WP029048MONTH1-Jun-231-Jun-1922 months, 6 days ago
201.15PHASE MAINTENANCE INSPECTION (PMI-1 & PMI-2)TM 1-1520-237-23&P, WP0348 035448MONTH1-Feb-261-Feb-229 months, 25 days
Sheet2
Cell Formulas
RangeFormula
H15:H20H15=LET(s, MIN(TODAY(), F15), e, MAX(TODAY(), F15), m, DATEDIF(s, e, "m"), d, DATEDIF(EDATE(s, m), e, "d"), m & " months, " & d & " days" & IF(F15 < TODAY(), " ago", ""))
Thank you very much. This formula worked perfectly.
 
Upvote 0

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