+ Reply to Thread
Results 1 to 10 of 10

Highlight cell by certain colour based on 3 criteria

  1. #1
    Registered User
    Join Date
    08-18-2019
    Location
    Australia
    MS-Off Ver
    MS Office 365
    Posts
    28

    Highlight cell by certain colour based on 3 criteria

    Gday all,


    I have a table that requires some assistance. I have cells (A2:A14) that needs to be colour coded based off the cells K2:K9 but have to meet certain requirements within the data set from E2:G14. For an example, A5 will need highlighted the colour within K6 because it fulfills the requirements for that colour being its a D (E5), Int (F5), and Tall (G5). The different criteria is tabled within the cells M2:M9, I can arrange them as need be, just need the starting formula to make it all work.

    Any and all help is always appreciated.

    Thanks,

    Shonky
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,687

    Re: Highlight cell by certain colour based on 3 criteria

    You will need to set up a rule for each colour. To help us help you, please manually shade the table so that we can see what we are aiming for.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,170

    Re: Highlight cell by certain colour based on 3 criteria

    For A5

    Select A2:G14

    CF formula

    =AND($F2="Int",$G2="Tall",$E2<>"G")

    Fill: Purple
    Last edited by JohnTopley; 10-01-2021 at 03:40 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,170

    Re: Highlight cell by certain colour based on 3 criteria

    For "Pink"

    =AND($E2="G",$F2="Int",$G2="Tall")

    For "Red"

    =AND($E2="G","$F2=Int",$G2="Standard")

    etc

  5. #5
    Registered User
    Join Date
    08-18-2019
    Location
    Australia
    MS-Off Ver
    MS Office 365
    Posts
    28

    Re: Highlight cell by certain colour based on 3 criteria

    Will I have to write a rule out for every letter ie =AND($E2="A",$F2="Int",$G2="Tall")
    =AND($E2="B",$F2="Int",$G2="Tall")
    Or can I give it a series to check over? ie from A-F then H-M?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,687

    Re: Highlight cell by certain colour based on 3 criteria

    You could try this:

    =AND(OR($E2="A",$E2="B",$E2="C",$E2="D",$E2="E",$E2="F"),$F2="Int",$G2="Tall")

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,170

    Re: Highlight cell by certain colour based on 3 criteria

    see this ...

    =AND($F2="Int",$G2="Tall",$E2<>"G")

    i,e. therefore must be A=F, H-M

    which is why I used this example

    Your initial post excluded L & M examples so may need to Exclude as above
    Last edited by JohnTopley; 10-04-2021 at 08:55 AM.

  8. #8
    Registered User
    Join Date
    08-18-2019
    Location
    Australia
    MS-Off Ver
    MS Office 365
    Posts
    28

    Re: Highlight cell by certain colour based on 3 criteria

    Thank you so very much for your assistance on this one. I'll be able to make good use of these formulas for years to come.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,687

    Re: Highlight cell by certain colour based on 3 criteria

    Thanks for the rep.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,170

    Re: Highlight cell by certain colour based on 3 criteria

    And thanks from me for the rep!

+ 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. dynamic cell updates based on highlight colour of previous cell
    By smytha6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2020, 05:31 AM
  2. Replies: 6
    Last Post: 10-08-2018, 07:29 AM
  3. [SOLVED] CF cell highlight based on another columns colour
    By toneNFFC in forum Excel General
    Replies: 3
    Last Post: 07-08-2015, 06:24 AM
  4. [SOLVED] Conditional Formatting - Highlight cell based on two criteria
    By HomerGuy in forum Excel General
    Replies: 3
    Last Post: 01-26-2015, 03:50 PM
  5. highlight cell based on criteria
    By jetset1 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 10-11-2013, 10:59 AM
  6. Locate and colour cell based on a number of criteria in other cells
    By ackp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-23-2013, 10:05 AM
  7. Highlight or colour a cell or cells based on cells in another range.
    By baffld in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2012, 08:41 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