+ Reply to Thread
Results 1 to 2 of 2

Can I create a Conditional Formula based on the Color of a Cell?

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Can I create a Conditional Formula based on the Color of a Cell?

    I am I'm trying to create a formula that changes the color of Cell F4 based on the color of the cell in F4;

    If F4 cell colour is green or gold and value is of T4 is Y then colour T4 green.
    This means:
    If Cell F4 = [the color green] && T4=='Y'
    then Cell T4 also gets the color green i.e Cell F4 = [the color green]


    This is conditional based on the cell fill color.

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

    Re: Can I create a Conditional Formula based on the Color of a Cell?

    You cannot do this without macros. There is no built-in Excel function that will tell you the fill color of a cell. You would have to write a VBA function to return the fill color, then call that function in your conditional formatting rule. UNLESS the color in F4 is determined by conditional formatting, in which case you simply use the same logic in your other rule.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Conditional row color based on a cell value
    By WMP in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2012, 02:12 AM
  2. Replies: 5
    Last Post: 05-10-2012, 10:49 PM
  3. Conditional Formatting Based on Cell Color Help
    By gvsu141 in forum Excel General
    Replies: 1
    Last Post: 04-15-2011, 07:44 AM
  4. Create 2 Totals, One Based On Name And One Based On Name And Cell Fill Color
    By PIPPIBOOKS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2008, 04:41 PM
  5. [SOLVED] Conditional Formatting Formula to Color Rows Based on Column Value
    By SteveC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2006, 01:25 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