+ Reply to Thread
Results 1 to 8 of 8

Help with the "AVERAGEIF" function

  1. #1
    Registered User
    Join Date
    03-19-2018
    Location
    Little Rock, Arkansas
    MS-Off Ver
    2013
    Posts
    6

    Help with the "AVERAGEIF" function

    Not sure how to word this but here it goes..

    I have a column(H) with how many miles out of route a driver went. The next column(I) is if the driver was due home or not.

    on I45 I have a cell labeled "company OOR Average for drivers due home". I want this cell to have a formula that will average H25:H38, only if I25:I38 has "YES" in the cell, and plugs the information in I45.

    I have attached a picture with the information above to give a better understanding.
    Attached Images Attached Images

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help with the "AVERAGEIF" function

    =averageif($i$25:$i$38,"yes",$h$25:$h$38)

  3. #3
    Registered User
    Join Date
    03-19-2018
    Location
    Little Rock, Arkansas
    MS-Off Ver
    2013
    Posts
    6

    Re: Help with the "AVERAGEIF" function

    That is what I thought originally but without the "$". I have tried with and without the "$" now, and both are coming back "#DIV/0".

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help with the "AVERAGEIF" function

    Try this:

    =iferror(averageifs($h$25:$h$38,$i$25:$i$38,"yes",$h$25:$h$38,"<>"&0),"")

  5. #5
    Registered User
    Join Date
    03-19-2018
    Location
    Little Rock, Arkansas
    MS-Off Ver
    2013
    Posts
    6

    Re: Help with the "AVERAGEIF" function

    no-go on that one as well. Accepted the formula without any error codes but now the cell is completely empty.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Help with the "AVERAGEIF" function

    Hi,

    It sounds like nothing is meeting your criteria. What about this
    =averageif($i$25:$i$38,"*yes*",$h$25:$h$38)
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  7. #7
    Registered User
    Join Date
    03-19-2018
    Location
    Little Rock, Arkansas
    MS-Off Ver
    2013
    Posts
    6

    Re: Help with the "AVERAGEIF" function

    That did it! Thank you all for your help!

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Help with the "AVERAGEIF" function

    You're welcome. That suggests that your cells have leading or trailing spaces and not simply "yes".

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. EXCEL 2003 - Need an "AVERAGEIF" formula to exclude "0" in average
    By kerry0507 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2015, 03:37 PM
  4. AVERAGEIF: Multiple "<>" criterias for a single range
    By AlphaRaveNZ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-02-2014, 02:59 AM
  5. Use"Averageif" but can't avoid "###########"
    By him0331 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2014, 05:08 AM
  6. [SOLVED] Using a "ColorIndexOfRange" function as criteria in an "averageif" statement
    By ndrobinson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2012, 03:40 PM
  7. [SOLVED] Please add a "sheet" function like "row" and "column" functions
    By Spreadsheet Monkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2005, 12:15 PM

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