+ Reply to Thread
Results 1 to 3 of 3

1 Fn, 2 Logical tests, 1 True value, 2 False values

  1. #1
    Registered User
    Join Date
    01-03-2012
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    1 Fn, 2 Logical tests, 1 True value, 2 False values

    Example:
    Commission A: 250
    Commission B: 150
    Commission C: 100

    Commission X: 200
    Commission Y: 150

    I have the following combinations... You can receive...A+B+C, OR X, OR Y

    I'm trying to say... IF Cells X and Y are Blank then A+B+C is true. If Cells X OR Y are filled then = X or Y depending on which is filled...

    I've tried myself and failed...I currently have IF(AND(X="",Y=""),A+B+C,X) but that only satisfies if X is filled. I want Y to show up if it is filled instead of X

    Or is there a better way to write what i am tring to accomplish?

    Help!! and Thank you!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: 1 Fn, 2 Logical tests, 1 True value, 2 False values

    If your sample data is in A1:B5
    Please Login or Register  to view this content.
    This regular formula:
    Please Login or Register  to view this content.
    Returns:
    A+B+C: if X and Y are blank
    X: if only X and not Y
    Y: if only Y and not X
    "both x and y": if X and Y have values.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-03-2012
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: 1 Fn, 2 Logical tests, 1 True value, 2 False values

    Yes and thank you!

+ Reply to Thread

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1