+ Reply to Thread
Results 1 to 5 of 5

Parentheses Placement IF/AND Formula?

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Question Parentheses Placement IF/AND Formula?

    Hello,
    I need help with the parentheses placement for some (IF/AND) formulas the result isn’t correct for some and Excel gives me errors messages for others. If you could review the formulas and see if which ones contain errors and which ones are correct it would be greatly appreciated.

    Thank you.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by artiststevens; 08-24-2014 at 12:21 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Parentheses Placement IF/AND Formula?

    =AND((Q6-P6)/(O6-P6)>=0.6,(N6-P6)/(O6-P6)>=0.6)

    I might be wrong but I think order of operations states that you are doing this:

    =AND((Q6-P6)/(O6-P6)>=0.6,(N6-P6)/(O6-P6)>=0.6)
    Then dividing the TRUE/FALSE by (N6-P6)

    Try
    =AND(((Q6-P6)/(O6-P6))>=0.6,((N6-P6)/(O6-P6))>=0.6)
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Parentheses Placement IF/AND Formula?

    Excel performs calculations prior to comparisons.

    If you click Evaluate Formula on the Formulas ribbon you should see where your errors are.

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Parentheses Placement IF/AND Formula?

    1-2 look fine to me,
    3-6 have AND(one - two) which is going to deliver TRUE as long as they're both numbers,
    7-8 look fine.

  5. #5
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Parentheses Placement IF/AND Formula?

    Thank you everyone for the help it's greatly appreciated.

+ 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. Missing formula parentheses.
    By ThursRed in forum Excel General
    Replies: 6
    Last Post: 08-13-2015, 12:53 AM
  2. [SOLVED] what does additional parentheses mean after a formula in excel
    By icevinson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 01:37 PM
  3. [SOLVED] Extracting all text from parentheses (including parentheses)
    By j4ke101 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-10-2013, 08:03 AM
  4. Replies: 6
    Last Post: 01-13-2011, 03:00 AM
  5. Array formula and parentheses
    By HSU in forum Excel General
    Replies: 16
    Last Post: 12-22-2010, 01:23 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