+ Reply to Thread
Results 1 to 5 of 5

Using IF AND OR

  1. #1
    Registered User
    Join Date
    03-23-2021
    Location
    London
    MS-Off Ver
    10
    Posts
    2

    Using IF AND OR

    Hi all,

    It's Friday night and I'm stuck with what should be a simple formula, someone please put me out of my misery

    I'm trying to use IF AND OR in one formula to get one of 2 outcomes, here's what I've got:

    =IF(AND(AQ7="N",AN7<0,OR(AND(AQ7="Y",AN7>0))),AN65,"Positive Interest - No Charge to Client")

    basically two conditions
    1) if cell = N and less than 0 I want the cell value AN65 to appear or that condition is not met then display text "Positive Interest - No Charge to Client"
    2) if cell = Y and more than 0 I want the cell value AN65 to appear or that condition is not met then display text "Positive Interest - No Charge to Client"

    have I missed something? it must be an easy fix.... I'm blaming it on Friday night brain freeze!!!

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Using IF AND OR

    Hi & welcome to the board.
    Try it like
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-23-2021
    Location
    London
    MS-Off Ver
    10
    Posts
    2

    Re: Using IF AND OR

    Works! Thanks Fluff13 your a legend

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using IF AND OR

    What if AQ7 is blank? Want a blank returned? Assumption is AQ7 is either Y or N.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    With potential for blank
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Nevermind, Fluff beat me to it.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Using IF AND OR

    Glad to help & thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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