+ Reply to Thread
Results 1 to 8 of 8

Can't see missing parenthesis in conditional format formula

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Can't see missing parenthesis in conditional format formula

    Attachment has eight possible combinations of Col E and Col F.

    Want conditional formatting to change colour of Col F cell red or green based on following:

    If E="Very high" and F <98%, F format "Red"
    IF E="High" and F<95, F format "Red"
    If E="Significant" and F<85%, F format "Red"
    If E="Low" and F<75%, F format "Red"

    If E="Very high" and F >=98%, F format "Green"
    IF F="High" and F>=95, F format "Green"
    If E="Significant" and F >=85%, F format "Green"
    If F="Low" & E >=75%, F format "Green"

    Putting combined formula in COl N identifies each combination perfectly:

    "=IF(OR(AND(E1="Very High",F1<98%),AND(E1="High",F1<95%),AND(E1="Significant",F1<85%),AND(E1="Low",F1<75%)),"Red",IF(OR(AND(E1="Very High",F1>=98%),AND(E1="High",F1>=95%),AND(E1="Significant",F1>=85%),AND(E1="Low",F1>=75%)),"Green"))"

    But splitting the formula and setting each half to Conditionally Format Col F throw an error message that there is a missing parenthesis?

    "OR(AND(E1="Very High",F1<98%),AND(E1="High",F1<95%),AND(E1="Significant",F1<85%),AND(E1="Low",F1<75%))"
    "OR(AND(E1="Very High",F1>=98%),AND(E1="High",F1>=95%),AND(E1="Significant",F1>=85%),AND(E1="Low",F1>=75%)"

    Problem is I can't see it?

    Any suggestions, pointers or solutions accepted gratefully as ever

    Ochimus
    Attached Files Attached Files

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Can't see missing parenthesis in conditional format formula

    In the split formulas the second one is definitely missing a parenthesis close at the end... but the first half looks fine to me (red one is the missing one, which closes the OR part of the statement):

    "OR(AND(E1="Very High",F1<98%),AND(E1="High",F1<95%),AND(E1="Significant",F1<85%),AND(E1="Low",F1<75%))"
    "OR(AND(E1="Very High",F1>=98%),AND(E1="High",F1>=95%),AND(E1="Significant",F1>=85%),AND(E1="Low",F1>=75%))"
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Can't see missing parenthesis in conditional format formula

    Formula for Red:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula for Green

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 04-28-2017 at 02:03 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Can't see missing parenthesis in conditional format formula

    one more solution with VLOOKUP
    column Q corected formula, i think there wasn't last bracket
    column R my formula for table in G2:H5, vlookup takes a limit from string data, then this number compared with numeric data
    Attached Files Attached Files
    Last edited by tim201110; 04-28-2017 at 05:17 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Can't see missing parenthesis in conditional format formula

    Tim Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Can't see missing parenthesis in conditional format formula

    Arkadi and mehmetcik, many thanks for prompt responses and spotting the problem in the "green" formatting.

    Odd thing is both your "red" solutions worked perfectly when I pasted them, but mine still doesn't, and I STILL can't see where it is different!

    Nevertheless can class this as closed and another triumph for the expertise on the site.

    Ochimus
    Last edited by Ochimus; 04-28-2017 at 02:34 PM.

  7. #7
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Can't see missing parenthesis in conditional format formula

    Quote Originally Posted by FDibbins View Post
    Tim Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior
    The solution is quite complicated to discribe it in a body of the post in English (for me). With you help I can give a more detailed answer.

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Can't see missing parenthesis in conditional format formula

    Happy to have been of help Ochimus

    I still have no explanation why your "red" isn't working...

+ 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: 1
    Last Post: 04-10-2016, 11:42 AM
  2. Replies: 5
    Last Post: 09-01-2015, 09:06 PM
  3. [SOLVED] Missing parenthesis or too many argument on a formula
    By dache416 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2014, 01:15 PM
  4. [SOLVED] "Your Formula Missing a Parenthesis"
    By xrajncajnx in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2014, 01:03 PM
  5. [SOLVED] IF statement missing parenthesis in formula
    By Abyrose in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2014, 06:24 PM
  6. [SOLVED] Formula missing parenthesis
    By katieshields in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2014, 03:44 AM
  7. Missing parenthesis
    By docrobo in forum Excel General
    Replies: 3
    Last Post: 10-23-2011, 05:18 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