I'm trying to find an easier way to apply two separate conditional formats to a range of cells within multiple rows. Going through and manually applying these settings for as many rows I have to do is going to take forever, otherwise.
So, I recorded a macro for three of the row ranges and created both conditional formats for each row range and below is what I ended up with.
These are the first 3 rows of ranges. For this sheet, I need to apply these same CFs to rows 9 through 77. On the next sheet I have to do, the same CFs will need to be applied to 144 rows and the last sheet I have to do will have 34,560 rows that needs these CFs applied. As you can imagine, manually applying every CF individually to each row range will take an eternity to complete. So here I am, hoping you can help save me from weeks or months of tedious, mind numbing work.
I thought that maybe there is a way to modify the code above to make it loop through a range of rows, each row having it's own range of cells within it to change, and apply the two conditional format rules.
The rows in this case are rows 6 through 77. Each row uses the same basic range, such as B6,D6:J6 or B7,D7:J7. As you can see in the code above, there are two formulas for criteria pertaining to each CF for each row range. For row 6 the formulas are =$K$30>0 and $K$30<1. $K$30 will remain constant for every row range while the > and < numbers will increment by 1 each for every row range. So, row 7 formulas would be $K$30>1 and $K$30<2 and row 8 formulas would be $K$30>2 and $K$30<3, and so-on until completed through row 77 for this sheet.
Let me know if you need any other information, and thanks for your help.
Bookmarks