+ Reply to Thread
Results 1 to 5 of 5

Averages - with conditions

  1. #1
    Registered User
    Join Date
    09-08-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Averages - with conditions

    Hi: I want to average a column of numbers, but just the ones that do not equal 200. How do I write the formula for that??
    Thanks

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: Averages - with conditions

    with 2007 version you can use

    =AVERAGEIF(A1:A100, "<>200")
    Never use Merged Cells in Excel

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Averages - with conditions

    For all versions: =AVERAGE(IF($A$1:$A$100<>200,$A$1:$A$100))

    Confirmed with Ctrl+Shift+Enter as it's an array formula.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Averages - with conditions

    =averageif(a1:a100,"<>200",a1:a100)
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Averages - with conditions

    Perhapds

    =AVERAGEIF(A1:A100,"<>200")

    adapt the range to your needs

+ 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