+ Reply to Thread
Results 1 to 6 of 6

Copying conditional formatting formulas

  1. #1
    Registered User
    Join Date
    12-11-2013
    Location
    Venray, holland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Copying conditional formatting formulas

    Hi all,

    I've actualy already done what I needed to do, but as this is a very sensitive document I would like to know WHY it worked, just to be sure it will remain functional when used over and over...

    I have a column of percentages and created three conditions in the conditional formatting rules to show if the percentage adheres to our standards:

    If C2 is smaller than 72%, E2 will turn red =C2<72%
    If C2 is between 73% and 91%, E2 will turn orange =AND(C2<91%,C2>73%)
    If C2 is larger than 91%, E2 will turn green =C2>91%

    I've copied this to all other rows below using the Format painter and it works perfectly on every cell.

    How ever, if I select a cell lower down (for example E16) and look at the specific conditional formatting for that cell, the formulas remain the same. In the formulas, it still says they're based on the first row (C2). However, the resulting color formatting does match cell C16, as it should.

    How and why does this work?

    Thanks in advance for your help!
    Last edited by AndieArbeit; 12-11-2013 at 05:42 AM. Reason: Stupid mistake

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Copying conditional formatting formulas

    Hi and welcome to the forum

    Instead of using the format painter, you can just specify the range in the "applies to" box for each rule.

    The reason that each row;s CF seems like it is looking at C2, is because that is where the initial rule is being set - all other rows withing the CF range take their queue from that cell, so all is well, thats how it is supposed to work
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-11-2013
    Location
    Venray, holland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copying conditional formatting formulas

    Hi Ford,

    Thanks for the welcome and quick response!

    I see I've made a huge mistake in the orginal post, mixing up rows and columns. Hadn't had my coffee yet I've corrected it, could you please have another look?

    If I understand correctly though, the CF takes it's intructions from that first initial rule (based on cell C2). When you copy it down using format painter, it then takes the info from the cell in the column it initialy refered to, but applies it to the specific row it's painted to? Even though the formula still reads it's refering to C2, it actually refers to C16?

    I'm so sorry if the question is a bit vague and confusing, English is not my native language
    Last edited by AndieArbeit; 12-11-2013 at 06:29 AM.

  4. #4
    Registered User
    Join Date
    12-11-2013
    Location
    Venray, holland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copying conditional formatting formulas

    I've added a screenshot to show what I'm talking about. I've selected cell E16 and brought up the screen showing the formatting rules. As you can see, the cell is colored orange as it should, but the formulas still refer to row 2 in stead of row 16...Example.jpg

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Copying conditional formatting formulas

    OK so are you saying there is a problem?

  6. #6
    Registered User
    Join Date
    12-11-2013
    Location
    Venray, holland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copying conditional formatting formulas

    Hi Ford,

    No, it works as it should. I am just curious why it does work propperly, seeing as the formula (as seen in screenshot) still refers to "C2" as a refference, but it actually displays the CF result for C16 (as it should).

    This just to ensure it will continue to work propperly when copied time after time. This will be a global document and I don't feel like running in to surprises later on

+ 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. Replies: 3
    Last Post: 07-10-2012, 09:50 PM
  2. Replies: 3
    Last Post: 06-12-2012, 02:31 PM
  3. Replies: 1
    Last Post: 09-14-2010, 03:45 AM
  4. automate the copying of formulas and cell formatting
    By peri1224 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-01-2009, 12:03 PM
  5. [SOLVED] Copying Abolute formulas and conditional formats
    By Jerry Foley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2005, 03:06 PM

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.6.0 RC 1