Dashboard Mode - Alternating row colors
Goal
Make a table easier to read by coloring every other row with a light background color.
Make a table easier to read by coloring every other row with a light background color.
| Item | Category | Price |
|---|---|---|
| Apple | Fruit | 1.20 |
| Carrot | Vegetable | 0.80 |
| Banana | Fruit | 1.10 |
| Broccoli | Vegetable | 1.50 |
| Orange | Fruit | 1.30 |
| Spinach | Vegetable | 1.00 |
=ISEVEN(ROW()) applied to the range to color even rows.+-----------------------------+ | Data Table | | (with alternating colors) | +-----------------------------+
The alternating colors update automatically if you add or remove rows in the table. The color pattern stays consistent because it depends on the row number.
Add a new row with a new item below the last row. Does the new row have the correct alternating color? Yes, it should follow the pattern automatically.
Alternating row colors in Google Sheets?=ISEVEN(ROW()) returns TRUE for even rows, perfect for shading every other row.=ROW() returns row number, not TRUE/FALSE; =COLUMN()=1 checks columns, not rows; =SUM(A1:A10) sums values, unrelated to row shading.=ISODD(ROW()) applied for alternating row colors starting from row 2, which rows will be shaded?=ISEVEN(ROW()) for alternating row colors but no rows are shaded. What is the most likely reason?=ISODD(COLUMN()) shades columns, not rows; alternating colors do work on rows.=MOD(ROW()-2, 3) = 0 returns TRUE for rows where (row number minus 2) is divisible by 3, matching rows 2, 5, 8... Others either shade every even/odd row or columns, not every third row.Pass the test and this pattern moves unknown