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)
Related
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")
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.
I'm trying to create a rule that formats a row so that it has red background color if the content of another row is "x". Unfortunately, the header and empty cells above the table will be included if I simply select =$H:$H="x" as my condition for formatting. I want something like: =$H$6:$H$(INFINITY). Is this possible?
If you want to apply the conditional formatting starting from Row6, while selecting the range for applying the conditional formatting, make sure C6 should be the first cell in the selection i.e. it should be the active cell in the selection and then make a new rule for conditional formatting using the formula given below.
=$H6="x"
Also if you are not sure how far you need to apply this conditional formatting down the rows, would be better if you format your data as an Excel Table, so when the data grows withing the table down the rows, the conditional formatting will also be carried to the new rows added in the table.
Having a conditional formatting for a unused range on the sheet increases the file size as all the rows contain the conditional formatting and the formula in the background.
You can just use =$H$6:$H$1048576 or =$H$6:$H$65536 while applying conditional formatting. A simplest way of doing this.
Your formula does lag a lot as you are searching through so many rows down. THe best thing you can do is try to limit the amount of rows to search. I.e. if you know your dataset only contains max 5000 rows, set the limit to that H6:H5000. This will help.
If the rows change a lot, the best way would be to make it dynamic. I.e. make a name range for the range you want to validate and in the name manager, change the range to include offset. This will help you set the range to be what you have data in. Note: You need to know how many rows (i.e. use counta) which you will need to figure out if there are blanks at any point. Otherwise you do the counta on a column where you have no blanks.
Hope this makes sense and easy for you.
Is there a way we can apply conditional formatting to individual cells within excel to ensure that if it contains data, it will be formatted?
For example, if data is added to any cell, that cell alone will be highlighted in yellow.
you can use conditional formatting with "No Blanks"
it will give you desired result
I have some cells with some different filling colors.I want to do the following thing: I want to use those colors in conditional formatting rules, so when I change the color of a cell, the conditional formatting color will change too.
Like in this image
In the screenshot above, there is a zone called "Legendă". So when I change the color of a cell there, the others cells with the same color will change too. The other cells have conditional formatting rule.
In general, formatting is not considered source data in Excel. The workaround, then, is to put the information in a new column.
Say you were formatting column B and wanted those colors to modify formatting elsewhere. The idea is to create another column and add your data there, and then create a conditional formatting formula for column B (and any other columns) that refers to your new data. This way, you can get as many columns as you want to respond appropriately.