conditional formatting is not retained - excel-formula

I have a conditional formatting rule in place that says "If cell Q4 is blank, format the cells so that all cell's fill, borders, shading, etc. are also blank, so that it appears as if there is no content present, and is formatted accordingly. This cleans up the look of the report if content has not been added yet. When Q4 is not blank, the conditional formatting rule is not applied, and there is some significant formatting I have done on that range of cells. See the attached picture for what I hope to be a better explanation of the intended function. All of the cell formatting is not applied (appears as a blank sheet) if the highlighted cell (Q4) is empty.
My issue is, when I scroll down so that the cells that are affected by the conditional formatting are no longer in view, and then scroll back so that they are in view, the conditional formatting keeping the cells with no border, shading, fill, etc. is not retained for some, but not all, of the cells in the desired range. What is even more strange is if I click out of excel (into a browser window for example) and then back into excel, one additional cell no longer has the conditional formatting applied that keeps it blank. If I go into the cell that controls the visibility of the affected cells (Q4) which is already empty, and press delete, the conditional formatting gets applied until I scroll out of view and the process repeats itself. Any suggestions on correcting this excel bug? The data is not formatted as a table, so unchecking banded rows is not applicable, and I have made sure that EnableFormatConditionsCalculation is set to TRUE in the VBA, where were the two solutions that I found online to fix this same issue.
Correctly functioning conditional formatting shown, where because Q4 is not empty, the cell formatting is visible (conditional formatting to make the range of cells appear blank is not applied)

There is some subtle cause for this. Might Q4 have an invisible space character? If it does, you can change the conditional formatting rule to =LEN($Q$4)=0. Also, did you 'anchor' cell $Q$4 within your formatting formula? Did you intend for the blank cell condition to follow your data per row- Q4....Q5...Q6? If so, Q4 should be relative. You do not show your actual conditional formatting formula. It will help greatly to include your formula itself.

Related

How to delete conditional formatting from a "dragged" cell

I have a cell with conditional formatting.
I drag that cell to the one on its right. As a result, the value gets copied and the conditional formatting too.
Then I remove the conditional formatting from that second cell, but as a result, the conditional formatting of my first cell gets deleted too.
How can I delete the conditional formatting of a dragged cell without deleting the conditional formatting of the original cell?
Is this a bug?
You can do it in two ways.
Copy data and paste as values.
If you drag cells then value and formats will be copied. After dragging select cells you want to remove format. Then From Home tab Editing section clear formats only. See the below screenshot for better understanding.

Conditional Formatting Rule Not Working on One Cell

I have a perplexing problem with one of my Excel spreadsheets. I have a "task list" spreadsheet, with conditional formatting to highlight items that are near their due date and overdue. One cell in my entire worksheet is not allowing the conditional formatting, and I am not sure why. It does not matter what is in the cell.
I have tried:
deleting the table row
deleting the entire row
re-typing the cell
re-sorting the cells
deleting and re-creating the rule
verifying that the rule is applied to that cell
Any ideas as to what is causing this?
The affected cell is D5. You can download the spreadsheet here: Google Drive download link
Since that's cell D5, instead of ROW()>5 you should use ROW()>=5.
Also "before today" would be <TODAY() . The +1 makes it "before tomorrow".
It's kind of unusual to have a row number in there at all. I assume you did that so you could apply the format to the whole column but if the extra cells are not dates (like, are just titles) then they shouldn't be affected by the conditional formatting.
If it was me, I would clear all the formatting from that column and in D5 add the simple conditional formatting criteria =D5<TODAY(), then copy that cell, click heading D to select the entire column, Ctrl+Alt+V and Paste Formats.
Better yet, only apply the Conditional Formatting to the cells that need it, not the whole column. Conditional Formatting increases the file size and slow down calculation more that one would think. (I was argued that but was proven wrong!)

Excel 2007 keeps changing conditional format row reference to 1048576

I'm constructing a series of spreadsheets that will be used as a checklist and setting up conditional formatting so that if a particular item has been checked, a user enters "y" in the next cell over and both the cell containing the checklist item and the cell containing the "y" both turn green.
For example, if column A contains the list items, column B will be blank to enter "y" as items are completed. I'm setting up conditional formatting with the formula: =$B2="y" and selecting to apply this to =$A$2:$B$50
This all works perfectly when I have it set up in the Conditional Formatting Rules Manager window, but as soon as I click ok or apply, Excel ruins all of my formulas. It changes the formula from =$B2="y" to =$B1048576="y". It doesn't stop me from editing the formula and changing the value back to 2, but I'm not sure why it is doing this. I believe it is that same number every time, but honestly I haven't kept track.
As I have to apply this formatting to ~50 workbooks, this is getting super annoying. Anyone know what the cause is or how to make excel stop messing with my formula?
My excel level is probably basic/intermediate
PS. My workplace refuses to upgrade to modern software and we're stuck with office '07. If this is an excel bug I might be able to use that as some leverage to finally get an upgrade, any info would be helpful.
your formula is fine, however change your application method. To make your life easier, delete your current entry as the formula is rather short. if the real formula is complex, consider editing the formula and then copying it to memory before deleting it.
When assigning conditional formatting with a cell reference that is not locked, I select my table or ranges first and then make sure the left most upper cell is the active cell.
I then enter my formula in conditional formatting and hit apply. The cell in the formula will adjust itself based on what the active cell was when it was entered it seems. When I have done this and the active cell was in the bottom right corner of my selection, I would get really screwy (technical term) numbers in my formula after and the conditional formatting would not work as intended.

Using the filling color of cell in conditional formatting rules

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.

Replicate cell in excel

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).

Resources