+ Reply to Thread
Results 1 to 8 of 8

AverageIF on separate values without 0

  1. #1
    Registered User
    Join Date
    08-08-2018
    Location
    Bangkok
    MS-Off Ver
    MS365 for Mac (latest version)
    Posts
    85

    AverageIF on separate values without 0

    Hello Gurus,

    I am trying to average My ADR BAR columns without the 0 values.
    My problem is that the data is not continuous and my formula returns #VALUE! (excel Attached)

    I'm not sure what I'm doing wrong

    Thanks a lot
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: AverageIF on separate values without 0

    try
    =(E6+I6+M6)/((E6<>0)+(I6<>0)+(M6<>0))
    http://cdn.na.sage.com/SageMail/MAS%...us%20range.pdf

    I dont know what Without 0, without 1 or without 2 means
    Attached Files Attached Files
    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.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: AverageIF on separate values without 0

    inelegantly
    =(E6+I6+M6)/(1*(E6>0)+1*(I6>0)+1*(M6>0))

  4. #4
    Registered User
    Join Date
    08-08-2018
    Location
    Bangkok
    MS-Off Ver
    MS365 for Mac (latest version)
    Posts
    85

    Re: AverageIF on separate values without 0

    Thanks a lot guys, that worked perfectly 😊

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

    Re: AverageIF on separate values without 0

    Plaese try at Q6
    =AVERAGEIFS(E6:M6,E6:M6,">0",E$5:M$5,E$5)

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: AverageIF on separate values without 0

    Hi,
    Try this in Q6 and down:

    =SUM(($C$5:$P$5=$E$5)*(TEXT($C6:$P6,"0;;0;\0")))/COUNTIFS($C$5:$P$5,$I$5,$C6:$P6,">0")
    Last edited by Limor_OP; 09-15-2020 at 05:31 AM.

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: AverageIF on separate values without 0

    Quote Originally Posted by NicBKK View Post
    Thanks a lot guys, that worked perfectly 😊

    Please keep in mind that in solutions # 2&3 you will have to select manually the cells to calculate the average on.
    If you have a large range - it might be less practical.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,416

    Re: AverageIF on separate values without 0

    Q6 cell , array formula
    HTML Code: 

+ 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. Total of two separate AVERAGEIF formulas
    By miribilist in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-27-2019, 06:03 AM
  2. Formula With Nth Values Using AVERAGEIF With Criteria
    By swordswinger710 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2018, 12:00 PM
  3. Averageif not excluding 0 values in column
    By rach2017 in forum Excel General
    Replies: 3
    Last Post: 03-13-2017, 10:37 PM
  4. [SOLVED] Averageif, but only average last X # of values
    By smatchymo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-02-2016, 05:19 PM
  5. [SOLVED] Excel2010 IF Formula to return value based on a separate date and two separate text values
    By jakecutler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2015, 03:24 AM
  6. AverageIF formula Ignoring Certain values
    By jvandermolen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2014, 11:52 AM
  7. [SOLVED] AVERAGEIF - Ignoring 0 values - It's supposed to but not doing it.
    By BeachRock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-25-2013, 11:57 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