0% found this document useful (0 votes)
64 views6 pages

How To Apply Conditional Formatting To A Cell: Provided by

This document provides a 3-step process to apply conditional formatting to cells in OpenOffice: 1) Create new styles called "blue" and "yellow" by duplicating the default style and changing the background color. 2) Select the target cell and add two conditions - one where the cell value is greater than 99 applying the blue style, and one where it is less than 100 applying the yellow style. 3) Type a number into the target cell to see the formatting change automatically based on the number's value.

Uploaded by

marin_s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views6 pages

How To Apply Conditional Formatting To A Cell: Provided by

This document provides a 3-step process to apply conditional formatting to cells in OpenOffice: 1) Create new styles called "blue" and "yellow" by duplicating the default style and changing the background color. 2) Select the target cell and add two conditions - one where the cell value is greater than 99 applying the blue style, and one where it is less than 100 applying the yellow style. 3) Type a number into the target cell to see the formatting change automatically based on the number's value.

Uploaded by

marin_s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

How to apply

Conditional Formatting to a Cell


Provided by
the OpenOffice.org Documentation Project

OpenOffice.org Documentation Project How-To

Table of Contents
1. Introduction: an example.........................................................................................................3
2. Create a new Style...................................................................................................................3
3. Apply the Conditional Formatting..........................................................................................4
4. Credits ....................................................................................................................................6

http://whiteboard.openoffice.org/doc/

OpenOffice.org Documentation Project How-To

1. Introduction: an example
You are a bookseller and sell books every day. You'd like to
highlight, in color, the number of books sold during a week with
the result displayed in yellow if less than 100 and in blue if 100
or more were sold.
To do so, you have to create 2 new styles for each color and 2
formatting conditions: one for numbers less than 100 and another
for those numbers greater than or equal to 100.
Let's do it!

2. Create a new Style


To create a new Style, open the Stylist:
choose FormatStylist,
or press F11 key,
or click the Stylist icon on the Function bar:
In the Stylist window, there are several styles ready to use.
You'll use the Default style as a base to create your own:
select the Default style,


right click on it to access the context menu,




choose New...


The dialog window that will appear has several tabs as in the
diagram below:

in the Organizer tab, type a name for your style; here it is


simply called 'blue',
now switch to the Background tab and choose a blue color in

http://whiteboard.openoffice.org/doc/

OpenOffice.org Documentation Project How-To


the color palette,
now switch to the Font tab, scroll to find Automatic, and
click OK.
In the Stylist, your new style will be displayed with the name you
gave it. Repeat the steps above to create the style 'yellow'.

Note: You have created a background style, but of course you may
apply other features to that style. By clicking on the other tabs,
you may access many other functions, such as, apply a border,
change font, alignment, etc.

3. Apply the Conditional Formatting


You have typed your figures, inserted your formulas in the cells,
and now you wish to add some colors!
In our example, the colors are to be displayed in cell [B9]
1.Select the cell [B9],
2.in the Format menu, choose Conditional Formatting,
3.In the window that will appear, you'll insert your condition:

4.under Condition 1, click the small triangle of


drop-down menu and choose 'Cell value is',

http://whiteboard.openoffice.org/doc/

the first

OpenOffice.org Documentation Project How-To


5.Then, in the second drop-down menu, choose 'greater than',
6.in the next box to the right, insert the value, 99.
Eventually, you can change the selected cell by clicking on
the Shrink icon
7.In the drop-down menu labeled, Cell Style, search and select
the 'Blue' style,
8.Check the Condition 2 check-box, repeat steps from 4 up to 7,
but use 'less than', a value of '100', and 'yellow' style
where applicable,
9.Click on OK,
10.Look at the result: type in '122' in cell [B9] and the color
changes!

http://whiteboard.openoffice.org/doc/

OpenOffice.org Documentation Project How-To

4. Credits
Author: Sophie Gautier
Thanks to: Richard Holt, great proof reader and OOo contributor
Intgr by: Gianluca Turconi
Last modified: January 28, 2002
Contacts: OpenOffice.org Documentation Project
http://whiteboard.openoffice.org/doc/
Translation: Gianluca Turconi

http://whiteboard.openoffice.org/doc/

You might also like