+ Reply to Thread
Results 1 to 9 of 9

AVERAGEIF is not working

  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    Busan, Korea
    MS-Off Ver
    Excel 2007
    Posts
    8

    AVERAGEIF is not working

    Hello

    I would like to get an average value H875 and H879 only, not H875 through H879.

    AVERAGEIF(H875:H879,">0") is working perfectly but

    AVERAGEIF(H875,H879,">0") is not working

    Anyone could help me out? Thanks in advance!

    From Rachel

  2. #2
    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
    80,410

    Re: AVERAGEIF is not working

    Welcome to the forum!

    Have you tried this?

    =AVERAGEIFS(H875,">0",H879,">0") - may not work in your version

    Or even just:

    =AVERAGE(H875,H879)
    Last edited by AliGW; 01-20-2019 at 07:09 AM.
    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.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: AVERAGEIF is not working

    or even just =(H875+H879)/2?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    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
    80,410

    Re: AVERAGEIF is not working

    Yep - can't help thinking there's more to it that we have not yet been told ...

  5. #5
    Registered User
    Join Date
    08-19-2014
    Location
    Busan, Korea
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: AVERAGEIF is not working

    Wow! Thanks for a quick reply!

    =AVERAGEIFS(H875,">0",H879,">0") is not working.


    =AVERAGE(H875,H879) is working but I need to exclude zero. What I want to achieve is that if H875 = 0 and H879 = 70, the average is 70


    From Rachel

  6. #6
    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
    80,410

    Re: AVERAGEIF is not working

    Maybe this?

    =AVERAGE(IF(H875=0,"",H875),IF(H879,0,"",H879))

  7. #7
    Registered User
    Join Date
    08-19-2014
    Location
    Busan, Korea
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: AVERAGEIF is not working

    Wow! It worked!

    You are awesome! Thanks a lot for your great help

    From Rachel

  8. #8
    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
    80,410

    Re: AVERAGEIF is not working

    Great!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: AVERAGEIF is not working

    Just an FYI for future reference, this would also work...
    =IF(H875=0,H879,IF(H879=0,H875,(H875+H879)/2))
    this would cover it if you were dealing with blanks...
    =IF(OR(H875=0,H875=""),H879,IF(OR(H879=0,H879=""),H875,(H875+H879)/2))
    may have to adjust the parens but either should work.

+ 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. AVERAGEIF whit time not working
    By Thomas62 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-12-2018, 10:21 PM
  2. [SOLVED] Averageif
    By bangorbrownie in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-30-2017, 09:47 PM
  3. averageIF function not working, please help
    By mpfiorv in forum Excel General
    Replies: 19
    Last Post: 11-30-2014, 06:47 PM
  4. [SOLVED] AverageIf function not working correctly
    By Spicey_888 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-12-2014, 02:08 AM
  5. Averageif
    By dohara in forum Excel General
    Replies: 8
    Last Post: 04-29-2014, 02:24 PM
  6. AverageIF across sheet range not working
    By cmac7872 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-09-2012, 12:42 PM
  7. [SOLVED] Mock AVERAGEIF statement not working
    By SMac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2005, 08:06 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