+ Reply to Thread
Results 1 to 5 of 5

formula for average that excludes duplicate values and blank cells

  1. #1
    Registered User
    Join Date
    07-19-2017
    Location
    United States
    MS-Off Ver
    MS 2007
    Posts
    2

    formula for average that excludes duplicate values and blank cells

    Hi Everyone,

    So I need a formula that allows me to find the average of a column within a chart while ignoring duplicate values and blank cells.
    I tried using this formula:
    =AVERAGE(IF(FREQUENCY([$AMOUNT],[$AMOUNT]),[$AMOUNT]))
    but it doesn't work if there are blank cells present.

    Can anyone help?

    Thanks

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: formula for average that excludes duplicate values and blank cells

    Maybe a better solution exists, but using your formula as a basis:
    =AVERAGE(IF(FREQUENCY(IF(ISBLANK(array),MAX(array),array),array),IF(ISBLANK(array),MAX(array),array)))

    Enter as an array formula (Ctrl-Shift-Enter)
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    07-19-2017
    Location
    United States
    MS-Off Ver
    MS 2007
    Posts
    2

    Re: formula for average that excludes duplicate values and blank cells

    Hi,

    I tried the formula you suggested and it is giving me an error "#N/A"

  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,779

    Re: formula for average that excludes duplicate values and blank cells

    Did you enter it properly as an array formula?

    Array formulae are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    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.

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: formula for average that excludes duplicate values and blank cells

    Also, I used 'array' as a placeholder. You would replace with [$AMOUNT].

+ 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] Average Annual Growth Rate that excludes non numeric values.
    By Eamonn100 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-15-2017, 02:05 AM
  2. Concatenate formula that excludes a blank cell in the result
    By ensmith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2016, 11:20 AM
  3. Delivery Note Address Formula that excludes blank lines
    By mikekelly1978 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2015, 09:51 AM
  4. Replies: 3
    Last Post: 09-01-2014, 05:56 PM
  5. Replies: 3
    Last Post: 04-09-2012, 02:53 PM
  6. Average Formula of Cells Over Certain Value Excludes Blanks
    By larzep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2012, 08:36 PM
  7. How to blank out cells with duplicate values?
    By Bleu_808 in forum Excel General
    Replies: 8
    Last Post: 05-02-2006, 05:20 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