Alternating row backgrounds / conditional formatting in OpenOffice.org
Posted: 26 May 2011 Filed under: open source, productivity | Tags: openoffice.org 8 CommentsHave you put together an OpenOffice.org table in OpenOffice.org Calc, and wanted to display alternating backgrounds for easy reading? Well, there’s an easy way to do it.
The steps are:
- Create a style for every other row and call it “Even rows.” Make its background “Gray 10%,” or whatever other color and attributes you prefer.
- In your spreadsheet, select the range of rows you’d like to format.
- In the Format menu, click “Conditional Formatting…”.
- Choose “Formula is” in the first dropdown.
- For the condition itself, enter the formula
ISEVEN(ROW()). This formula tests if the current row in question is even or not. If it is, the condition is met and your style is applied. - For Cell Style, select the style you created back in Step 1.
- Click OK. There you go.


This doesn’t work. There doesn’t seem to actually be a way to apply cell styles to cells.
Just wanted to add that I got this method to work, but only after upgrading from oo.o 1.0.1 to LibreOffice Portable 3.34. Trying it in oo.o on WinXP causes the app to hang/wedge.
Thanks for the update. 🙂
Is there a way to do color banding on whatever is filtered (visible)?
That sounds tricky. I haven’t tried!
Great walkthrough. I am used to MS Office, so wasn’t sure how to do this in OpenOffice. You made it easy!
Nice. Isn’t it great when you find a blog post that works for ya?!
When exporting to HTML, only the first formatted row has the correct color.