+ Reply to Thread
Results 1 to 8 of 8

How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

  1. #1
    Registered User
    Join Date
    09-22-2015
    Location
    Durham,England
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Question How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

    Hi all,

    I am doing some analysis tables for a local sports team and I want to make it quicker to update rather than inputting the information onto several sheets. Ideally just input the scores and all the relevant cells update. Some of the values were easy using IF and IFCOUNT. However, when it came to setting up a best of 3 games I couldn't find a way to get an answer from 3 results without analysing the results separately and then getting the info from those new cells.

    Example: Badminton Matches (you play best of 3 games each to 21pts)

    How do I get it to analyse a win or a loss from 6 cells? (21-19, 19-21, 21,19) (This would be a WIN for the home team)) and....How when no data is in will it leave the cell blank? (IF only allows for TRUE or FALSE, (WIN or LOSS))

    A rather stuck

    Ben

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

    Do you have a file that you're working from? If so, could you upload it and point out what your desired results are?

  3. #3
    Registered User
    Join Date
    09-22-2015
    Location
    Durham,England
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

    yeah sure,

    I hope this helps,

    Book1.xlsx

    Ben

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

    Sorry, just saw your comment.

  5. #5
    Registered User
    Join Date
    09-22-2015
    Location
    Durham,England
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

    I left comments on the workbook but if they don't work here's it itemised,

    Column F (Rubbers): those results need to show WIN, LOSS or 'nothing at all'

    Columns G & H are the first game, representing my team and our opponents scores. G>H will result in a win but only 1 out of 3. So for Column F to say 'WIN' at least 2 out of the three results need to be wins.

    I basically want to find a way for it to update when I put the scores in without me manually putting in WIN or LOSS in the F columns as the season progresses. Also while no data is in I want it to say nothing at all rather than the LOSS it would say if I used 'IF' (which only has two outcomes 'TRUE' or 'FALSE'

    The only way I can come up with to do it is to create another column for each individual game and literally count that if we get 2 positive results its a WIN - only 1 still means a LOSS.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

    In F17 copied down

    =IF(COUNT(G17:L17)<4,"",IF((G17>H17)+(I17>J17)+(K17>L17)>1, "WIN", "LOSS"))
    I assume that there may be only 4 entries if Player A wins the first 2 matches?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Registered User
    Join Date
    09-22-2015
    Location
    Durham,England
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

    That works perfectly,

    Thanks so much that is exactly how I wanted it to work - so now I see I needed to add a simple count less than 4 results leave it blank.

    Thanks for the help.

    Ben

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: How to get 'TRUE', 'FALSE', and 'Leave BLANK', & also how to average some data

    Edit: Seems much more complicated, but takes into account 2 sets entered into table, one won, one lost (whole match not yet finished) as well as 2 sets and points of one team (5 cells) filled :-).

    For F7 formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy down
    Seems complicated but try different results and only inner part:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    consisting of three assesment of each of sets
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    etc.

    You can now see that it takes set points (G7 and H7 cells) and if results are already there returns +1 for home (left) winner or -1 for left being looser. If results are not yet there returns 0
    if we sum 3 results we can end anywhere between -2 and 2. It will be easier to evaluate witch CHOOSE function if we add 3 to the result so we will have a number from range 1-5.

    But at the moment let's forget about +3.

    Result -2 is obvious loose, 0 - clear not finished, 2 clear winner.
    But how obout -1 or 1? it is looser or winner only if all 3 sets were finished. otherwise it means that only first set was finished

    Copy cell F7 to other cells in columns F, M and T and I hope to be back in few minutes to have a look on other formulas needed - as I understand mostly AI column
    Last edited by Kaper; 09-23-2015 at 11:27 AM.
    Best Regards,

    Kaper

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Plug true if cell has one name else leave blank
    By makinmomb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2014, 12:15 PM
  2. Average of ranges marked by TRUE and FALSE statements
    By B_P in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2014, 03:34 PM
  3. [SOLVED] Instead of having FALSE or #N/A leave a cell blank
    By Mr_Nick666 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-11-2013, 06:28 AM
  4. If Then formula. If false, I would like to leave the cell blank.
    By joaquinwalking in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2013, 01:56 PM
  5. if value is not true, leave blank
    By surfengine in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2010, 07:01 PM
  6. False - want to leave blank
    By redlion3 in forum Excel General
    Replies: 1
    Last Post: 11-26-2007, 06:01 PM
  7. Replies: 6
    Last Post: 10-27-2005, 11:05 AM

Tags for this Thread

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