+ Reply to Thread
Results 1 to 4 of 4

Using IF function for multiple outcomes

  1. #1
    Registered User
    Join Date
    03-25-2016
    Location
    Pittsburgh
    MS-Off Ver
    2013
    Posts
    2

    Using IF function for multiple outcomes

    Hey Guys -

    I am in the process of setting up a fantasy football league; however this is a bit different than standard leagues.

    Essentially each team (12) plays the (11) other teams each week. I am trying to create a function where I can input each team's points for the week and get a total number "wins" and "losses" for each week.

    I am able to do for example =IF(D7>E7,1) which brings the cell to 1 win if D7 is greater than E7. Is there a quicker way to do this?

  2. #2
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Using IF function for multiple outcomes

    Wins: =COUNTIF(E7:E17,"<"&D7)
    Losses: =COUNTIF(E7:E17,">"&D7)
    Ties: =COUNTIF(E7:E17,D7)

    See attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-25-2016
    Location
    Pittsburgh
    MS-Off Ver
    2013
    Posts
    2

    Re: Using IF function for multiple outcomes

    Thanks Eibi.

    That worked wonders.

    I attached my file for your review. The function works properly for =COUNTIF(D21:D31,"<"&D20) However, when I want to do the next "team" it won't work. =COUNTIF(D33,D35:D44,"<"&D34)

    Help again?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Using IF function for multiple outcomes

    In cell M22?

    You need: =COUNTIF(D33:D44,"<"&D34)

    Similarly, in cell M23, for example, you need:

    =COUNTIF(D46:D57,"<"&D48)

    Is this what you're looking for?

    In the sample formula you provided: =COUNTIF(D33,D35:D44,"<"&D34) it looks like you are trying to exclude D34 from the Countif() range, but no need to exclude it because it will never get counted by your win or loss formula.

+ 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] Using IF Function with AND and Multiple Outcomes
    By winninbird in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-17-2015, 09:27 PM
  2. IFS function. Many IFS and multiple possible outcomes
    By MrHjordt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-14-2014, 05:15 PM
  3. IF function with multiple Trues, multiple outcomes
    By BiminiSharklab in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2014, 10:50 AM
  4. [SOLVED] An IF function with 4 outcomes
    By Lija in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2013, 04:34 AM
  5. IF Function multiple possible outcomes?
    By Nomadski in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 02-11-2013, 05:41 PM
  6. [SOLVED] If function with 3 outcomes. As well as 2nd IF function to factor positive or negitive
    By Danimal615 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2013, 02:36 PM
  7. [SOLVED] If Function with multiple outcomes and accumulating numbers
    By Brainstorm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2012, 07:04 PM

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