I have a code generated spreadsheet which has the following data:
Col:A B C D
Sect | Lbl | Data1 | Data2
===================================
Sec1 | Lbl1 | 1 | >50
-----------------------------------
Sec2 | Lbl2 | 2 | 1
I have a conditional format rule in place to say that if Data1 is greater than Data2 then make the cell background colour red in the Data1 column. If the data is >50 I extract the 50 in my formula. I ignore the first row and the first 2 columns as they aren't needed for this formatting.
Apply to range: C2:Z1000
Custom Formula is: =AND((1*REGEXEXTRACT(D2,"\d+"))<(1*REGEXEXTRACT(C2,"\d+")))
This seems to work ok.
Next step is some new data is inserted between column B and C in the existing spreadsheet (my newest data is always on the left)
Col:A B C D E
Sect | Lbl | NEWData| Data1 | Data2
==========================================
Sec1 | Lbl1 | 9 | 1 | >50
------------------------------------------
Sec2 | Lbl2 | 3 | 2 | 1
So as you can see, the new data is now in column C and everything has shifted over 1 column. The rule now affects column D (with no change to the above set up). I want it, however, to affect all columns C onwards so:
NEWDatavalue is red if greater thanData1value on this rowData1value is red if greater thanData2value on this rowData2will always be unformatted as it has no value to compare on its right-hand side.
Every time I add a new column (in column C's position) I want the colouring to be updated for all applicable columns data.
Side Note: I also have another similar rule which colours the cell green if the value is 'less than' as opposed to 'greater than'. This will also be applied once I get this rule working.