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 03:04 PM.
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.
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.
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!!!
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!
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.
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!
Is the attached what you are looking for?
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.
YES YES YES!! Thank you. Can you explain how you did that?
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.
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.
Great. I just tried that for the "Totals" row and it worked. Thank you soo much!
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!
sorry, here is the attachment.
I don't see an attachment.
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.
Sorry, the attachment was too big. Here is a portion of the pivot table...
I am not quite understanding the requirement....
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.
What do you mean by the requirement Do you need me to re-explain what I am trying to do?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks