+ Reply to Thread
Results 1 to 5 of 5

Help With =AVERAGEIF

  1. #1
    Registered User
    Join Date
    01-23-2015
    Location
    Hutington Beach, CA
    MS-Off Ver
    2010
    Posts
    3

    Help With =AVERAGEIF

    I am trying to calculate average On Time Delivery %, however i only want the percent to be included in the average calculation if the number in the "days aged" column is greater than or equal to 0 ("On Time" = 0). I came up with this formula below but I'm getting a divide by 0 error, any help would be greatly appreciated!

    =AVERAGEIF(H5:H32,I5:I32>=0)

    **Please see attached file**
    Attached Images Attached Images

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help With =AVERAGEIF

    Hi,

    And can you confirm there are no zeros in I5:I32.

    Upload the workbook if not so we can see the problem in context
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-23-2015
    Location
    Hutington Beach, CA
    MS-Off Ver
    2010
    Posts
    3

    Re: Help With =AVERAGEIF

    I have conditional formatting in the "I" column so that 0 comes up as "On Time". Here is the workbook thanks!
    Attached Files Attached Files

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Help With =AVERAGEIF

    You haven't got the correct syntax,. try this version

    =AVERAGEIF(I5:I32,">0",H5:H32)

    ...but that will include all your "blank" rows because you have large values in column I for those
    Audere est facere

  5. #5
    Registered User
    Join Date
    01-23-2015
    Location
    Hutington Beach, CA
    MS-Off Ver
    2010
    Posts
    3

    Re: Help With =AVERAGEIF

    That works great thanks!

    Normally this sheet will be updated weekly so those extra rows will be deleted.

    Thank you so much though I've been trying to get that right for like three hours!

+ 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. Help with averageif()
    By Ferloft in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-06-2013, 01:44 PM
  2. [SOLVED] Averageif
    By edmundo1971 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-03-2013, 09:48 AM
  3. =averageif(s)
    By emurphy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-07-2013, 12:44 PM
  4. Excel 2007 : Averageif
    By PaulMc in forum Excel General
    Replies: 6
    Last Post: 09-29-2008, 03:45 AM
  5. averageif
    By rudy in forum Excel General
    Replies: 5
    Last Post: 04-27-2006, 06:20 PM

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