Multiple criteria conditional formatting in a PivotTable - excel

Can you apply conditional formatting comparing multiple criteria (e.g. two pivot table columns)?
I have a PivotTable in Excel 2013 that compares variable percentage rates and their corresponding values. I want to apply conditional formatting to the PivotTable by highlighting each cell that is greater than the adjacent percentage rate in red, and less than in green. My goal is to apply the formatting to all cells in the column so that I can apply filters.
Below is an example of what I am trying to accomplish:

Select the column to be highlighted and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true:
=G1>F1 with red colour
=G1<F1 with green colour
leaves equal values without highlighting. If bothered by highlighting of column label or other cells, select a cell without formatting and Copy, Paste Special, Formats over the top of those.

Related

Conditional formatting based on cell in different column but same row

I apologize if this has been posted, but I haven't found a solution that works.
I have an excel sheet with a lot of data.
I want to make the cells in a certain column (column CG) turn purple if the value of a cell in a different column, but equal row is "no". For example, I want the cell in column CG row 140 to turn purple if the cell in column CS row 140 is no. I want this to happen for every cell in the column. I tried to set up a conditional formatting rule such that the rules applies to =$CG$4:$CG$200 and for the formula I've tried $CS=no, $CS="no" $CS4="no" and $CS4=no with the formatting just being a purple highlight. I've tried hitting apply and ok, but nothing works.
I used these link to determine what to do for my rule.
Conditional formatting based on other column
Excel Conditional Formatting based on Other Column
Any suggestions?
Simply highlight the entire column "CG" then open the CF dialog.
Select the option Use a formula to determine which cells to format and type in the following formula:
=$CS1="no"
Then proceed to set your formatting, in your case, a purple fill.

Excel conditional formatting: color based on comparison of values in a row

how can one format the color of cells according to their values in that row? In this table, I want to give red for the most expensive carrier, green for the cheapest one and orange fro the middle range one, for each row:
After conditional formatting, it should look like this:
Thank you!
Apply Graded Color Scale conditional formatting, but set the Applies to range to =$B$2,$E$2:$F$2
Then use format painter to copy this conditional formatting to the rows below. You'll end up with a separate rule for each row:
Format your colors to suit.
Another way with just two rules is to 'standard' fill with orange as much of ColumnsB, E and F as required, select and clear any CF rules from B:F then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(B1=MAX($B1,$E1,$F1),B1<>"")
Format..., select red Fill, OK, OK.
Add another formula rule of:
=AND(B1=MIN($B1,$E1,$F1),B1<>"")
with green Fill.
Select ColumnD and Clear Rules from Selected Cells.
In case of ties green will have precedence, unless the rule order is reversed.

Excel 2016: Format cell based on whether two other cell colors match

Is it possible to use conditional formatting to color a cell if the colors of two other cells match each other?
There is no formula that can read what color a cell is. Color is not data. don't use cell fill as metadata. Instead, use conditional formatting with logic that can be applied further down the calculation chain.
So, instead of coloring cells yellow manually and then trying to figure out a way to sum all cells where the next one over is yellow, use conditional formatting to set the cell yellow based on a status or value in another, corresponding cell. Then you can use that status or value in the corresponding cell to determine if the cell should be included in a further calculation like a conditional sum.

Format row based on text length

I need to sort out one macro. I have table and need to highlight a row with a color, but not the entire row, just from columns A to J when text in one of the cells in column A is longer than 4 digits-letters.
I don't want to use conditional formatting.
Can somebody please advice if it's possible?
To do so with Conditional Formatting, select ColumnsA-J then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=LEN($A1)>4
Format..., select highlighting OK, OK.

Condition formatting of cells in one range that do not equal cells in the same row of another range

I'm trying to set up a formula or rule (don't know which is the best to do this) in Excel 2010.
I have values in "D10:D80", which I parse daily from the web, in the format (¥ 15,792) and values in the same format in "O10:O80". I would like conditionally to format the entire "D" cell (to became red) if the price in the "O" column is different from the price in the corresponding row of Column "D".
Select the range you want to format (ie D10:D80 - though entire ColumnD is possible is you wish) and HOME > Styles, - Conditional Formatting, New Rule..., Use a formula to determine which cells to format, Format values where this formula is true::
=$D10<>$O10
Format... select your formatting (red), OK, OK.
Please see below image, select the first cell to format then conditional formatting.
I've added (badly draw) arrows on to the settings and the formula you need to use. this will work. after that copy the formatting down the page :)

Resources