+ Reply to Thread
Results 1 to 3 of 3

Averaging select numbers in a column

  1. #1
    Registered User
    Join Date
    03-03-2010
    Location
    Lawton, OK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question Averaging select numbers in a column

    Hi,

    I am lookng to average only selected numbers in a column dependent on the entry in another column.

    column A ...........................column B

    AMOUNT...........................STATUS
    3.5.....................................active
    0.4.....................................inactive
    0.5 .....................................active
    2.4..................................... pending
    12.5.....................................active
    6.7 ..................................... pending
    3.1 ..................................... pending
    3.4..................................... inactive
    8.5..................................... active
    3.0..................................... inactive


    I can not figure out how to create a formula that will only average the numbers in column A that have an "ACTIVE" status in column B.

    Any suggestions would be greatly apprciated.
    Last edited by dmjames; 03-03-2010 at 11:54 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Averaging select numbers in a column

    Hi Dmjames, welcome to the forum.

    In Excel 2003 use the array formula:

    =AVERAGE(IF(B1:B10="active",A1:A10))

    This must be confirmed with CTRL+SHIFT+ENTER, not just ENTER.

    In Excel 2007 you can use the new AVERAGEIF function (non-array), i.e.

    =AVERAGEIF(B1:B10,"active",A1:A10)

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Averaging select numbers in a column

    Edit: Removed. Didn't notice that OP was on 2003 before I posted and Paul's post covers both 2003 and 2007 versions.

+ 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