+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting: Copying and pasting a whole row chops up the defined range!

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Conditional formatting: Copying and pasting a whole row chops up the defined range!

    Hi!

    I have applied conditional formatting to column A. The range defined in the "Manage rules" section of "Conditional formatting" is Sheet1!$A:$A.

    I can insert a row in the workbook and the range defined will still be Sheet1!$A:$A. But if I copy more than one cell of a row and paste the copied cells above or below, the defined range gets chopped up. Example: If I copy cells A11:C11 and paste them onto A10:C10, I get two rules instead of one in the "Manage rules" section; one for the range Sheet1!$A10 and one for the rest of column A: Sheet1!$A$1:$A$9;Sheet1!$A$11:$A$1048576.

    Is there a way to keep the rules and ranges as they were first defined even if I copy and paste cells onto each other?
    Last edited by Marbleking; 08-30-2011 at 02:17 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional formatting: Copying and pasting a whole row chops up the defined rang

    Copying and pasting will not screw up that formatting. Cutting and Pasting will. The safest bet is to copy and Paste Special Values which leaves formatting of new cell the same as it was initially.
    When you cut and paste, you cut the format from the original cell also so that cell no longer has your conditional formatting.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Conditional formatting: Copying and pasting a whole row chops up the defined rang

    Thanks, ChemistB.

    I didn't do my homework; there are several options in Paste Special that will do the trick for me;

    1. Paste Special>Formulas
    2. Paste Special>Formulas and number formats
    3. Paste Special>Merge conditional formatting

    All of these leave the range defined for the conditional formatting as I want it to be and at the same time copies and updates formulas that I have in various cells in the row.

    Best regards,
    MK

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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