+ Reply to Thread
Results 1 to 2 of 2

How To ignore blank cells....

Hybrid View

  1. #1
    Registered User
    Join Date
    01-15-2008
    Posts
    1

    Unhappy How To ignore blank cells....

    Hi Guys,

    Im exhausted making research on this matter...I am organizing a small football tournament of 4 teams each playing home and away accordingly... The standings table must show, Games Played, Won, Draw, Lost, Goal +, Goal -, Goal =, and Points.

    Everything is working well except one...DRAW, since the scores have not been entered yet, the computer is reading the cell as if it is a draw even though they are empty... and the standings table is not set to 0 but 8 per team (8games). So there are 8 empty cells (since not started yet) which are being read as a Draw. ..I'm using the below function for the Home part :

    =IF(D5=E5,1,0)+(E9=D9)+(E11=D11)+(D15=E15)

    HOPE SOMEONE CAN HELP ME

    Thanks
    Maurizio

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,698
    I'm not sure exactly how your data is laid out but if you have home score in D5 and away score in E5 and you want 1 for a draw but 0 otherwise try

    =IF(AND(D5<>"",D5=E5),1,0)

    or just

    =AND(D5<>"",D5=E5)+0

    This will only give a 1 if the cells are equal but not empty.

    You can calculate in one formula how many draws in a range by extending that logic, e.g. to count draws in rows 5 to 15

    =SUMPRODUCT((D5:D15<>"")*(D5:D15=E5:E15))

+ 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