+ Reply to Thread
Results 1 to 6 of 6

Combing IF, AND, OR Functions?

  1. #1
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Combing IF, AND, OR Functions?

    Ok so here's the scenario:

    IF:
    A1>B1
    AND
    A2>B2

    OR

    B1>A1
    B2>A2

    Then

    If true, "W"
    If false, "L"

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combing IF, AND, OR Functions?

    Try:

    =IF(OR(AND(A1>B1,A2>B2),AND(B1>A1,B2>A2),"W","L")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Combing IF, AND, OR Functions?

    =if(or(and(a1>b1,a2>b2),and(b1>a1,b2>a2)),"W","L")


    I'm guessing this is a sports related thing???
    IF so, what are you trying to achieve? There may be a better way of doing this...

  4. #4
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Re: Combing IF, AND, OR Functions?

    Says the formula is missing a parentheses, but when I add one at the end, it just gives me an error saying we found an error with the formula

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combing IF, AND, OR Functions?

    Try:

    =IF(OR(AND(A1>B1,A2>B2),AND(B1>A1,B2>A2)),"W","L")

  6. #6
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Re: Combing IF, AND, OR Functions?

    Works great thanks a lot!

+ 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. combing 2 tables into 1
    By kevincoxshall in forum Excel General
    Replies: 3
    Last Post: 08-14-2013, 01:12 PM
  2. [SOLVED] Combing multiple IF Statements.
    By Bobby82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-21-2012, 01:45 AM
  3. Excel 2007 : Combing formulas
    By ccampbell14 in forum Excel General
    Replies: 6
    Last Post: 07-12-2012, 02:15 PM
  4. Combing two Worksheet_Change subs into one
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2012, 07:49 PM
  5. [SOLVED] combing cells
    By Kelly E. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2005, 11:06 AM

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