Formatting cells in OpenOffice.org Calc

December 29th, 2006 by Bruce Byfield

I've seen spreadsheets that are basically interactive tutorials, and many more loaded with what Edward Tufte refers to as "chartjunk" -- embellishments that do nothing to make the presentation of information more effective. Yet, generally, spreadsheets are treated pragmatically. Certainly, few people worry about their layout than the layout of text documents. Still, even if you share this attitude, learning the basic formatting options for cells in OpenOffice.org Calc can be worth your time. Many of the options directly effect how you interact with spreadsheets, and even the purely visual ones can make your lists and calculations easier to read at a glance.

If you just want a quick splash of color, you can format an entire sheet by selecting Format > Autoformat, or the Choose Theme icon (which seems to have disappeared in the default settings, but is retrievable via Tools > Customize > Toolbars).

However, although you can save your own autoformats, for versatility, nothing beats using cell styles and creating your own default template. Styles aren't as much a necessity in Calc as they are in Writer, since you can still access features even if you don't use them, but they are just as much time-savers, especially if you continually use the same designs.

As in Writer, styles in Calc are available by selecting Format > Styles and Formatting or by pressing F11. If you insist on manual formatting, the same options are available using Format > Cells. The options for each style include both visual and functional formatting, although the style window, unfortunately, isn't organized with those distinctions in mind.

What options should you choose for your cell styles? Without marching through every single option, here are some you should consider whenever you design a spreadsheet.


Visual Formatting

The cell style window focus largely on visual formatting. Visual options are available on five tabs: Font, Font Effects, Alignment, Borders, and Background, all of which you'll find elsewhere in OpenOffice.org.

Tastes differ, but, for me, the most essential of these tabs is Alignment. In a holdover from the earliest days of the personal computer, Calc, like any spreadsheet application, defaults to displaying only a limited number of characters. Having come late to spreadsheets in my computer interactions, I much prefer to adjust column widths and use the Alignment tab to enable automatic text wrap and hyphenation -- or, very occasionally, shrinking the text to fit the cell. The Alignment tab also includes options for setting text vertically or on an angle, which can be useful for headers in narrow columns, but these are secondary, less essential options so far as I'm concerned.

After the Alignment tab, the Font tab should be your next stop. Spreadsheets tend to be online documents, so choosing a sans serif or slab serif font will usually make for easier reading. You may also want to use a different font size for headers or sub-total and total labels. Again, remembering what generally works best online, you should choose a bold weight instead of an italic or oblique one. Choices from the Font Effects should be kept to a minimum, although you might want to change the default black font color. Mostly, the other Font Effects will add little to the effectiveness of your spreadsheets.

The remaining tabs are less essential. The Background tab may be useful if you need to brand your spreadsheet for corporate use, or possibly as another way to emphasize headers or totals. Probably the least useful tab for visual formatting is Borders, although you might want to give it some attention if you plan to print your sheet and believe that a spreadsheet should look like a spreadsheet even when it's printed. For both background and border options, you may prefer to use a page style if you want the same settings for an entire sheet. If that's not what you want, the cell setting overrides the page setting.


Functional formatting

The most important of the functional tabs is Numbers. This tab sets how input to a cell is interpreted and displayed. The default category is Numbers, which interprets any numerals you enter into the cell as numbers and displays them on the bottom right of the cell -- behavior that has puzzled more than one spreadsheet novice. If you don't want that formatting, then Text is a better choice for you. You may also want to create styles for displaying Date, Time, and Currency. The Numbers tab also has a wide variety of other categories that you might need, including Percent, Fraction, Scientific, and Boolean, all of which come with their own selection of format options.

The Numbers tabs also includes settings for the number of decimal places and leading zeroes in your calculations. The decimal place setting overrides the general setting in Tools > Options > OpenOffice.org Calc > Calculate, although you should select Precision as Shown in the same general setting Tab to avoid any potential problems.

The other functional tab is Cell Protection. The name is actually somewhat misleading, since the tab does not set cells to right-only, but sets options for hiding their contents. On Cell Protection, you can select whether to hide all content in cells that use the style, or only those that contain formulas. You also have the option of hiding the cell when printing the spreadsheet.


Setting up and using styles

Calc comes with five pre-defined cell styles: Default, Heading, Heading1, Result and Result2. If your needs are simple, you may not need to create others. Instead, you may prefer to tweak the pre-defined styles to your liking.

Another option is to create a separate style for each different formatting option or combination of options that you might want to use -- for example, Red Background, Currency or Default, Borders, Protected. You can save time if you remember that cell styles are hierarchical, and that you can make one style the child of another by entering its parent in the Linked with field on the Organizer tab.

Within the spreadsheet, applying the formatting is simply a matter of selecting the cells, then clicking the cell style to apply to it in the Styles and Formatting window. However, all this planning takes time, and you won't want to repeat it, so when you are done, don't forget to use File > Template > Save so that you can easily use the same design on other spreadsheets. As with any office application styles, the more you use similar documents, the more time you'll save in the long run by taking time at the outset to get yourself organized.


