+ Reply to Thread
Results 1 to 3 of 3

IF AND OR in one formula

  1. #1
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    IF AND OR in one formula

    The use of IF, AND and OR in one formula can at times be rather confusing when one isn't used to how to put these elements together so that they make sense.

    This file has several examples with explanations. I have intentionally left out the use of ARRAY CONSTANTS to keep it simple for those just starting out.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF AND OR in one formula

    Helpful for folks warming up to the various nuances of IF, OR & AND.

    Although, you get rid of the "" around the TRUE & FALSE. Furthermore, you get rid of the IF statement altogether. Hence in your first example...

    =AND(B4<=5,C4>=10,OR(A4="A",A4="B",A4="C"))

    would still give TRUE/FALSE
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: IF AND OR in one formula

    You are correct about the TRUE and FALSE not needing the "" around them. I did a search and replace to put TRUE and FALSE in the formulae because I had other terms in there that did require the "". As for the formula =AND(B4<=5,C4>=10,OR(A4="A",A4="B",A4="C")) I did not use it because I was specifically trying to demonstrate how to use the construction in IF formulae.

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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