+ Reply to Thread
Results 1 to 6 of 6

"average" IF

Hybrid View

mpanty "average" IF 08-25-2005, 06:14 PM
Guest Re: "average" IF 08-25-2005, 08:05 PM
Domenic Assuming that A1:G3 contains... 08-25-2005, 11:04 PM
mpanty Hi Dave and Dominic, ... 08-26-2005, 02:36 AM
Domenic Try the following formula... 08-26-2005, 07:56 AM
mpanty Perfect Domenic! Worked like... 08-26-2005, 02:20 PM
  1. #1
    Registered User
    Join Date
    03-21-2005
    Location
    Montreal
    Posts
    18
    Hi Dave and Dominic,

    Thanks for your help, both of you. I tried both suggestions and got the same result, which is good news because Dominic's formula is simpler to set up, so it confirms I've managed to make it work.

    The only problem in both formulas is that they count blank cells as a "zero".

    For example (because I have several players to which the formula applies to, and some play more league games than others, while others play friendlies):

    Game...... 001 / 002 / 003 / 004 / 005 / 006
    Category . 'L' / 'L' / 'F' / 'C' / 'L' / 'C'
    James .... 6.7 / 5.6 / --- / 7.5 / --- / 7.8
    Chris .... --- / --- / 6.7 / 5.6 / --- / ---


    So for James for example, the formula you suggested Dominic, would use 6.7, 5.6 and 0 to calculate the LEAGUE (L) average, yielding 4.1, instead of just the first two league games the player actually played, and ignoring the 3rd (giving the correct average value 6.2).

    Is there a way to use the formula so that it ignores blank cells (or doesn't count them in the average)?

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following formula instead...

    =AVERAGE(IF((B2:G2="L")*(B3:G3<>""),B3:G3))

    ...confirmed with CONTROL+SHIFT+ENTER.

    Hope this helps!

    Quote Originally Posted by mpanty
    Hi Dave and Dominic,

    Thanks for your help, both of you. I tried both suggestions and got the same result, which is good news because Dominic's formula is simpler to set up, so it confirms I've managed to make it work.

    The only problem in both formulas is that they count blank cells as a "zero".

    For example (because I have several players to which the formula applies to, and some play more league games than others, while others play friendlies):

    Game...... 001 / 002 / 003 / 004 / 005 / 006
    Category . 'L' / 'L' / 'F' / 'C' / 'L' / 'C'
    James .... 6.7 / 5.6 / --- / 7.5 / --- / 7.8
    Chris .... --- / --- / 6.7 / 5.6 / --- / ---


    So for James for example, the formula you suggested Dominic, would use 6.7, 5.6 and 0 to calculate the LEAGUE (L) average, yielding 4.1, instead of just the first two league games the player actually played, and ignoring the 3rd (giving the correct average value 6.2).

    Is there a way to use the formula so that it ignores blank cells (or doesn't count them in the average)?

  3. #3
    Registered User
    Join Date
    03-21-2005
    Location
    Montreal
    Posts
    18
    Perfect Domenic! Worked like a charm!

    Thank you so much for your help!

+ 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