+ Reply to Thread
Results 1 to 3 of 3

Exclude "#VALUE!" from counting the average

  1. #1
    Registered User
    Join Date
    12-29-2009
    Location
    brooklyn, ny
    MS-Off Ver
    Excel 2003
    Posts
    13

    Exclude "#VALUE!" from counting the average

    I have a list of always changing arrays. And next to the arrays, i have a formula which calculates the percentage change of the 2 numbers from array. I want to average those percentage returns, however some of the percentage change values are returned with #VALUE! and that prevents me from calculating average. Is there any way how to automatically exclude #VALUE! from counting from average???

    my spreadsheet looks something like this:

    Numbers
    Generated
    from Array...........Percent Change
    49.09
    48.03.................-2.16% (48.03-49.09)/49.09
    53.32.................11.01%
    52.93.................-0.73%
    57.2..................8.07%
    57.44 ................0.42%
    ......................#VALUE!
    ......................#VALUE!
    ......................#VALUE!
    ......................#VALUE!

    ...................... =AVERAGE() ????? <--I need to find how to average the numbers exluding #VALUE!.
    PLEASE HELP!!!


    THANK YOU
    Last edited by ilya49; 12-29-2009 at 07:53 PM. Reason: to make a table-like appearance

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Exclude "#VALUE!" from counting the average

    Better to adjust your Percent Change formula such that

    B2: =IF(COUNT(A1:A2)=2,(A2-A1)/A1,"")
    copied down for all rows

    Your Average is then simply

    =AVERAGE(B:B)

    EDIT: note range changes in B2 formula - shoudl have been A not B (apologies)
    Last edited by DonkeyOte; 12-29-2009 at 07:59 PM. Reason: error in COUNT range ref. should be A1:A2 not B1:B2 (!)

  3. #3
    Registered User
    Join Date
    12-29-2009
    Location
    brooklyn, ny
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Exclude "#VALUE!" from counting the average

    thank you, it worked perfectly!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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