+ Reply to Thread
Results 1 to 2 of 2

Average of dates and times if it meets a specific criteria

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Average of dates and times if it meets a specific criteria

    Hi guys,

    i need some help averaging the time between dates and times.

    i need it to average the dates and times if it meets a certain condition for instance if the name is "Adams".

    The best i can come up with is {=AVERAGE(IF(B3:B27="Adams",D3:D27))} but that gives me the average date between the values not the hours.

    e.g. if the range is:

    12/07/2010 06:00
    13/07/2010 06:00
    14/07/2010 06:00

    the answer once it's formatted correctly is 13/07/2010 06:00 but i need it to say the average hours between so the answer should be 24 hours and not the middle date.

    Hope that all makes sense and someone can help

    Regards,
    Harry

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Average of dates and times if it meets a specific criteria

    It might help if you provide a sample file with a meaningful dataset - ie 20 rows with some valid/invalid entries and expected result(s).

    Presumably where the value in B is not "Adams" that date is excluded from analysis altogether ? eg

    Please Login or Register  to view this content.
    In the above the result would in fact be 36 hours Average, correct ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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