+ Reply to Thread
Results 1 to 6 of 6

Mitigating blanks with Arrays AVERAGE(IF(

Hybrid View

  1. #1
    Registered User
    Join Date
    08-02-2007
    MS-Off Ver
    2007
    Posts
    25

    Smile Mitigating blanks with Arrays AVERAGE(IF(

    Hi there -

    I'm using an arrays AVERAGE(IF( to average several scores from one spreadsheet to another.

    However, if I have 30 employees, 1 may have no score, and I don't want that no score to factor into the average, but with the above array, it does.

    Specifically, I get the wrong average for Score A, but the right one for Overal Score.

    Please see attached sample.

    Any help is greatly appreciated!!

    -Victoria
    Attached Files Attached Files
    Last edited by nothingisthis; 07-21-2009 at 01:35 PM.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Mitigating blanks with Arrays AVERAGE(IF(

    Try this
    =AVERAGE(IF(($G$6=$D$2:$D$19)*(B2:B19<>""),B2:B19))
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Mitigating blanks with Arrays AVERAGE(IF(

    wel you have something in the cell thats no score in col c thats why
    but to ignore 0 values use
    =AVERAGE(IF((G6=D2:D19)*(C2:C19>0),C2:C19))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Mitigating blanks with Arrays AVERAGE(IF(

    =AVERAGE(IF( ($G6 = $D$2:$D$19) * ISNUMBER(C$2:C$19), C$2:C$19)), array-entered.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    08-02-2007
    MS-Off Ver
    2007
    Posts
    25

    Re: Mitigating blanks with Arrays AVERAGE(IF(

    WOW! You guys are all sorts of smart! I can learn a ton from people here!

    Thanks Vusal again, for helping me out!!

  6. #6
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Mitigating blanks with Arrays AVERAGE(IF(

    If it meets your requirements, mark the thread as "SOLVED", and don't forget to add reputation by pressing blue scales on the right of your screen

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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