+ Reply to Thread
Results 1 to 5 of 5

Exclude a range of cells from a list, and find Average

  1. #1
    Registered User
    Join Date
    12-17-2010
    Location
    indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    3

    Exclude a range of cells from a list, and find Average

    Say I have a list for A1:A10. The numbers are A1 = 1, A2 = 2... to A10 = 10.

    In column B I have the numbers 5 and 8. B1 and B2 respectively.

    I want to have a formula that calculates the average without B1 and B2. The problem comes in when I blow the ranges up. Say A1:A500, and in the B column I have B1:B315. I want the formula to look in the range of B and compare that to the list in A, and take the average of A without the range of numbers in B. Hope this is clear. (Can it be done without using an array?)

    Cheers,

    Nate
    Last edited by nberzai; 12-20-2010 at 01:01 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Exclude a range of cells from a list, and find Average

    Try:

    =AVERAGE(IF(ISNA(MATCH(A1:A10,B1:B2,0)),A1:A10))

    confirmed with CTRL+SHIFT+ENTER not just ENTER
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Exclude a range of cells from a list, and find Average

    Wouldn't it be:

    =(SUM(A1:A500)-SUM(B1:B315))/(COUNT(A1:A500)-COUNT(B1:B315))

  4. #4
    Registered User
    Join Date
    12-17-2010
    Location
    indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Exclude a range of cells from a list, and find Average

    Looks good on both fronts.

    Cutter, how would I find the max? I can use the array formula above by just substituting max for average, but this won't work for yours... Any other ideas?

  5. #5
    Registered User
    Join Date
    12-17-2010
    Location
    indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Exclude a range of cells from a list, and find Average

    By the way, thanks for the quick response and the answer!

+ 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