Average function

blooneptune

Board Regular
Joined
Nov 21, 2005
Messages
79
Hello.
Hope you can be of assistance. I am trying to obtain an average based on a multiple argument. In column I, i have 3 criteria of persons who have taken a test, broken down into completer, non completer and assessed. For their test scores (column AN) some have scores, some do not (blank, but are still considered a 'completer'). I am trying to average the scores of who are completers, then non completer, then assessed. The problem is the average takes into account the number of cases and includes the blank cells! Please help. If have tried the following formula, but it still counts the blank cells in column AN:

=SUMIF(I4:I1248,"completer",AN4:AN1248)/MAX(1,COUNTIF(I4:I1248,"completer"))

Thanks.
 

Some videos you may like

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
blooneptune said:
Hello.
Hope you can be of assistance. I am trying to obtain an average based on a multiple argument. In column I, i have 3 criteria of persons who have taken a test, broken down into completer, non completer and assessed. For their test scores (column AN) some have scores, some do not (blank, but are still considered a 'completer'). I am trying to average the scores of who are completers, then non completer, then assessed. The problem is the average takes into account the number of cases and includes the blank cells! Please help. If have tried the following formula, but it still counts the blank cells in column AN:

=SUMIF(I4:I1248,"completer",AN4:AN1248)/MAX(1,COUNTIF(I4:I1248,"completer"))

Thanks.

=AVERAGE(IF(I4:I1248="completer",IF(ISNUMBER(AN4:AN1248),AN4:AN1248)))

which you need to confirm with control+shift+enter, not just with enter.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,458
Messages
5,572,249
Members
412,451
Latest member
newbie22922792
Top