Format cell fill based on a range of values - excel

Could anyone advise how to format the fill of cell based on percentile ranges? So for example, I have a row of values. I'd like to format the fill on those cells such that I have cell fill colour for three conditions: above the 90th, between 10th and 90th and below the 10th percentile. If I try to create a conditional formatting rule with a 3-color scale, I am not sure how to format the 10th to 90th percentile range.
So basically what I am asking is how to format a row of cells thresholding on a range.
Thanks in advance!

Using Excel 2013, might be slightly different path for older versions.
Highlight the cell range you want.
Home -> Conditional Formatting -> New Rule
Under New Rule, there should be 6 options, choose option Format only top or bottom ranked values. Choose Top, 10 (or whatever number you want), and click the box for % of the selected range.
Hit Format and go to Fill, and choose a background color.
Do the same thing, but now choose Bottom instead of Top.
This will highlight the top x% and bottom y%. Also, if you're open, you should also try Icon Sets and you can use Green/Yellow/Red circles or arrows to help.

Related

How to break the chains of POOR CONDITIONAL FORMATTING options in EXCEL?

use the following function to create an invoice.
=VSTACK(FILTER(PerformedTestsTable9,PerformedTestsTable9[Qty]>0,), {"","","Total sum to be paid:"})
Very simple, filtered table for Qty > 1 plus added row with VSTACK.
I use conditional formatting rules to format every other row, blank cells and the last row.
However every time I change something in the source table I get "Total sum to be paid:" left aligned in the bottom right cell. If I right align it manually it does not spill into adjacent left cell because it is not blank.
I can not add the borders I want, I can not change the font, I can not change the size of the font.
What I want is something like this:
Is there a way to achieve those results, even partially, without resorting to programming.
In pseudo-code
On Calculate
Turn off Manual Calculation
Unmerge cells that cause SPILL error in FILTER function
Reset formatting in the spill range of filter function to baseline
Calculate filter function
Identify bottom row and merge cells, right align merged cells, choose bigger font, add borders

Excel Color a cell if it is an row outlier

I want to change the color of a cell if it is an outlier in its row, and apply this to all cells in the spreadsheet. Defining an outlier as a value two standard deviations away from the mean (of the row). How could I do this?
Sample Data
Formula I have so far:
=$C$9>(N9+2*$O$9)
This is your formula for you conditional formatting:
=OR(C9>($N9+2*$O9),C9<($N9-2*$O9))
Now you will need to properly apply it to the entire range. In order to do this, follow these steps:
Select the top left corner of your data and drag to the bottom right corner. This should leave the area in a grey zone with the top left cell being a white background and also known as the active cell.
Select conditional formatting from the ribbon and use the formula to determine as you have in your screen shot.
Enter the formula above in the formula bar. Note has the row numbers are not locked in all cases and only the column are locked with $ for column N and O. The formula will adjust itself as it moves through the selected range and away from the active cell which you enter the formula on.
Set up any formatting you want applied when the value of a cell is more than 2 std away from the mean.
Proof of Concept

Excel color scale - how to insert new rows to fit in existing scale?

I have a spreadsheet of phone numbers (columns) and months (rows), and the phone charge values in the data part. I use Excel's color scale to quickly see if one of the lines has an extreme value, so I select the charges per phone, and set a color scale for EACH phone number (e.g. a color scale for B2:B19, another for C2:C19, etc.).
However, each month, I insert a new row, and again need to apply the color scale to the full ranges every time. If I copy and paste a row, I DO get a color scale, but one based only on that row (e.g. adding row 20 gives me a color range of B20, one of C20, etc.). Copying and inserting a row from the existing scale does not work.
Is there any way I can add e.g. row 20, and automatically have the included in the exiting B2:B19 color scale?
Thanks!
Ed Eichman
Cambrils, Spain
Assuming you are talking about conditional formatting, you can use the rule type "Use a formula to determine which cells to format" option with a formula like:
=IF(B3=MAX($B$2:$B$3000),TRUE,FALSE)
Then set the formatting to bold the highest value in the column.
Copy the above into the conditional formatting for B3, then after saving, use the format painter to paint the rest of the column. The formula will change for each cell in the column to read =IF(b4, =If(b5... with the range of B2:b3000 locked by the dollar signs (anchors)

Conditional Formatting Rows Based on Date

I have a table with a round 500 rows of data. I want to setup conditional formatting to highlight rows based upon how old a row is (based upon the date cell in that row). The idea is that as an entry get's older, it is entered with a white background, but as it ages, it turns a darker shade of red. We have data taken from 5 separate weeks and plan to add more. Is this POSSIBLE in Excel, or will I need to highlight each week manually?
If you are willing to have one column be highlighted, as opposed to the entire row, this example should help.
Steps to reproduce:
Highlight the column with the dates
In the Conditional Formatting menu (Under the Home Tab on the Ribbon - Office 2013)
New Rule
Format All Cells based on their values.
Choose the darkest color for the Lowest Value
Choose the lightest color for the Highest Value
OK
Note in the example below how the scale of the colors changes based on the range. When the lowest date is 2001, that receives the darkest red, but when a date from 1980 is entered, the dates from 2001 and up are considered to be in the lighter third.
The formatting applies to the entire column, so you can add as many dates as you need.
Here are some very useful tips demonstrating a number of uses for conditional formatting:
Excel formulas for conditional formatting based on another cell value
How to conditionally format dates and time in Excel - built-in rules and formulas

Excel 2007 drop-down list that effects the cell's color but not the content

I have searched for this solution and I have found many drop-down lists that can change the color and the data of the cell or change the color depending on what data is entered.
What I would like to do is have a cell with a number inside (#'s 1-10) and also have a drop-down list (pass, fail, marginal) and depending on which item from the drop-down list is selected it would change the cell's background color to red, green, or yellow, from it's default of white.
Any help would be appreciated. Thanks!
You can use conditional formatting to achieve the same. For the cells with numbers add conditional formatting
Home -> Conditional formatting -> New Rule
Select Use a formula to determine which cells to format. Now you set a formula here. You can refer to drop-down list value here to set format. (eg: if column A has numbers and column B has the drop-down, you can set the formula as =$B1="Marginal" and set the formatting.
Hope this helps.
Screenshots for reference:
I think I've found the best solution for this situation:
I had two cells side by side. One with the data and one with the drop-down box. The two cells bordered together so that they appear as one cell (even though they aren't). I then put two separate conditional formats on the two cells. The conditional format of the data cell changed the background color of the cell based on the value of the drop-down box cell. The conditional format of the drop-down box cell changed the background and text color to the same color as the other cell (to blend in) depending on its own value.
When the two cells were bordered and spaced correctly they appear as being one cell with one value. Quite a bit of work with the formatting and all but I think this may be the best option for this situation.
Thanks again, Konstant for your help. :)

Resources