+ Reply to Thread
Results 1 to 16 of 16

Excel 2007 : Copying Conditional Formatting into Multiple Ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Copying Conditional Formatting into Multiple Ranges

    Good Afternoon,

    I am working with a pivot table containing bill invoice data. In the pivot table, each row represents a different line item on the invoice with columns organized by month. I have added 4 rules with conditional formatting to a few rows to highlight any month that is outside of 2 or 3 standard deviations of the mean. My goal is to have these rules set up on all the rows. If I select the entire table, all the data will be used in calculating a standard deviation, so I have to add the rules by row. Unfortunately, I have not been able to figure out how to copy from row to row to save myself time setting up 4 rules over and over.

    Any suggestions would greatly be appreciated!

    Thanks!
    Last edited by sbtry16; 09-02-2010 at 02:04 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying Conditional Formatting into Multiple Ranges

    Are your references relative in the conditional formulas?

    Perhaps you can copy a row that has the conditions, then select the rows you want to copy to and right-click Paste Special... Formats.
    Where there is a will there are many ways.

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

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

  3. #3
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copying Conditional Formatting into Multiple Ranges

    Good idea, BUT when I do paste special it takes the criteria from the other range of cells, which I dont want. I want the data pulled for the Standard Deviation to be within the range the conditional formatting is applied to. I hope this makes sense.

    Thanks for helping!!!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying Conditional Formatting into Multiple Ranges

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  5. #5
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copying Conditional Formatting into Multiple Ranges

    Ok, this spreadsheet does not have the pivot table in it, but I still need to copy the conditional formatting to several cells. This spreadsheet shows budgeted amounts versus actuals. I would like the actuals to turn a different color if they are above the budgeted number.

    For example, I click on cell E8 and go to the conditional formatting section. I click on the first option "highlight cell rules- greater than". I then pick the value to be cell C8.

    I would like to highlight all of the actuals and apply this conditional formatting to them all at once. However, I can only compare the range to one cell at a time. That is why I would like to copy the CF.

    Thanks!
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying Conditional Formatting into Multiple Ranges

    Is the attached what you are looking for?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copying Conditional Formatting into Multiple Ranges

    YES YES YES!! Thank you. Can you explain how you did that?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying Conditional Formatting into Multiple Ranges

    The way I did it was I selected E8 to E19 and invoked Conditional Formatting through the Home menu and selected New Rule

    I selected "format only cells that contain"

    And selected Cell Value >> greater than from the drop downs and enter =C8

    which represents the cell to compare the top most cell I selected with... (E8).

    Note that there are no $ signs so that the reference is totally relative to the vertical and horizontal position it is in.

    With Conditional formatting, if you select a range and apply the formula based on topleft most selected cell, it will automatcally adjust the formula for the other cells within the selected range....

    So you could have selected all the ranges to affect at once and apply the exact same formula and it would adjust relatively.

    But I took an alternative path and after apply the above, I copied the same range, and selected all the other ranges, did a right-click >> Paste Special and selected Formats.... this has the same affect (and will copy any other formatting within the original cells.. this is why the last few columns turned blue).

    Hope that helps.

  9. #9
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copying Conditional Formatting into Multiple Ranges

    Great. I just tried that for the "Totals" row and it worked. Thank you soo much!

  10. #10
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copying Conditional Formatting into Multiple Ranges

    sorry, here is the attachment.

  11. #11
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copying Conditional Formatting into Multiple Ranges

    NBVC,
    Can you help me with this worksheet. It is the one that I explained in my first message. I would like use conditional formatting on the pivot table. Here is my goal:
    to have each row (i.e. D5:U5) have 4 rules under CF. The rules for each row will be the same. In the attached doc you will see what 4 rules i would like for each row. Instead of adding 4 rules to each row, can I somehow include all the data into the rules without using ALL ranges on data to find a standard dev?

    I tried in incorporate what you solved before but the CF on this worksheet is not based on another cell, it is based on the data with the range selected.

    Thanks again!

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying Conditional Formatting into Multiple Ranges

    I don't see an attachment.

  13. #13
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copying Conditional Formatting into Multiple Ranges

    Sorry, the attachment was too big. Here is a portion of the pivot table...
    Attached Files Attached Files

  14. #14
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying Conditional Formatting into Multiple Ranges

    I am not quite understanding the requirement....

  15. #15
    Registered User
    Join Date
    08-25-2010
    Location
    Bloomington, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copying Conditional Formatting into Multiple Ranges

    What do you mean by the requirement Do you need me to re-explain what I am trying to do?

  16. #16
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying Conditional Formatting into Multiple Ranges

    Yes.. with examples of what should be outputted.

+ 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