+ Reply to Thread
Results 1 to 14 of 14

How to bypass the 3 conditional formatting limit by using the IF or OR function?

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    PH
    MS-Off Ver
    2016
    Posts
    44

    How to bypass the 3 conditional formatting limit by using the IF or OR function?

    Hello, How to bypass the 3 conditional formatting limit by using the IF or OR function?

    I am editing an .xls file and there is a limit to 3 conditional formatting rule for coloring a cell.

    How do I combine the conditions using a formula?

    On the test file there are salary grades. When an employee selects a salary grade on the dropdown box I want the adjacent box to turn red.

    However there are 5 dropdown choices. How do I use the IF or OR formula on this one?

    Please look at the test file.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    If it should be red for any salary grade, then all you need is one rule using the formula:

    =LEN($C12)<>0
    Rory

  3. #3
    Registered User
    Join Date
    02-05-2019
    Location
    PH
    MS-Off Ver
    2016
    Posts
    44

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    Thanks for the quick reply.

    How about if there are 4 conditions? Lets say

    SG26&ABOVE, SG24&25, S18/19to22/23, SG10/11to15/16. It seems there is a limit to three? Can you please show me if an IF or and OR formula or any alternatives

    Thanks

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    All you've said is that it should go red if a grade is selected. That's only one condition - is the cell blank or not.

  5. #5
    Registered User
    Join Date
    02-05-2019
    Location
    PH
    MS-Off Ver
    2016
    Posts
    44

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    I mean now I want instead of turning it to red, It will only turn red if any of the 4 salary grade is chosen on the drop down list.
    Which is SG26&ABOVE, SG24&25, S18/19to22/23, SG10/11to15/16. If the employee selects Sub-Prof-Level then it will not turn red.

    I tried =C12="SG26&ABOVE" then format it to red.
    =C12="S18/19to22/23"
    =C12="SG10/11to15/16"
    =C12="SG24&25"

    I am now over the limit. Can you please help me how to combine this so it is only one condition?

    thanks

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    =AND(C12<>"",C12<>"Sub-Prof-Level")

    should do the job.

  7. #7
    Registered User
    Join Date
    02-05-2019
    Location
    PH
    MS-Off Ver
    2016
    Posts
    44

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    It works thanks. But I encountered a problem. I substitute =AND(C12<>"",C12<>"SG26&ABOVE") cause I want the SG26&above instead of Sub-Prof-Level to turn white but instead it turned everything to red no matter what choice on the dropdown box. May I ask if a new formula is needed?

    Thanks again

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    That value in your dropdown list has several trailing spaces at the end of it, so it doesn't match the value in the formula.

  9. #9
    Registered User
    Join Date
    02-05-2019
    Location
    PH
    MS-Off Ver
    2016
    Posts
    44

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    Perfect! Thank you so much!

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    Glad to help, and thanks for the rep.

  11. #11
    Registered User
    Join Date
    02-05-2019
    Location
    PH
    MS-Off Ver
    2016
    Posts
    44

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    Hello, I would just like to ask another question if its okay. Do you know of a formula to turn the cell red if an employee selects any
    of the three

    =C12="S18/19to22/23"
    =C12="SG10/11to15/16"
    =C12="SG24&25"

    but not SG24&25 and SG26&ABOVE. I can create a condition for each but is there a formula for it?

    Thanks again.
    Last edited by g0dmenuelz; 03-05-2019 at 10:53 AM.

  12. #12
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    Yes - just use OR:

    =OR(C12="S18/19to22/23",C12="SG10/11to15/16",C12="SG24&25")

  13. #13
    Registered User
    Join Date
    02-05-2019
    Location
    PH
    MS-Off Ver
    2016
    Posts
    44

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    Thanks again

  14. #14
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: How to bypass the 3 conditional formatting limit by using the IF or OR function?

    Glad to help, again.

+ 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. [SOLVED] How to bypass/workaround for 255 character formula limit? need help please.
    By g0dmenuelz in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-19-2019, 03:12 AM
  2. [SOLVED] Bypass Excel 32BIT processing limit of 2GB
    By drewship in forum Excel General
    Replies: 5
    Last Post: 02-02-2016, 04:01 PM
  3. [SOLVED] Ways Bypass 255 Character String Variable Type Limit
    By rkl303 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-26-2015, 01:59 PM
  4. Curious about limit for conditional formatting
    By trevor69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2015, 01:39 AM
  5. To get around Conditional formatting limit
    By dantonic in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-06-2011, 01:37 AM
  6. Conditional formatting limit
    By Jonathan78 in forum Excel General
    Replies: 20
    Last Post: 09-06-2009, 12:56 PM
  7. [SOLVED] any way to bypass Excel Limit of 255 rows?
    By griff in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-09-2005, 12:20 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