+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : League table - how to avoid blank matches being read as draws?

  1. #1
    Registered User
    Join Date
    05-15-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    League table - how to avoid blank matches being read as draws?

    I have a league table spreadsheet, which uses the scores from the fixtures to automatically update it.
    It uses SUMPRODUCT to identify whether the matches ended up a win/draw/loss, as well as the goals scored/conceded.
    However, one flaw is that any matches currently unplayed (blank) get read as draws. This obviously stops the table working, so if anyone knows how to stop the formula reading the empty cell matches it'd be appreciated.

    The formula used in the draws column is:-
    =SUMPRODUCT(($A$2:$A$65=J2)*($E$2:$E$65=$F$2:$F$65))

    It was suggested to use the IF LEN function and I tried multiple ways, again without success. So I think this will work if I get the formula right.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: League table - how to avoid blank matches being read as draws?

    Add an ISNUMBER test:

    =SUMPRODUCT(($A$2:$A$65=J2)*($E$2:$E$65=$F$2:$F$65)*ISNUMBER($E$2:$E$65))

    or

    =SUMPRODUCT(($A$2:$A$65=J2)*($E$2:$E$65=$F$2:$F$65)*($E$2:$E$65&$F$2:$F$65<>""))

  3. #3
    Registered User
    Join Date
    05-15-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: League table - how to avoid blank matches being read as draws?

    thanks, the first one worked a treat!

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: League table - how to avoid blank matches being read as draws?

    Hi

    This thread might be of interest to you

    Sorting a football/soccer league table

    http://www.excelforum.com/excel-gene...gue-table.html

+ 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