I have a table which has two columns with a percentage value in each:
I would like every cell in the B column to be highlighted red if it is greater than the corresponding cell in the A column.
I have used the conditional formatting formula in cell B2:
=B2>A2
When copying down this conditional formatting formula into the rest of the cells in the B column, the formula does not auto increment. The expected behavior is that it would auto increment. E.g. in cell B3 the formula would auto increment to:
=B3>A3
When adding the formatting, I highlighted the whole B column rather than just the cell B2. I have also ensured the whole range is selected in the 'manage rules' section:
Related
I need some help in setting up my conditional formatting. Any help or feedbacks will be greatly appreciated! This is my scenario:
There is a table named WkdayPHols where it contains a specific holiday to a respective date.
On another sheet within the same workbook, I need to highlight the specific cell with this condition using conditional formatting:
If there is a matching state (in Column C), with a matching Date (Row 7), indicate that cell as 1 - as shown
Row 9 Yellow cell example - Cell C9 = VIC, Cell D7 = Date Value 43405 - no match, therefore #N/A
Green cell example, Date Value 43410 is found to be a holiday in WkdayPHols, any rows with Vic in Column C will have 1.
I have achieved that by using the array formula - as shown in the formula bar. However, I only want this condition to be presented as part of conditional formatting, by highlighting the specific cell with the given criteria (=1). But array formulas is not supported in conditional formatting.
I need the all the cells to be blank, without formulas for actual inputs.
Any solution/suggestion?
Change the formula in the cells to,
=IFERROR(AGGREGATE(15, 7, WkdayPHols[column1]/((WkdayPHols[dates]=I$7)*(WkdayPHols[state]=$C9)), 1), TEXT(,))
Use Fill Right and Fill Down, do not drag that formula into adjacent cells or the table columns will shift.
Change the cells' format to a custom number format of,
;;;
Create a conditional formattting rule based on,
=isnumber(d9)
I have a formatted table and would like to use conditional formatting to shade in cells in a column (G) based on the following conditions:
Value in column (D) must say "Pending Decommission". The value is from a data validation list. If value does not match, do nothing.
If the above is true, then check to see if value in column (G) is blank.
If both are true, then insert value "Need Deletion Date" with the appropriate cell shading. If both or either one of the above is not true, then do nothing. I've tried a few nested IFs Ands and IsBlanks but can't seem to get it to work.
I current have this in the conditional formatting formula for cell G2. Of course I would like to apply this to the entire column.
=IF($D$2="Pending Decommission", IF(ISBLANK($G$2)=TRUE,"Insert Deletion Date",""),"")
You have two distinct requirements.
Assuming G2 is blank, filter on ColumnG to select banks and in G2 enter:
=IF($D2="Pending Decommission","Insert Deletion Date","")
and copy down to suit. If G2 is not selected by the filter, adjust the row number for the formula accordingly.
Select ColumnG, clear any existing Conditional Formatting from it and HOME > Styles > Conditional Formatting > Highlight Cells Rules > Equal To...:
Insert Deletion Date
and OK.
Adjust the formatting to suit. This will format any cell containing that text in ColumnG before the addition of the formula above.
keep messing up formula trying to do a conditional format for cells in a column based on if the corresponding Row in another Column has a specific Value.
="IF+$A:$Arow() = D ?
Don't think I'm even close but I need the condition format For all of Column H to check the same Row in column A If its a D then format the cell.
Can anyone help?
Select all cells in column H, say H1 has a column header, so you select H2 to H100, click Conditional Formatting > New Rule > Use a formula to determine ...
Enter this formula:
=$A2="D"
Select a format and confirm all dialogs.
When you select all cells from H2 down, the cell H2 will be the active cell. The conditional formatting formula contains a cell address in column A with a relative row reference, i.e. there is no $ sign in front of the row number. The most important bit is that this row number must be the same row number as the active cell when you create the conditional format, so if your selection starts in a different row, you need to adjust the formula accordingly.
Is is possible in Excel 2010 to set a conditional formatting rule to highlight all not empty cells in a row when the cell in particular column has a particular value?
I have a report in which every row identify a day. I would like to colour in grey the rows relative to Saturday and Sunday. The day is stored in column C.
I know how to highlight cells in column C, but how can I easily extent the format of cell C to the adjacent not empty cells in the same row?
This is easy to do without a macro and without using INDIRECT function
Assuming you have data starting at row 2 and that the "day" in column C is a text value then do this:
Select whole range of data, e.g. A2:J100
apply in conditional formatting the formula that needs to apply to the first row, e.g.
=AND($C2="Saturday",A2<>"")
That will apply formatting to all cells in the range if col C of that row is "Saturday" and the cell itself is not blank. Note C2 needs a $ in front because it applies to C for the whole row A2 doesn't need $
If you want to apply to Saturday and Sunday the same type of formatting then use an OR, i.e.
=AND(OR($C2="Saturday",$C2="Sunday"),A2<>"")
....or if the column C entries are actual dates make that
=AND(WEEKDAY($C2,2)>5,$C2<>"",A2<>"")
See example workbook with that last CF formula demonstrated
Taking inspiration from John answer in this thread, I've used the "indirect" function on the conditional formatting.
Select Conditional Formatting
Select New Rule
Select "Use a Formula to determine which cells to format"
Enter the Formula, =WEEKDAY(INDIRECT("c"&ROW()))=1 # for Sundays
Enter the Format you want (text color, fill color, etc).
Select OK to save the new format
Open "Manage Rules" in Conditional Formatting
Select "This Worksheet" if you can't see your new rule.
In the "Applies to" box of your new rule, enter =$A$1:$J$35 (or however wide/long you want the conditional formatting to extend depending on your worksheet)
Do it again, this time inserting the Formula, =WEEKDAY(INDIRECT("c"&ROW()))=7 # for Saturdays
There is only an issue with this formula. When the cell in Column C is empty it will be read as 7, therefore the row will be formatted as if it's a Saturday. Do you know why?
Column A has a number 1-10. Column B has a string I want to highlight with conditional formatting. How do I make it so that if the number in Column A is greater than 7, the cell in the same row in Column B will automatically turn blue?
I use the conditional formatting tool for cell B1 such that, in the "Use a formula to determine which cells to format" option, I have ="IF($A1 > 7)", then fill the cell with blue.
But, as I drag/autofill down, the 1 in $A1 does not become A2, A3, A4, A5, A6, etc. as I want it to. What am I doing wrong?
Change the formula to:
=$A1 > 7
And take a look at my yoursumbuddy post, which explains why you don't need IFs in Conditional Formatting:
Select B1, then column B (This should make all the cells bluish except the cell B1, which is said to be the 'active' cell).
Open up conditional formatting and use the formula:
=IF($A1 > 7, 1)
You need to at least specify the value if true and there's no need to drag the conditional formatting down.