Results 1 to 6 of 6

Thread: Excel help (involving IF function)

  1. Registered TeamPlayer Red_Lizard2's Avatar
    Join Date
    01-28-07
    Location
    Arizona
    Posts
    13,490
    Post Thanks / Like
    Blog Entries
    5
    Stat Links

    Excel help (involving IF function)
    Gamer IDs

    Steam ID: theredlizard2
    #1

    Excel help (involving IF function)

    okay so i'm trying to make this spreadsheet less typing require (so to speak). Now i think excell can do this (it better be able to) but need helping knowing how to tell it i want it to do this:

    If C25>D26, then put Win in E26

    If D26>C26, then put Loss in E26

    If C26=D26, then put Draw in E26.


    Now i've figured out how to set it up to do the win/loss bit, but can't get the draw part set up in that function. Any suggestions?

  2. Registered TeamPlayer draco7891's Avatar
    Join Date
    02-11-08
    Posts
    3,700
    Post Thanks / Like
    #2

    Re: Excel help (involving IF function)

    Nested ifs are your friend. Change the field values as needed:

    Code:
    =IF(A1=A2;"Draw";IF(A1>A2;"Win";"Loss"))
    As long as the two values are not equal, print the first condition (the second IF) the values of which are either "Win" or "Loss", depending on the equality; if both values are equal, the first IF returns a direct value of "Draw", satisfying all conditions.

    Draco

  3. Registered TeamPlayer Scotzo's Avatar
    Join Date
    02-14-09
    Posts
    1,688
    Post Thanks / Like
    Stat Links

    Excel help (involving IF function)
    Gamer IDs

    Steam ID: 76561198000892308
    #3

    Re: Excel help (involving IF function)

    nice draco, beat me to it!

    i think this also works
    Code:
    =IF(C25>D26,"Win",IF(D26>C26,"Loss",IF(C26=D26,"Draw")))

  4. Registered TeamPlayer Red_Lizard2's Avatar
    Join Date
    01-28-07
    Location
    Arizona
    Posts
    13,490
    Post Thanks / Like
    Blog Entries
    5
    Stat Links

    Excel help (involving IF function)
    Gamer IDs

    Steam ID: theredlizard2
    #4

    Re: Excel help (involving IF function)

    Quote Originally Posted by draco7891
    Nested ifs are your friend. Change the field values as needed:

    Code:
    =IF(A1=A2;"Draw";IF(A1>A2;"Win";"Loss"))
    As long as the two values are not equal, print the first condition (the second IF) the values of which are either "Win" or "Loss", depending on the equality; if both values are equal, the first IF returns a direct value of "Draw", satisfying all conditions.

    Draco
    Some reason it wouldn't except that one

    Quote Originally Posted by Scotzo
    nice draco, beat me to it!

    i think this also works
    Code:
    =IF(C25>D26,"Win",IF(D26>C26,"Loss",IF(C26=D26,"Draw")))
    this one did though

    thanks both for the help, will make updating the sheet now much easier then before.

  5. Registered TeamPlayer draco7891's Avatar
    Join Date
    02-11-08
    Posts
    3,700
    Post Thanks / Like
    #5

    Re: Excel help (involving IF function)

    I use a copy of OpenOffice, and their IF function uses semi-colons; changing them to commas should make it work.

    Also, did you really intend to use C25 and not C26 in the Win calc?

    Further also, you can change Scotzo's code:

    Quote Originally Posted by Scotzo
    i think this also works
    Code:
    =IF(C25>D26,"Win",IF(D26>C26,"Loss",IF(C26=D26,"Draw")))
    The third IF test isn't strictly necessary; if it's not a "Win" condition, then it could only be "Loss" or "Draw", so the second value of the second IF need only be "Draw".

    ie,
    Code:
    =IF(C26>D26,"Win",IF(D26>C26,"Loss","Draw"))
    Draco

  6. Registered TeamPlayer Red_Lizard2's Avatar
    Join Date
    01-28-07
    Location
    Arizona
    Posts
    13,490
    Post Thanks / Like
    Blog Entries
    5
    Stat Links

    Excel help (involving IF function)
    Gamer IDs

    Steam ID: theredlizard2
    #6

    Re: Excel help (involving IF function)

    if you mean the C25>D26 thing, that was just me typing it wrong , meant C25>D25 (was the cell i was on, why it got made the example).

Thread Information

Users Browsing this Thread

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

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
  •  
Title