How to average two dates and return diffrence in months and years from today

Parkerpen13

New Member
Joined
Feb 26, 2018
Messages
41
I have two dates of coats and pants. I would like to average the dates from today and return how old the two dates together are from today.
Coat Manufacture DatePants Manufacture Date
2/044/99
1/091/09
4/991/09
5/156/16
4/994/99
12/015/15
2/055/15
6/165/15
5/986/16
5/145/14
5/155/14
2/146/16
5/145/14

<tbody>
</tbody><colgroup><col span="2"></colgroup>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Excel 2010
ABCDE
1Coat Manufacture DatePants Manufacture DateAverageYearsMonths
22/1/20044/1/19998/31/2001166.47
31/1/20091/1/20091/1/200992.43
44/1/19991/1/20092/15/2004140.97
55/1/20156/1/201611/15/201523.97
64/1/19994/1/19994/1/19991811.43
712/1/20015/1/20158/15/200896.97
82/1/20055/1/20153/17/2010711.9
96/1/20165/1/201511/15/201523.97
105/1/19986/1/20165/17/2007109.9
115/1/20145/1/20145/1/2014310.43
125/1/20155/1/201410/30/201434.47
132/1/20146/1/20164/2/2015211.4
145/1/20145/1/20145/1/2014310.43
Sheet9
Cell Formulas
RangeFormula
C2=AVERAGE(A2,B2)
D2=INT(YEARFRAC(C2,TODAY()))
E2=ROUND(12*MOD(YEARFRAC(C2,TODAY()),1),2)
 
Last edited:
Upvote 0
This?


Excel 2010
ABCD
1Coat Manufacture DatePants Manufacture DateAverage
22/1/20044/1/19998/31/200116 year 6.47 month
31/1/20091/1/20091/1/20099 year 2.43 month
44/1/19991/1/20092/15/200414 year 0.97 month
55/1/20156/1/201611/15/20152 year 3.97 month
64/1/19994/1/19994/1/199918 year 11.43 month
712/1/20015/1/20158/15/20089 year 6.97 month
82/1/20055/1/20153/17/20107 year 11.9 month
96/1/20165/1/201511/15/20152 year 3.97 month
105/1/19986/1/20165/17/200710 year 9.9 month
115/1/20145/1/20145/1/20143 year 10.43 month
125/1/20155/1/201410/30/20143 year 4.47 month
132/1/20146/1/20164/2/20152 year 11.4 month
145/1/20145/1/20145/1/20143 year 10.43 month
Sheet9
Cell Formulas
RangeFormula
C2=AVERAGE(A2,B2)
D2=INT(YEARFRAC(C2,TODAY()))&" year "&ROUND(12*MOD(YEARFRAC(C2,TODAY()),1),2)&" month"


(the rounding can be adjusted to preference)
 
Upvote 0
Works perfect but is there a way to include the average function in the longer function so I don’t have to add th average column? I appreciate your help.
 
Upvote 0
Sure:


Excel 2010
ABC
1Coat Manufacture DatePants Manufacture Date
22/1/20044/1/199916 year 6.47 month
31/1/20091/1/20099 year 2.43 month
44/1/19991/1/200914 year 0.97 month
55/1/20156/1/20162 year 3.97 month
64/1/19994/1/199918 year 11.43 month
712/1/20015/1/20159 year 6.97 month
82/1/20055/1/20157 year 11.9 month
96/1/20165/1/20152 year 3.97 month
105/1/19986/1/201610 year 9.9 month
115/1/20145/1/20143 year 10.43 month
125/1/20155/1/20143 year 4.47 month
132/1/20146/1/20162 year 11.4 month
145/1/20145/1/20143 year 10.43 month
Sheet9
Cell Formulas
RangeFormula
C2=INT(YEARFRAC(AVERAGE(A2,B2),TODAY()))&" year "&ROUND(12*MOD(YEARFRAC(AVERAGE(A2,B2),TODAY()),1),2)&" month"
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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