I am struggling to create a formula for a table with conditional formatting where I compare a cell in one column (Items) to another cell in a separate column (Need items 3 or higher). I don't want to highlight the entire row, but I do need to format the cell so it changes.
Mock Image of what is needed:
I'm currently trying to use =OR($A$2:$A$78="Item 1",$A$2:$A$78="Item 2")
What is wrong with the above condition?
In conditional formatting you no need to mention full range of cells. Rather use first cell. Excel will automatically check for other cells based on applied cells. Try this function in custom CF rule-
=OR($A2="Item 1",$A2="Item 2")
Related
I have the following function in A15
=FILTER(FILTER(AllStaffProjectAllocationTbl,AllStaffProjectAllocationTbl[Project Name]=A2), {1,1,1,0,1,0,0,1,0,0,1})
And the conditional formatting Rule
=MOD(ROW(),2)=0
Applied to
=$A$15:$F$22
as set out in the image
Is there a way to make the conditional formatting continue to work as the data gets bigger and only if there's something in the row?
Used the following formula to check if there is no entry in the first column to determine whether to use the conditional formatting to set the row colour, ultimtely stopping after the last row with valid data in it.
=AND($A15<>"",MOD(ROW(),2)=0)
I am aware of using MAX for conditional formatting however I am confused about how to compare two different columns. I would like to use conditional formatting to compare data/value from columns B and Columns E, then highlight the highest value in each row based on these two columns. I wonder if this is possible?
It does not seem working for this:
enter image description here
You can use conditional formatting to achieve this:
Select the entire range (for example, B1:E10)
Add a new conditional formatting rule.
Home >> Conditional Formatting >> New Rule >> Use a formula to determine which cells to format:
=($E1>$B1)
=($B1>$E1)
Just make sure you type the Formula rather than selecting the cell, or you will have the $ symbol in the reference, which you don't want in the row reference.
So highlight the largest value in each row? That is possible using conditional formatting.
For example, if your entire data frame is in A2:B11, first do =B2>A2 then =A2>B2.
The steps for conditional formatting are below:
highlight the full column of cells you wish to format (in this case, say A2:A11)
Home->Conditional Formatting->New Rule->"Use formula..."
Enter the above formula (being sure to unfreeze column and row references)
Format->Fill->Select Color->Okay->Okay
I am looking for a function that I can use within CONDITIONAL FORMATTING that checks whether the contents of a range of cells, appears in another range of cells, and if so they must be highlighted using conditional formatting.
I cannot use the actual data, but here is an example:
Suppose I have the following table:
I want to use a Conditional Formatting formula that essentially checks whether the cells in column C contain any part of the text within Column A. The desired result would be this (I have done this manually for the purpose of the example):
Anyone have any ideas on a formula I can apply in Conditional Formatting to achieve this?
Many thanks!
Select range "A2:A6" starting from A2 so that A2 is your active cell.
Insert =MATCH("*"&A2&"*";$C$2:$C$6;0)into the conditional format formula field.
The result should match your second picture.
I wish to create a conditional formatting rule such that the values in column D are bold if the cells in A contain the word Total. Below is an image of what I wish to achieve.
I understand how I can apply conditional formatting to a cell that contains specific text however how can I apply this rule such that it occurs if another cell contains this specific text. Since there is no "contains" function I'm unsure how to achieve this.
Use formula in CF:
=RIGHT($A1,6)=" total"
apply to range $A:$D
I have an array of data that I want to conditionally format per row.
The result I need:
(highest value in each row marked in red)
Not like this:
(highest values overall marked in red - notice e.g. the values for row "C")
I have managed this by writing a simple macro, which basically copies conditional formatting for each row (if you are interested, I found this here: Copy conditional formatting from one cell to another using VBA?)
Now, I was wondering, would I be able to achieve the same but just somehow changing formula in conditional formating and/or "Applies to" range.
As I said, the problem itself is solved, but I'm just curious.
yes you change the formula and/or the range for a cfr in vba.