+ Reply to Thread
Results 1 to 2 of 2

Average values with the corresponding name , but exclude zeros and blanks.

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    Houston
    MS-Off Ver
    Excel 2003
    Posts
    5

    Average values with the corresponding name , but exclude zeros and blanks.

    Hi Everyone,

    I have an issue with a model I am building. I can't figure out how to pull the average for values that correspond to different names. If I have Column A with company names repeating in random order, and column B with their associated value, I need to average the associated values for each company. However, I need it to ignore the zeros and blanks, otherwise the data is skewed.

    I have been able to pull the averages with an array formula {=AVERAGE(IF(A$21:A$64 = A4, B$21:B$64)))}, but not exclude the zeros. Any help is greatly appreciated. Attached is an example.

    Thanks,

    Adam
    Attached Files Attached Files

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Average values with the corresponding name , but exclude zeros and blanks.

    try the following in A2 onwards:

    Please Login or Register  to view this content.
    Last edited by icestationzbra; 07-19-2012 at 05:14 PM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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