Row coloring in frozen columns

How do you alternate row coloring for frozen columns? It seems impossible.

iMac 21.5″

Posted on Jun 24, 2023 1:18 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 24, 2023 10:41 PM

Quality idea.


Here is a similar way that requires only one extra column and does not have the problem with blank cells.



Formula in D2 =IF(ISODD(ROW()),CHAR(10000),"")

fill down to complete the column


Create the highlighting rule for all the cells in the header column(s):

  1. Select all the cells in the header column(s) except those in header rows and footer rows. For my table it is A2:A22.
  2. Start making a conditional highlighting rule
  3. Use the rule "Text ends with"
  4. In the box where you put what it ends with, click the green oval
  5. Click on cell D2
  6. Add a $ so it is $D2
  7. Click on the green checkmark to accept it
  8. Choose "custom style". If you have an odd number of header rows, make the background the lighter of the two alternating colors. If an even number then make it the darker of the two.
  9. Click Done


Format the same cells of column A (A2:A22 for my table) to whatever the other alternating color should be.

Hide the column with the formulas.


CHAR(10000) is a little pencil icon. I chose it because it is unlikely to be found in a spreadsheet, which is a requirement for this method to work.


4 replies
Question marked as Top-ranking reply

Jun 24, 2023 10:41 PM in response to Yellowbox

Quality idea.


Here is a similar way that requires only one extra column and does not have the problem with blank cells.



Formula in D2 =IF(ISODD(ROW()),CHAR(10000),"")

fill down to complete the column


Create the highlighting rule for all the cells in the header column(s):

  1. Select all the cells in the header column(s) except those in header rows and footer rows. For my table it is A2:A22.
  2. Start making a conditional highlighting rule
  3. Use the rule "Text ends with"
  4. In the box where you put what it ends with, click the green oval
  5. Click on cell D2
  6. Add a $ so it is $D2
  7. Click on the green checkmark to accept it
  8. Choose "custom style". If you have an odd number of header rows, make the background the lighter of the two alternating colors. If an even number then make it the darker of the two.
  9. Click Done


Format the same cells of column A (A2:A22 for my table) to whatever the other alternating color should be.

Hide the column with the formulas.


CHAR(10000) is a little pencil icon. I chose it because it is unlikely to be found in a spreadsheet, which is a requirement for this method to work.


Jun 24, 2023 9:03 PM in response to remi sf

Hi


Here is one way to make it automatic. Here is a table with Alternating Row Colour (I chose "Silver" from the Colour Wheel). Two Header Columns (columns A and B). Headers are filled with "Mercury" from the Colour Wheel.


Add extra columns on the right (columns E and F) as "helpers". You can hide these extra columns when all is working well.


Formula in E2: IF(ISODD(ROW()),A2,"")

Fill right to F2 and fill down to the bottom of the table.

That will copy the contents of the Header Columns if the row number is odd.


Conditional Highlighting. Select the header cells as so:



One note, if the Header Columns do not contain entries, this method does the opposite of what you want.



But if the Header Columns are blank, that makes no sense!


Regards,

Ian.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Row coloring in frozen columns

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.