+ Reply to Thread
Results 1 to 5 of 5

AverageIF Formula Averaging 3 cells, sometines a cell can be a 0 Value, Ignore 0 VAlue

  1. #1
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    AverageIF Formula Averaging 3 cells, sometines a cell can be a 0 Value, Ignore 0 VAlue

    Hi All,
    I have an averageif formula that basically sort of looks like this . =averageif(a1,f1,z1). this formula is copied down but I just noticed that it calcualtes incorrectly if anyone of those cells contain a 0 value. It artificially drives the average down because it considers the 0 in the formula. Is there a way to write the average if formula to consider 3 cells for the avreage, as seen above, but only use the average if the value is greater than 0.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,684

    Re: AverageIF Formula Averaging 3 cells, sometines a cell can be a 0 Value, Ignore 0 VAlue

    Not sure what this is doing as it compares F1 with A1 and averages Z1

    =AVERAGEIF(A1,F1,Z1).

    Better post a file as per instructions in yellow banner at top of page.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,085

    Re: AverageIF Formula Averaging 3 cells, sometines a cell can be a 0 Value, Ignore 0 VAlue

    AVERAGEIF(range, criteria, [average_range])

    So you are not averaging 3 cells there , you are only using the Value in Z1 to average ?

    perhaps it would be better if you attached a spreadsheet sample with the data and also your expecred results

    you have a 2010 and 365 what version are you actually using

    you can add a criteria to only average if >0
    But I dont know what your range actually is
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Re: AverageIF Formula Averaging 3 cells, sometines a cell can be a 0 Value, Ignore 0 VAlue

    Here is a sample document that outlines my current formula. Sorry I screwed this up and made it more difficult. Lets start again.

    I have a huge file that runs quite a bit and there is currently an average formula, like the one attached. That uses the average function and takes in 3 cells. EG. =average(cell1, cell2, cell3). The problem with this formula is
    if any of those cells have a 0 value it drages the average down significantly. I would like to use the same formula but somehow tell it that if there is a 0 value in any of those cells just use the cells that have an a numerical
    value greater than one.

    Is this a better explanation for you guys.
    Again I apologize for the poor post.
    Attached Files Attached Files

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: AverageIF Formula Averaging 3 cells, sometines a cell can be a 0 Value, Ignore 0 VAlue

    Maybe try

    =AVERAGEIF(A6:I6,">0")

    or
    =AVERAGEIFS(A6:I6,A6:I6,">0",$A$5:$I$5,"Num*")

    or
    =SUM(A6,E6,I6)/COUNT(1/A6,1/E6,1/I6)

    or
    =AVERAGE(CHOOSE({1,2,3},IF(A6,A6),IF(E6,E6),IF(I6,I6)))
    Attached Files Attached Files

+ 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] AVERAGEIF array formula is only averaging the first column in average_range.
    By sigaha in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-10-2019, 11:24 AM
  2. [SOLVED] Averaging Problem - Can AVERAGEIF be nested inside IF?
    By jgf310 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-21-2019, 09:40 PM
  3. [SOLVED] Ignore blank cells with formulas or ignore NA() in a formula
    By guiismiti in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-24-2016, 02:13 PM
  4. [SOLVED] Telling my macro to ignore empty cells when averaging
    By duhigs in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-23-2014, 03:06 AM
  5. [SOLVED] Can't make AverageIF ignore empty cells
    By Mantask in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2013, 11:54 PM
  6. Can't figure out averaging to ignore blank cells
    By splosh313 in forum Excel General
    Replies: 15
    Last Post: 06-01-2012, 05:08 PM
  7. Suppress #DIV/0! when averaging results using AverageIF function
    By KeepCallmAndExcel in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-18-2012, 07:58 AM

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