Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Conditional Formatting - preserve format after remove cell values

Latest post Fri, Jun 20 2008 12:49 AM by Mike Alexander. 2 replies.
  • Thu, Jun 19 2008 6:20 PM

    • sbolton3
    • Top 500 Contributor
    • Joined on Thu, Jun 19 2008
    • Posts 1
    • Points 37

    Conditional Formatting - preserve format after remove cell values

    I have a situation where I need to use conditional formatting to color code a list.  I then need to be able to send this color coded list out to other users but cannot show them the acutal values.  Is there any way to keep the background color of the cells but remove the values?  Possibly copy the formats to another worksheet, but not the values?

     

    Thanks,

    • Post Points: 37
  • Thu, Jun 19 2008 6:40 PM In reply to

    Re: Conditional Formatting - preserve format after remove cell values

    If you don't copy the values, the CF will not show the colour.

    You would have to extract the CF colour being shown, and set the cell fill colour to that and then copy it. It can be done but it is far from simple.

    Regards

    Bob

    • Post Points: 5
  • Fri, Jun 20 2008 12:49 AM In reply to

    Re: Conditional Formatting - preserve format after remove cell values

     Here's a thought.

    Let's say your Conditional Format (CF) colors are Red, Yellow and Green. 

    1.  Create a new Dummy column next to your dataset

    2.  Tag the records that are conditionally formatted Red with an "R" in the Dummy column.

    3.  Tag the records that are conditionally formatted Yellow with an "Y" in the Dummy column.

    4.  Tag the records that are conditionally formatted Green with an "G" in the Dummy column.

    5.  Then create a new conditional formatting on your new dummy column that says turns all R records to Red, Y records to Yellow, and any G records to green. 

    At this point, you can remove the values you don't want to show, as the Dummy column provides the basis for your conditional formatting. 

    Cheap, but I think it will work.

    Mike Alexander Microsoft Excel MVP www.datapigtechnologies.com
    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.