Bruce Byfield is a computer journalist who writes regularly for the Linux Journal and NewsForge websites.

__________________________
--
Bruce Byfield (nanday)


Special Magazine Offer -- 2 Free Trial Issues!
Receive 2 free trial issues of Linux Journal as well as instant online access to current and past issues. There's NO RISK and NO OBLIGATION to buy. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Sorry, offer available in the US only. International orders, click here.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

linux

On October 2nd, 2007 enigma rising tide downloads (not verified) says:

How I Oops? capture do an . Best regards.

hi

On October 1st, 2007 oyun (not verified) says:

thank

We think this is an

On September 30th, 2007 Home Refurbish Course (not verified) says:

We think this is an inspiring article.

I choose my very sexy lades

On September 28th, 2007 My XXX Ladies (not verified) says:

I choose my very sexy lades and make sure their the best, just like this article.

help!

On September 25th, 2007 melissaDee (not verified) says:

we've just gotten an openoffice cal for use...how to get the column/row to just 'write' what is written and not compute it...is it the same as ms?

An extremely informative

On September 18th, 2007 new thumbs daily (not verified) says:

An extremely informative article.

A great read, very

On September 7th, 2007 kinyas ve kayra (not verified) says:

A great read, very informative
Been looking for a blog like this one for a while
Keep up the good work.

awesome, thanks

On June 27th, 2007 Justin Cook (not verified) says:

This is exactly the info I was looking for!!! Can anyone tell me if the formatting is preserved when a spreadsheet is uploaded to Google Spreadsheets?

right

On August 16th, 2007 Felsefe (not verified) says:

yes u right ;)

Problem

On June 10th, 2007 skrypty pozycjonowanie (not verified) says:

I have a working formula as follows
='Serial Numbers'.D19
If I try to edit the cell by even just deleting the digit 1 and typing 1 again, the cell just displays the formula in it, not the value it was supposed to look up. The only way to get it to work again is to copy and past from another working cell below it.
Even deleting and typing it in from scratch does not work.

Problem solved

On June 10th, 2007 programy php (not verified) says:

I got it..Cell seems to be formatted as text, changing the column over to "number format" worked just fine :)
Now, let's say I want to add the following to a new row in that column....0334872739.....it will drop the first 0 because the column is formatted as a number..

Good tips

On May 17th, 2007 Anonymous (not verified) says:

I'm using Openoffice from 5 months,only to view the spreadsheet price lists I receive by email, but after reading this article I could be start to use it for other purposes.

RE

On October 15th, 2007 Games Cheat (not verified) says:

I also started using it for basic spreadsheet stuff, but I'm now using more functionalities

OpenOffice.org Calc Date Styling

On January 3rd, 2007 Anonymous (not verified) says:

I want to create a template style for displaying dates in headers and/or footers like this: 2007-01-03, dynamic or static.

Would that be possible?

linux

On October 2nd, 2007 free enigma mp3 (not verified) says:

do I a apply How patch? . Best regards.

OOo Questions

On February 5th, 2007 jJonathan (not verified) says:

You'll get more and faster answers (many from experts) by posting (emailing) your questions to users@openoffice.org.

If you do not wish to subscribe to this fairly active list, it's good to include a request for answers to be copied to your email address (as well as to the list). That way you'll see the answers without revisiting the list online.

Featured Videos

Non-linear video editing tools are great, but they're not always the best tool for the job. This is where a powerful tool like ffmpeg becomes useful. This tutorial by Elliot Isaacson covers the basics of transcoding video, as well as more advanced tricks like creating animations, screen captures, and slow motion effects.

Shawn Powers reviews the HP Mini-Note portable computer.

Thanks to our sponsor: Silicon Mechanics

Silicon Mechanics is a leading manufacturer of rackmount servers, storage, and high performance computing hardware. The best warranty offerings available are backed by experts dedicated to customer satisfaction.

From the Magazine

August 2008, #172

There's nuttin like a Cool Project to give you some relief from the summer heat, so get out your parka cuz we got a bunch of em. First up is the BUG, not a bug, The BUG. It's got a GPS, camera and more, in a hand-sized package that's user programmable. The BUG does everything. It's both a floor wax and a dessert topping. Get one now. Need a software version of a Swiss Army knife? Take a look at Billix, and don't leave home without it. Then, chew on this one, an X server on a Gumstix device driving an E-Ink display. Need more storage? How about 16 Terabytes? Can do.

And, of course, we have the usual cast of characters: Marcel, Reuven, Dave, Kyle, Doc, plus the new kid on the block Shawn Powers. But it doesn't stop there: build a MythTV box on a budget, build your own GIS system, set up the tools to monitor your enterprise and more. Finally, remember The War of the Worlds? Now you can play too.

Read this issue