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.
[TABLE="width: 228"]
<tbody>[TR]
[TD]Coat Manufacture Date[/TD]
[TD]Pants Manufacture Date[/TD]
[/TR]
[TR]
[TD]2/04[/TD]
[TD]4/99[/TD]
[/TR]
[TR]
[TD]1/09[/TD]
[TD]1/09[/TD]
[/TR]
[TR]
[TD]4/99[/TD]
[TD]1/09[/TD]
[/TR]
[TR]
[TD]5/15[/TD]
[TD]6/16[/TD]
[/TR]
[TR]
[TD]4/99[/TD]
[TD]4/99[/TD]
[/TR]
[TR]
[TD]12/01[/TD]
[TD]5/15[/TD]
[/TR]
[TR]
[TD]2/05[/TD]
[TD]5/15[/TD]
[/TR]
[TR]
[TD]6/16[/TD]
[TD]5/15[/TD]
[/TR]
[TR]
[TD]5/98[/TD]
[TD]6/16[/TD]
[/TR]
[TR]
[TD]5/14[/TD]
[TD]5/14[/TD]
[/TR]
[TR]
[TD]5/15[/TD]
[TD]5/14[/TD]
[/TR]
[TR]
[TD]2/14[/TD]
[TD]6/16[/TD]
[/TR]
[TR]
[TD]5/14[/TD]
[TD]5/14[/TD]
[/TR]
</tbody><colgroup><col span="2"></colgroup>[/TABLE]
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

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,224,889
Messages
6,181,607
Members
453,055
Latest member
cope7895

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