Average dates

MrsFrankieH

Active Member
Joined
Mar 25, 2011
Messages
323
Office Version
  1. 365
Platform
  1. Windows
Hello everyone!!

My computer is a laptop (ASUS)

My operating system is Windows 10.

I would like to know if it is possible to find a formula that will help me to figure out the average days, months and years between the following dates. I will be adding dates, so the formula would have to adjust to calculate additional dates. I appreciate your help in advance and I hope you all are safe and healthy.

Thank you.

1588657176925.png
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Yes, it's possible, but it depends what you mean by average days, months and years?

Here's a simple example with one guess. What answers are you expecting?

ABCD
1AverageMy GuessYou
25 May 2020Days233.5??
33 Aug 2021Months7.5??
415 Aug 2021Years0.5??
Sheet1
Cell Formulas
RangeFormula
C2C2=(MAX(MyDates)-MIN(MyDates))/(ROWS(MyDates)-1)
C3C3=DATEDIF(MIN(MyDates),MAX(MyDates),"m")/(ROWS(MyDates)-1)
C4C4=DATEDIF(MIN(MyDates),MAX(MyDates),"y")/(ROWS(MyDates)-1)
 
Upvote 0
Hello Steven!! Thank you so much!! That's the thing, I'm sure of what answer I'm supposed to have as my math skills are dreadful but what I'm looking for is the average of all the displayed dates. Would "My Guess"be the averages of all the displayed dates?
Thankyou again, I appreciate your help more than I can express.
 
Upvote 0
Hello Steven. I'm getting errors. Does the date format matter? Thanks again and be safe.
 
Upvote 0
For my example: =AVERAGE(MyDates) will return 8 March 2021, the average of the three dates.

I'm not sure what you mean by errors? I have defined MyDates:=Sheet1!$A$2:$A$4. You could also use =AVERAGE(A2:A4)
 
Upvote 0
Hello Steven. I hope you had a great day today. What I meant by "errors" is 'error message'. Please forgive me as I have only rudimentary knowledge of Excel formulas or terminology so I'm not quite sure what "MyDates:=Sheet1!$A$2:$A$4" is. I copy and paste when I'm lucky enough to get a talented formula person as yourself to help me. When I copied and pasted your formula, for some reason I got an error message.
 
Upvote 0
I have attached my spreadsheet to illustrate: Average Dates

Formula 1 uses cell references A2:A6, which you are probably already familiar with.

Formula 2 uses a named range MyDates, which makes the formula easier to read. Have a look at Formula/Name Manager ... and you'll see that I have defined MyDates: =Sheet1!$A$2:$A$6. The quick way to do this is to use the Name Box. Select the cells A2:A6 and look in the Name Box (just above cell A1) and you'll see MyDates. You can create names by selecting the required cell(s), then simply typing in the Name Box the name you want to use for that cell(s).

If you can let us know how you want the results to be calculated, the forum can provide you with Excel formulas. But I am still not clear what answers you are expecting? What do you intend doing with the calculated average dates?

ABCD
1MyDatesAverageFormula1Formula2
25 May 2020Days208208
33 Aug 2021Months6.756.75
410 Oct 2021Years0.500.50
51 Mar 2022Date12 Sep 202112 Sep 2021
615 Aug 2022
Sheet1
Cell Formulas
RangeFormula
C2C2=(MAX(A2:A6)-MIN(A2:A6))/(ROWS(A2:A6)-1)
D2D2=(MAX(MyDates)-MIN(MyDates))/(ROWS(MyDates)-1)
C3C3=DATEDIF(MIN(A2:A6),MAX(A2:A6),"m")/(ROWS(A2:A6)-1)
D3D3=DATEDIF(MIN(MyDates),MAX(MyDates),"m")/(ROWS(MyDates)-1)
C4C4=DATEDIF(MIN(A2:A6),MAX(A2:A6),"y")/(ROWS(A2:A6)-1)
D4D4=DATEDIF(MIN(MyDates),MAX(MyDates),"y")/(ROWS(MyDates)-1)
C5C5=AVERAGE(A2:A6)
D5D5=AVERAGE(MyDates)
Named Ranges
NameRefers ToCells
MyDates=Sheet1!$A$2:$A$6C2:D5
 
Upvote 0
Solution
Hello Stephen !!! Thank you so much for explaining the process to me and thank you for the spreadsheet. It looks GREAT and it looks very close to what I'm looking for, if not dead on!
What I'm looking for the calculations to do is to average the dates (days and months) between the top date (Thursday, November 9, 2006) to the bottom date (Monday, October 28, 2019). The purpose would be for me to have a guess as to what the next date would be (give or take ).
I'm so grateful for your help and grateful to you for sharing your immense talent with me. You are awesome!!
 
Upvote 0
The formulae in C2/D2 in Post #7 show the average period between dates so far as 208 days. So you are saying that your best guess for the next date is 15 Aug 2022 + 208 days = 11 March 2023.

Depending on what your dates represent, there may be better estimates, e.g is there an element of seasonality that should be allowed for?
 
Upvote 0
Hello Stephen!!Thank you so much!!!Yes, the average period (according to my math savvy, yet chronically busy sister) is 208 days. Your formula's exactly what I needed. I don't know if seasonality could make a difference, I'm not sure, what did you have in mind? I'm open to all of your suggestions.Thank you sooo much!! I really appreciate your skillful help.
 
Upvote 0

Forum statistics

Threads
1,215,636
Messages
6,125,959
Members
449,276
Latest member
surendra75

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