Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Conditional formatting disappears when cell contents deleted

I'm having a problem with a conditional format formula disappearing from a cell when I paste another cell's contents into it and then delete the content.

I always thought that conditional format formulas were separate from regular cell contents (like numbers, text, formulas). So if I have a conditional format in a cell, then put some content in it, then delete the content, the conditional format should still apply to that cell.

I have a red border conditional format in a cell, that says if the cell 0 (i.e., if there's content in it) the border should not appear. The CF rule works fine, and when I paste the content of another cell into the CF cell the border disappears as it should. But then, if I delete the content, the CF format disappears from the cell: The Conditional Formatting Rules dialog box shows no formula is in that cell.

The cell whose contents I copied had no conditional format.

In case it's useful, here's the CF formula:

=IF(AND($K$1920,$L$1920,$M$192=0),TRUE,FALSE)

All cells involved have a standard format as well; they're all date formats. I'm using Excel 2007.
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by wardw View Post
I'm having a problem with a conditional format formula disappearing from a cell when I paste another cell's contents into it and then delete the content.

I always thought that conditional format formulas were separate from regular cell contents (like numbers, text, formulas). So if I have a conditional format in a cell, then put some content in it, then delete the content, the conditional format should still apply to that cell.

I have a red border conditional format in a cell, that says if the cell 0 (i.e., if there's content in it) the border should not appear. The CF rule works fine, and when I paste the content of another cell into the CF cell the border disappears as it should. But then, if I delete the content, the CF format disappears from the cell: The Conditional Formatting Rules dialog box shows no formula is in that cell.

The cell whose contents I copied had no conditional format.

In case it's useful, here's the CF formula:

=IF(AND($K$1920,$L$1920,$M$192=0),TRUE,FALSE)

All cells involved have a standard format as well; they're all date formats. I'm using Excel 2007.
Use "paste special" and either "values" or "formulas" as appropriate.

That way the conditional formatting will remain.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Conditional formatting disappears when cell contents deleted

Hi,

Am Sat, 21 Jul 2012 17:04:30 +0000 schrieb wardw:

I'm having a problem with a conditional format formula disappearing from
a cell when I paste another cell's contents into it and then delete the
content.


if you paste another cells contents you paste all, also the cells
format. Therefore the CF disappears. Copy the cell and then Paste
Special = Paste values.
And the formula for CF you can shorten:
=AND(K192*L1920,M192=0)

Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #4   Report Post  
Junior Member
 
Posts: 2
Default

Thank you, Spencer101 and Claus Busch; I'm now using Paste Special = Paste Values and the CF remains in the cell. And thanks for your shorter formula, Claus; it works fine.





Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Sat, 21 Jul 2012 17:04:30 +0000 schrieb wardw:

I'm having a problem with a conditional format formula disappearing from
a cell when I paste another cell's contents into it and then delete the
content.


if you paste another cells contents you paste all, also the cells
format. Therefore the CF disappears. Copy the cell and then Paste
Special = Paste values.
And the formula for CF you can shorten:
=AND(K192*L1920,M192=0)

Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional formatting using part of the cells contents Duey Excel Discussion (Misc queries) 3 April 28th 10 10:04 AM
conditional formatting based on cell contents marcia2026 Excel Programming 3 September 26th 08 07:22 PM
Conditional Formatting - For 1 cell based on contents of any cell DJH Excel Discussion (Misc queries) 3 September 12th 08 10:12 PM
Conditional Formatting/Contents THINKINGWAY Excel Worksheet Functions 3 December 28th 07 08:25 PM
conditional formatting "if part of cell contents contains string" tom ossieur Excel Worksheet Functions 1 March 13th 07 11:11 AM


All times are GMT +1. The time now is 03:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"