Does anyone know if there is a way to replicate a cell exactly in excel, so that it has both the same value and same format? So that if the format of the 'parent' cell changes (through conditional formatting) then the replicated cell also changes format.
Thanks in advance
Let's assume the original cell is A1.
The simplest way would be to set the new cell =a1. To copy the conditional formatting, Select the original cell, a1, and select the Format Painter (on the clipboard sub-menu; looks like a paintbrush on a diagonal). (The icon will change to a paintbrush.) Then click on the new cell.
I tried this out for several types of Conditional Formatting, and it works well for the Conditional Formatting -> Highlight Cell Rules (Say, Greater than nn).
It also works well for ranges like Top/Bottom Rules or Color Scales, but you will need to copy the entire range (it won't work if you're copying a single cell because the range doesn't make sense).
Related
I have created rather complex report with multiple formulas. To keep the report clean, I decided not to show formula results if a certain cell is blank.
QUESTION:
Is there any way to 'incorporate' that check to every single formula on the said worksheet OR do I always have to do a isblank check for every single formula I am writing?
Since about Excel for Mac 2011 you have the option of a workaround, which is to blend the formatting of cells containing a formula into their background, with conditional formatting. The usual approach is to turn cell content white, on a white background. With say A4 to be the cell that either is or is not blank a CF formula rule of something like:
=AND(ISBLANK($A$4),ISFORMULA(A1))
with white fill should work for a range starting in A1.
I want to find all the cells > 100 in the area 'A1:E13', then highlight the row the cell lying. I used the new rule of Conditional formatting with formula '=$A1:$E13>100'. It seems work for a single column, but not work for an area.
Clear any existing formatting from A1:E13 select that range and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=OR($A1>100,$B1>100,$C1>100,$D1>100,$E1>100)
Format..., select formatting, OK, OK.
(Will also highlight any rows containing Text. "Row" here is five columns wide.)
Without using any addtional column, you have to use this formula for the conditional formatting :
=(MAX($A1:$E1)>100)
Please be careful with the absolute (with $) and relative references, and do not forget the () around the formula.
Please also note that you have to select your area from top to bottom, i.e. you click into A1, hold mouse button and move down and right with the mouse, and release mouse button over E13 (which is probably the natural way of doing it!); if you start from the bottom (e.g. click in cell E13 and release over A1), then you have to test in the Conditional formatting =(MAX($A13:$E13)>100). This is because the conditional formatting takes the cell which is highlighted within the selected area as starting point for relative references to evaluate the formula.
If you want to use an additional column (e.g. F) in your worksheet (which you can hide later of course), it is even easier:
- In cell F1 you put MAX(A1:E1)
- With conditional formatting ("Use a formula to determine which cells to format"), you test whether $F1>100 for your entire range.
I am trying to right rules for a spread sheet containing the NFL season. I have it set up so that I have a week in one column. At the bottom I have a cell for selecting the one team I am picking that week. When that cell is empty, I want nothing to happen to weeks 2-17. When I put a team name in that cell, I want that team name to change color with a line through it for weeks 2-17.
So far I can make the rule for the last part but when I leave the cell blank, week 2-17 all change color with a line through it. I can't figure out how to get the blank cell to trigger no action
Any time I tried formulas with =ISBLANK($B$50) in it I was unable to trigger the rule as nothing I added to it from what I seen from googling/youtubing it worked. The only conditional format I have that works is Format only cells that contain =$B$50 which applies to =$C$2:$R$48
Keep in mind I am slightly above beginner with excel formulas/rules
If the cells change their format to something with a line through it, this is either a conditional format or the regular format of the cells. In either case, remove that format.
Then select the cells that you want to format and create a new conditional format with a rule that uses a formula. In the animated screenshot I am formatting the cells from D3 to F7. Select D3 to F7 and make sure D3 is the active cell. Then use the formula
=D3=$B$7
and set a format. Note how the reference to the cell to format does not have $ signs, but the cell where the comparison value is entered DOES have $signs.
If the cell B7 is blank, no conditional format will be applied, just the regular cell format will show.
Here is a screenshot of the Conditional Formatting Rules Manager.
I want to apply a conditional formatting (CF) rule to a group of cells to individually colour them if their individual cell values are greater than a threshold (in this case >=5). To illustrate:
The top row shows how I want the bottom row to look. For the bottom row I cannot figure out how correctly format according to cell-specific formulae.
The problem is identifying a way to specify cell-specific CF formulas in a single operation for a group of cells - as you can by pasting/dragging normal cell formulas. I obviously don't want to have to manually specify the formula for each cell!
Grateful for assistance.
Select the rows or columns or range that you want to conditional format,
Enter the below formula in the formula bar in conditional format and choose a fill color,
=AND(A1>=5,ISNUMBER(A1))
If you are starting in row3, change the A1 to A3. The $ that you have in the formula makes it absolute. It should be relative.
You just select all required cells to format. Then go to conditional formatting.
Check what is the cell shown just before the formula bar (the single cell that represents the selected range, also called default cell) and use that cell in your formula without absolute reference. like B3>=5 or R3>=5
How can I get formula applied behind conditional Formatting for highlighting Cells?
Conditional Formatting is applied based on text in each cell of Test Result column(third column).
Formulas List:
Purpose is to reuse (copy paste) the formula in other sheets.
The formula is shown in your first screenshot. The dialog has the formula in the column "Rule applied (in order shown)". These rules use the out of the box settings to format cells based on their values, so the "formula" is not accessible for editing.
But the format can be copied to other cells very easily.
Here are the steps:
Select the cell with the conditional format and copy it
click the cell where you want to apply the same format
use Paste Special > Format to paste just the format to the selected cell
Edit: If you don't use the built-in conditional formats but instead select "Use a formula to determine ...", you can construct the formulas manually.
There is no automated way to convert the existing out-of-the-box rules to fomulas. You will need to use your human understanding of the logic and appy this to formulas. So, for example, if the selected cell is H3, you can us this formula
=H3="Fail"
and format the cell with red font and light red background. Note that there are no $ signs in the reference to the cell H3. If you copy that format to another cell, it will apply to that other current cell.