+ Reply to Thread
Results 1 to 6 of 6

Calculate Average days

  1. #1
    Forum Contributor
    Join Date
    04-20-2010
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2016
    Posts
    151

    Calculate Average days

    I want a formula to calculate the average days (of a given set of days) and EXCLUDE any day above 100.

    I have more info on the attached sheet.
    Attached Files Attached Files
    Last edited by mrcois; 08-13-2010 at 02:10 AM.

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

    Re: Calculate Average days

    which version do you need this to run in ?

    For XL2007:

    Q5:
    =IFERROR(AVERAGEIF(INDEX($A$3:$O$10,0,3*ROWS(Q$5:Q5)),"<=100"),"")
    copied down

    For versions prior to that you can use SUMIF/COUNTIF approach (or an Array if you prefer)

  3. #3
    Forum Contributor
    Join Date
    04-20-2010
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2016
    Posts
    151

    Re: Calculate Average days

    I am using XL2003 and therefore used both SUMIF and COUNTIF separately but get the following: #NAME?

    I have attached the sheet again.
    Attached Files Attached Files

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

    Re: Calculate Average days

    I think you misinterpreted the prior post.

    AVERAGEIF is a function exclusive to XL2007 and beyond.

    For versions prior to Excel 2007 your options for the same are either a SUM/COUNT approach else an Array.

    2003 version below:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Calculate Average days

    for Q2 there is another way to extra the day.

    =TEXT(WEEKDAY(P2),"DDDD")

  6. #6
    Forum Contributor
    Join Date
    04-20-2010
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2016
    Posts
    151

    Re: Calculate Average days

    Thanks guys, this worked for me.

    Appreciate your help.

+ 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