+ Reply to Thread
Results 1 to 9 of 9

Skipping blank cells with IF function

  1. #1
    Registered User
    Join Date
    05-05-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    13

    Skipping blank cells with IF function

    Hi,

    I am creating a league table which will have Wins, Loss, Draw and will be sorted by Points.

    Heres my problem:
    The table is complete, I have a another sheet for a list of fixtures. But the problem is, I am using a IF Function for all the Wins, Loss, Draws. At the moment all the fixtures are empty (no scores inserted yet) So the IF function for the Draw's is picking up that those are draws so in my table its showing Played 12 games, Drawn 12 games. How can I make it ignore the blank cells?

    Thanks
    Attached Files Attached Files
    Last edited by warrickza; 05-06-2010 at 09:25 AM. Reason: Solved

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

    Re: Skipping blank cells with IF function

    Using your sample file - perhaps modify the approach to:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-05-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Skipping blank cells with IF function

    Thanks - i'll give it a try when I have a chance.
    Could you please explain that formula though please?

    And there is one more thing that I forgot to mention, I want this table to be sorted by PTS, then GF, and then GA. How can I make this update automatically? When I do it through the custom sorting it only works once off

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

    Re: Skipping blank cells with IF function

    In terms of sorting - you would be much better served using one table to calculate on an unsorted basis (as you have now) and use a 2nd table to retrieve the values from the unsorted table in order.

    In terms of the formulae used - for info. on SUMPRODUCT see the link in my sig. to Bob Philips' white paper, for info. on SUMIF see XL Help.

  5. #5
    Registered User
    Join Date
    05-05-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Skipping blank cells with IF function

    How would that new table auto-sort then?

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

    Re: Skipping blank cells with IF function

    You would use formulae - but first we would need to understand the means by which you would differentiate those on equal points (and the order of precedence).

    Obviously Points is the first determining factor - if Points are level what comes next ? Wins / GD ? And if still level after that ?

  7. #7
    Registered User
    Join Date
    05-05-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Skipping blank cells with IF function

    The order would be: PTS - GD - GF - GA(lowest) - Wins

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

    Re: Skipping blank cells with IF function

    Apologies for delay - I've not been online much this afternoon.

    Attached would be one possible approach - columns M:AA can be hidden (via Grouping)

    The attached has some RANDBETWEEN functions generate random scores which is why with each calc the results table changes - hopefully this will be sufficient for you.

    Column X is essentially used to generate a number based on your precedence rules such that the greater the number the higher the rank - each number will be unique.
    Column Y ranks based on X
    Column Z is determining the row number of each position (1 to 7) - this is to reduce no. of repetitive calcs being performend in Cols C:K
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-05-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Skipping blank cells with IF function

    Thank you very much for all your help DonkeyOte!
    Got it working 100% they way I wanted it, couldn't have done it without 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