Apr 29 2019 04:01 PM
Hello,
I want to create conditional formatting that would highlight a cell based on the previous cell in the same row, and the formatting can be applied to the entire table.
Example 1: I want cell F3 to be highlighted yellow if the current cell is greater than the previous cell AND the previous is not equal to zero.
Example 2: If the previous cell was 0, and the current cell has a value, I want the cell to be highlighted green.
Example 3: If the previous cell had a value, and the current cell is 0, I want the current cell to be highlighted red.
Is this possible?
Apr 30 2019 02:07 PM
Solution
That could be like
=(E2>D2)*(D2>0)*(COLUMN()<>COLUMN(INDIRECT("Table1[[#Headers],[f18]]")))
for the yellow rule and similar for other (see attached file). Last multiplier is to exclude first column, or you may apply rules to your table starting from the second column.
May 01 2019 11:32 AM
Thank you so much for the help! It worked for me.
Followup question: Is it possible to create an intuitive/automated version of this conditional formatting, that it will automatically format new columns added to the table?
Again, thank you!
May 01 2019 12:58 PM
@charmbrooksrunning , you are welcome
If you add the column through this menu
conditional formatting range will be automatically expanded.
However, if you start adding data to the right of the table, new column will be added to the table automatically, but this time without the expanding of the conditional formatting range.
May 01 2019 04:18 PM
May 02 2019 03:57 AM
@charmbrooksrunning , you are welcome
Aug 22 2019 02:01 PM
@Sergei Baklan can you automatically populate cell based on words? Example: if PASS if typed into cell it auto goes to green fill. And if FAIL if typed, it goes to red fill?
Aug 22 2019 02:16 PM
Could you please clarify what do you mean under "goes to green fill"? Is it to change this cell color or move the content of the cell to another cell colored green?
Aug 23 2019 08:53 AM
The example below in the test result column. I was wondering that if it was possible that when PASS was typed or FAIL was typed that it would fill the cell with the appropriate color.
Aug 23 2019 08:54 AM
Aug 23 2019 01:09 PM
Let assume your Test Result column is L. Select entire column and create conditional formatting rule with formula
=$L1="PASS"
it looks like this
Add same way another rule for "FAIL"
Aug 28 2019 08:50 AM
@Sergei Baklan thank you so much. This will save me so much time when processing my reports. You are great at this.
Aug 28 2019 01:17 PM
@CROSSCONNECTIONBWOOD , you are welcome
Apr 30 2019 02:07 PM
Solution
That could be like
=(E2>D2)*(D2>0)*(COLUMN()<>COLUMN(INDIRECT("Table1[[#Headers],[f18]]")))
for the yellow rule and similar for other (see attached file). Last multiplier is to exclude first column, or you may apply rules to your table starting from the second column.