+ Reply to Thread
Results 1 to 21 of 21

Conditional Formatting - Multiple Criteria

  1. #1
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Conditional Formatting - Multiple Criteria

    I have a set of data which has three columns: Persons name, profile score, engagement score.

    Profile score contains a letter from a-d
    Engagement score contains a number from 1-4

    I am trying to create formatting that highlights the persons name when the profile score is a,b or c AND their engagement score is 1,2 or 3. So in the end only those that are a1, a2, a3, b1, b2 , b3 are highlighted.

    Any suggestions?

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Formatting - Multiple Criteria

    Hi,

    Welcome to the Forum.

    Something like this?
    Attached Images Attached Images
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting - Multiple Criteria

    Thank you - this seems like it should be the correct formula but when I input it nothing seems to be highlighted?

    My information is within a pivot table if that changes anything...

  4. #4
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting - Multiple Criteria

    The formula works if profile score is not capital letter but as they are all capital letters this seems to be the problem - how do I work around this?

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting - Multiple Criteria

    maybe: =AND(OR(B2="a",B2="b",B2="c"),OR(C2=1,C2=2,C2=3)) with your range A2:An selected
    lower case or upper case doesn't matter

  6. #6
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting - Multiple Criteria

    Thank you Sandy, but as mentioned for some reason it does seem to matter. When my profile engagement scores in my data are in uppercase the formula doesn't work, but works absolutely fine when the profile engagement scores are in lower case. So my question is how can I make the formula work when the engagement scores are in upper case?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting - Multiple Criteria

    You mean if in lower case it should be no color but only if in upper case?
    if yes:
    =AND(OR(EXACT(B2,"A"),EXACT(B2,"B"),EXACT(B2,"C")),OR(C2=1,C2=2,C2=3))
    Last edited by sandy666; 05-24-2017 at 10:31 AM.

  8. #8
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting - Multiple Criteria

    No....All m profile engagement scores are in upper case. The formula above correctly highlights the cells when the profile engagement score is in lower case (I changed some to test this as was confused as to why the formula wasnt working) but when the letter is in upper case the formula doesnt highlight anything.

    See screen grab attached where the formula has been applied, the lower case letter one is highlighted only.

    Why does it work when it is lower case but not upper case?data.jpg

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting - Multiple Criteria

    There must be something else that is different between the cell with a and the cell with A
    Because Capitalization doesn't matter to a straight A=B comparison.
    ="a"="A" is TRUE

    Are those cells the result of a formula? What is that formula?
    What does this return where B2 is a cell with A that is NOT colored.
    =LEN(B2)

    Can you attach a sample workbook?

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting - Multiple Criteria

    attach file with your problem
    picture looks great but it has little value

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting - Multiple Criteria

    1. select range A2:A10 or more (it should be selected until you click OK in CF)
    2. use =AND(OR(B2="a",B2="b",B2="c"),OR(C2=1,C2=2,C2=3)) in Conditional formatting
    3. set color
    4. ok
    5. test in worksheet
    Attached Files Attached Files
    Last edited by sandy666; 05-24-2017 at 10:42 AM.

  12. #12
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting - Multiple Criteria

    Sandy you can already see that is the formula I am using so it's not very helpful to repeat this.

    Jonmo I agree I feel like something else may be interfering with it, I have tried to attach a dummy report but as soon as I remove all the other worksheets and important information from the document the formula works and my data becomes highlighted.

    I'm sorry I know it's hard to diagnose without a worksheet but I can't attach with all my data as it is confidential, but the problem resolves itself when I delete everything.

    Guess I will have to keep playing around with it....driving me crazy!

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting - Multiple Criteria

    Attach sample workbook with your formula with the problem you have

    original data is not necessary

  14. #14
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting - Multiple Criteria

    What does =LEN(B2) return, when B2 is a cell containing a Capital A that is NOT triggering the conditional format ?

  15. #15
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting - Multiple Criteria

    ok dummy data now attached....it seems to have highlighted one cell correctly on the dummy but still not completely correct. On my original no content is highlighted at all.
    Last edited by zobrien; 05-24-2017 at 11:17 AM.

  16. #16
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting - Multiple Criteria

    Agree with Sandy
    Original data is not necessary.

    Show formuls without data
    We can plug in our own bogus data to test with.

    Please attach sample book with formulas, minus sensitive data.

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting - Multiple Criteria

    no file attached



    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  18. #18
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting - Multiple Criteria

    Attached.....
    Attached Files Attached Files

  19. #19
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting - Multiple Criteria

    C5 and C6 do NOT = "A"
    Instead, they are ="A " <- notice the space at the end.

    The LEN function test would have revealed this possible issue.

  20. #20
    Registered User
    Join Date
    04-26-2017
    Location
    reading
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Formatting - Multiple Criteria

    Ah amazing...such a simple thing. Will mark post as solved

  21. #21
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting - Multiple Criteria

    Please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Conditional Formatting over multiple cells with multiple criteria validator
    By effendrew in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-31-2015, 05:05 PM
  2. [SOLVED] Conditional Formatting help (multiple criteria)
    By MzP in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2015, 07:15 AM
  3. [SOLVED] Conditional formatting - multiple criteria
    By bobbie_ch in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-05-2013, 08:46 AM
  4. Replies: 5
    Last Post: 12-28-2012, 02:06 PM
  5. [SOLVED] Conditional Formatting with multiple criteria
    By RLSaSSy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-14-2012, 10:52 AM
  6. Conditional formatting on multiple criteria
    By floribunda in forum Excel General
    Replies: 2
    Last Post: 07-11-2011, 10:25 AM
  7. Conditional Formatting with multiple criteria
    By Lara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2006, 06:00 PM

Tags for this Thread

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