+ Reply to Thread
Results 1 to 7 of 7

Format a cell with text based on another cell's highlight colour?

  1. #1
    Registered User
    Join Date
    10-08-2018
    Location
    Ipswich
    MS-Off Ver
    2007
    Posts
    4

    Format a cell with text based on another cell's highlight colour?

    Hi all

    I tried to find the answer to this to no avail.
    Does anyone know if this is possible?

    fgdfgd.jpg

    Basically, I want to put an X in the cell in column C if the cell in column I is highlighted green and then just copy paste all the way down column C.
    Sounds simple?

    Any help?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Format a cell with text based on another cell's highlight colour?

    How do the cells in column I get highlighted? Is it done manually, or through conditional formatting, or some other way?

    Pete

  3. #3
    Registered User
    Join Date
    10-08-2018
    Location
    Ipswich
    MS-Off Ver
    2007
    Posts
    4

    Re: Format a cell with text based on another cell's highlight colour?

    Conditional formatting to highlight duplicates.
    Using.... =COUNTIF(I:I,I1)>1

  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,907

    Re: Format a cell with text based on another cell's highlight colour?

    I'd switch the logic round and put:

    =IF(COUNTIF(I:I,I1)>1,"X","")

    and then make the CF dependent on whether that cell contains an X rather than doing the same calculation again.
    Rory

  5. #5
    Registered User
    Join Date
    10-08-2018
    Location
    Ipswich
    MS-Off Ver
    2007
    Posts
    4

    Re: Format a cell with text based on another cell's highlight colour?

    Not sure I get you.
    No cell contains any X yet, the reason I'm doing this is to I don't have to manually input thousands of X's in column C.

    I just wish it was an simple as if I1(highlighted) then C1="X".
    Hahah !!

  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,907

    Re: Format a cell with text based on another cell's highlight colour?

    In C1 enter:
    =IF(COUNTIF(I:I,I1)>1,"X","")

    that will give you your Xs using the same criteria that colour the cells in I. I'm then suggesting that there is no point doing the same count twice (once in column C and once in column I's conditional formatting), you can alter the formatting formula to use =$C1="X" instead.

  7. #7
    Registered User
    Join Date
    10-08-2018
    Location
    Ipswich
    MS-Off Ver
    2007
    Posts
    4

    Re: Format a cell with text based on another cell's highlight colour?

    YES !!!!!!!!!!!

    :D

    Thanks muchly. Great stuff !!

+ 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] format a cell background colour based on a manual background colour of an adjacent cell
    By Nampara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-24-2018, 04:03 PM
  2. conditionally format cell B colour based on what number is entered into cell A
    By bell1986uk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2018, 07:22 PM
  3. Format the colour of a cell based on the date content of another cell
    By JohnDawkins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2017, 06:06 PM
  4. Format cell text based on cell colour.
    By RGM0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-14-2016, 02:43 PM
  5. [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
  6. Replies: 2
    Last Post: 06-01-2015, 05:25 AM
  7. Replies: 2
    Last Post: 11-29-2012, 11:27 AM

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