+ Reply to Thread
Results 1 to 2 of 2

Help with nested IF statement required!

Hybrid View

  1. #1
    Registered User
    Join Date
    12-05-2006
    Posts
    29

    Help with nested IF statement required!

    Hi,

    As below, I am trying to calculate if my team ("Team A) won, lost or drew.

    Col A - I have put this in to show you what I mean, but that's the column I want to automate by looking at each teams scores and what they got. I want to do it all with respect to team A though. Is any one able to help me!? Thanks.

    Col A Col B Col C Col D Col E

    L Team A 56 Team B 139
    L Team B 166 Team A 44
    D Team A 56 Team B 56
    L Team A 28 Team B 111
    W Team B 105 Team A 102
    L Team B 171 Team A 72
    W Team A 72 Team B 63

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Help with nested IF statement required!

    Assuming your sample data starts with "Team A" in cell B1 and "63" in cell E7, one way would be the following formula in A1 and copying down.
    =IF(C1=E1,"D",IF(AND(B1="Team A",C1>E1),"W",IF(AND(D1="Team A",E1>C1),"W","L")))

    Worth noting, that in the 5th game in your example you have Team A down as a WIN. However, last time I checked 102 was less than 105 so I make that a LOSS for them...

    I'm sure there are nicer ways of accomplishing this, but this works...
    If I've been of help, please hit the star

+ 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] Nested If Statement - ISBLANK and ISNA in same statement?
    By Janc in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-23-2013, 09:00 AM
  2. IF Statement required. (Nested or Multiple)
    By singerbatfink in forum Excel General
    Replies: 2
    Last Post: 09-28-2010, 06:20 AM
  3. Replies: 6
    Last Post: 01-14-2009, 06:59 PM
  4. Nested IF with Vlookup Help Required?
    By NKRA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2007, 04:35 PM
  5. [SOLVED] IF / SUM - Nested Formula Required?
    By Annabelle in forum Excel General
    Replies: 4
    Last Post: 05-10-2005, 06:06 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