+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting based on the color of another cell.

  1. #1
    Registered User
    Join Date
    12-13-2018
    Location
    Ferndale, WA
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    15

    Conditional formatting based on the color of another cell.

    Hello Again,

    I have another question regarding conditional formatting. I would like to highlight a cell (red or yellow) with a person's name in it based on if there are similar colors in the row. If there is yellow in the row, highlight the name yellow, but if there is red in the row it trumps the yellow and highlights it red.

    Is there a way to do this that doesn't require thousands of conditional formatting rules? I have roughly 200 names to go through with a number of due dates that could come up either yellow or red.

    Thanks,
    Jeremy

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,693

    Re: Conditional formatting based on the color of another cell.

    How did the other cells in the row get yellow or red?

    If it's by conditional formatting, then you would need new rules that use the same logic from the original rules.

    If it's by manual formatting, it can't be done by conditional formatting and you need VBA. There are no built-in functions in Excel to tell you the fill color of a cell.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-13-2018
    Location
    Ferndale, WA
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    15

    Re: Conditional formatting based on the color of another cell.

    They are done by conditional formatting based on how far away they are from today's date. Less than 30 days away is Red, less than 60 days away is yellow. I tried formatting the cell with the name to include all of the cells in the row from E:O. I have tried splitting them apart using plus signs and I have tried OR statements.

    I have the potential to have "blanks" in my worksheet due to someone not receiving a due date yet. By blanks, I mean a formula in the cell that comes back as blank.

    Any advice? Does this make sense?

  4. #4
    Registered User
    Join Date
    12-13-2018
    Location
    Ferndale, WA
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    15

    Re: Conditional formatting based on the color of another cell.

    Trying to post what I did in formulas, but it keeps coming back with "HTML code not allowed."

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,693

    Re: Conditional formatting based on the color of another cell.

    "how far away they are from today's date." I assume you mean how far they are in the future from today's date.

    If your dates are in columns E:O and your data starts in row 2 you are going to need 2 CF rules for your names that look like this:

    Yellow
    =MIN($E2:$O2)<TODAY()+60

    Red
    =MIN($E2:$O2)<TODAY()+30

    in that order

    Yes, our board has a filter that tries to suppress HTML attacks but sometimes it thinks math comparison operators are HTML. we have workarounds for that. Best thing is to actually attach your Excel file. The paper clip icon does not work for attachments. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.

  6. #6
    Registered User
    Join Date
    12-13-2018
    Location
    Ferndale, WA
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    15

    Re: Conditional formatting based on the color of another cell.

    And that worked! You all are so helpful. Thanks!

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,693

    Re: Conditional formatting based on the color of another cell.

    You're welcome! Thanks for the rep, and thanks for marking your thread Solved.

+ 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] Color scale conditional formatting based on another cell's value
    By dtrimble in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-29-2024, 09:49 AM
  2. Replies: 2
    Last Post: 09-02-2018, 01:09 PM
  3. [SOLVED] Color scale conditional formatting based on another cell's value
    By johnharrison in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2016, 01:42 PM
  4. Replies: 21
    Last Post: 12-16-2015, 03:04 PM
  5. Add conditional formatting based on color of a cell
    By dreddster in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-12-2015, 04:54 AM
  6. Replies: 5
    Last Post: 05-10-2012, 10:49 PM
  7. Conditional Formatting Based on Cell Color Help
    By gvsu141 in forum Excel General
    Replies: 1
    Last Post: 04-15-2011, 07:44 AM

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