+ Reply to Thread
Results 1 to 6 of 6

Thread: Maintaining conditional format when condition no longer met

  1. #1
    Registered User
    Join Date
    01-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Maintaining conditional format when condition no longer met

    Hi,

    I see from searching the forums that similar questions to this have been posted before, but can not find a satisfactory answer. Here's the problem: I have a large excel sheet that has conditional formatting for column heads that reference a condition at the top of the sheet..eg. if cell value (at top of sheet) is equal to "f", make column head red and bold. This spreadsheet gets split up in to mulitple smaller excel tables without the condition lines that are present in the large file. I want to maintain the conditional format in the smaller tables. I've tried copy pasting the conditional format and I've tried copy pasting format then removing the conditional format. Trouble is the formatting is still lost once the spreadsheet is divided up. Is there any solution to this problem?

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,564
    Hi, and welcome to the forum.

    You don't say whether you are copying the CF cells to other worksheets, but if so, as far as I'm aware you can't use references to other sheets (or workbooks) in CFs.

    However you should be able to copy CFs within the same sheet. Just make sure you make the reference to the 'f' cell at the top of the sheet an absolute reference in the CF formula.

    i.e. use

    =$C$1="f'
    rather than just
    =C1="f"
    HTH

  3. #3
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636
    If you attached a sample workbook showing your desires, then it would be easier to understand...

    but you could name the range that you are referencing in the Conditional Format...this way it can be used in other sheets within same workbook...

    If you are using the same sheet, then check that your condition points to the same cell after you copy/pasted it.... it may need to be made absolute (frozen) by adding $ signs in front of the row/column references (.e.g. $C$1 makes C1 frozen).
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  4. #4
    Registered User
    Join Date
    01-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2
    the problem is that the large spreadsheet with the conditional format is chopped up into small tables, each of which does not have the original line on which the condition was based. I was hoping there was a way to copy/paste the format created in the original sheet by the conditional format without leaving it conditional. All paste special variations fail to carry over the conditonal format as does paste formats follwed by manual removal of the conditional format.

  5. #5
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    You can use macros for conditional formatting..
    The formatting done by macros will remain even if condition has been removed

  6. #6
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,564
    Hi,

    Did you follow NBVCs advice about naming the cell that contains the 'f' reference, and using this name in the Cond. Format, 'Fomula Is' option?

    The cell containing the CF should copy and paste to other worksheets as you require.

    Rgds

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0