+ Reply to Thread
Results 1 to 7 of 7

Automatically calculate mean time between list of dates while ignoring blank cells in list

  1. #1
    Registered User
    Join Date
    02-19-2020
    Location
    Seattle, Washington
    MS-Off Ver
    7
    Posts
    3

    Post Automatically calculate mean time between list of dates while ignoring blank cells in list

    I'm trying to calculate the average number of days between a list of dates, but there are blank cells in between just about every row with a date value. For example, A1=1/10/2020, A3=1/19/2020, A6=2/2/2020, and A10=2/18/2020. I could do this manually of course, but I want it to be able to passively update once new date entries are inevitably added.

    Bonus Question: Next to each date entry (two columns over actually), is a value indicating number of hours elapsed from that date. How would I go about writing a formula that would incorporate those hours as well and then calculate the average length of time between the end of the previous denoted period (From Date_1 + Hours_1/24 to Date_2, and so on) and the beginning of the next one. Piggybacking on the above example, C1= 100 hours, C3=10 hours, C6=25 hours, C10=38 hours.

    Any and all help is appreciated! Thank you!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,798

    Re: Automatically calculate mean time between list of dates while ignoring blank cells in

    Welcome to the forum.

    Please update your profile with your current version of Office (not Windows!).

    Attach a sample workbook - instructions at the top of the page.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Automatically calculate mean time between list of dates while ignoring blank cells in

    If your values in C are actual intervals in hours, wouldn't the average number of days just be

    =AVERAGE(C:C)/24
    Bernie Deitrick
    Excel MVP 2000-2010

  4. #4
    Registered User
    Join Date
    02-19-2020
    Location
    Seattle, Washington
    MS-Off Ver
    7
    Posts
    3

    Post Re: Automatically calculate mean time between list of dates while ignoring blank cells in

    The values in C are not the intervals between the dates, they are arbitrary lengths of time that begin at the timestamp defined in column A. So let's say Period 1 Begins at date/time A1 and lasts for the number of hours in C1. Then that's when the interval I'm looking at begins. That interval ends once we hit date/time A2. So on and so forth.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,798

    Re: Automatically calculate mean time between list of dates while ignoring blank cells in

    And the sample workbook ... ?

  6. #6
    Registered User
    Join Date
    02-19-2020
    Location
    Seattle, Washington
    MS-Off Ver
    7
    Posts
    3

    Re: Automatically calculate mean time between list of dates while ignoring blank cells in

    Attached is sample workbook
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Automatically calculate mean time between list of dates while ignoring blank cells in

    Try this, which uses formulas to bring the values together to simplify the calculation:
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Generate list of dates backdated and ignoring holidays
    By jennil0211 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-13-2020, 09:00 PM
  2. Replies: 7
    Last Post: 02-24-2017, 10:46 PM
  3. [SOLVED] autofill vertical list horizontally with 2 blank cells in-between each list item
    By Phily915 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2014, 08:15 PM
  4. [SOLVED] new list ignoring blank
    By arctushar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-19-2013, 01:55 PM
  5. Replies: 5
    Last Post: 01-24-2013, 06:29 AM
  6. Replies: 0
    Last Post: 03-05-2012, 05:50 AM
  7. [SOLVED] Ignoring Blank value in a drop down list
    By shail in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-21-2006, 08:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1