+ Reply to Thread
Results 1 to 3 of 3

Average if not zero and if below a certain number

  1. #1
    Forum Contributor
    Join Date
    03-07-2008
    Posts
    140

    Average if not zero and if below a certain number

    Hi,
    I have the following formula in my excel sheet so that it only averages numbers greater than 0. However, i also need to make this equation only inlcude numbers below 20 in the average as well. So in summary, I only want it to only take an average of numbers between 0 and 20 in a range of cells.. help please.


    =AVERAGEIF(K5:BI5,">0")

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    483

    Re: Average if not zero and if below a certain number

    Is this what you need?

    =AVERAGEIFS(K5:BI5,K5:BI5,">0",K5:BI5,"<20")

  3. #3
    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
    79,420

    Re: Average if not zero and if below a certain number

    Change it to AVERAGEIFS and add the extra argument:

    =AVERAGEIFS(K5:BI5,K5:BI5,">0",K5:BI5,"<20")
    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.

+ 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. [SOLVED] Calculate average of variable number of cells variable number of times
    By WeirnetherlandsBart in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2014, 10:11 AM
  2. [SOLVED] Moving Average for given N Number
    By thilag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2014, 02:50 AM
  3. [SOLVED] Get average from U3 through U (And row number identified in AC2)
    By nenadmail in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-28-2014, 08:14 AM
  4. [SOLVED] Find Average, Return Column Header of Number Closest To Average
    By djmyers in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-07-2013, 04:19 PM
  5. [SOLVED] Average if the number is below 95%
    By jenncess in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2013, 02:11 PM
  6. cant average a number if #DIV/0!
    By dodger999 in forum Excel General
    Replies: 13
    Last Post: 01-08-2010, 05:13 PM
  7. Last Number to Average
    By yirawan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2005, 02:19 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