Formatació condicional

Use Conditional Formatting to define range-based conditions that determine which cell style will be applied to each cell in a given range based on its contents. The cell style corresponding to the first condition that evaluates to true is applied. Cell styles applied through Conditional Formatting override cell styles applied manually using the Formatting Bar or the Styles sidebar.

Per accedir a esta orde...

Trieu Format ▸ Condicional.


You can enter several conditions that query the cell values or results of formulas. The conditions are evaluated from first to the last. If Condition 1 is true based on the current cell contents, the corresponding cell style is applied. Otherwise, Condition 2 is evaluated to determine if its corresponding style will be applied. If none of the conditions match cell contents, then no changes are made to the cell format.

Conditional formats do no overwrite cell styles and direct formatting applied manually. They remain saved as cell properties and are applied when the cell matches no conditions or when you remove all conditional formats.

warning

Per a aplicar la formatació condicional, s'ha d'activar l'orde Calcula automàticament. Trieu Eines ▸ Continguts de la cel·la ▸ Calcula automàticament (quan l'orde estiga activada es mostrarà amb una marca de selecció al costat).


Condition list

List of the conditions defined for the cell range in order of evaluation. You can define as many conditions as you want.

Up

Increase priority of the selected condition.

Down

Decrease priority of the selected condition.

Condition list entry

Indiqueu si la formatació condicional depèn d'una de les entrades de la llista desplegable:

Escala de colors

Este és el mateix quadre de diàleg que si seleccioneu Totes les cel·les de la primera entrada del submenú Condició. Aplicar una escala de color a una àrea consisteix a mostrar un degradat bicolor o tricolor a esta àrea depenent del valor de cada cel·la. Un exemple típic podria ser una sèrie de temperatures, de color blau les més baixes, les més altes vermelles amb un degradat de tonalitats per als valors intermedis.

Heu de triar els dos colors «extrems» per indicar el mètode de càlcul. El càlcul del color aplicat es realitzarà en relació a: Mín - Màx - Percentatge - Valor - Fórmula.

Les opcions Mín i Màx són suficients en si mateixes tal com estan a l'interval. Altres opcions s'han d'especificar amb un valor (Percentil, Valor, Percentatge) o una referència de cel·la o fórmula (Fórmula).

For a detailed explanation and examples, please visit How to apply a Color Scale Conditional Formatting page in TDF Wiki.

Data Bar

Data bar option will fill the cell with solid or gradient color corresponding to the numeric value in the cell. Default is blue for positive and red for negative.

The calculation of the area of fill is based on Min - Max - Percentile - Value - Percent - Formula.

The choices Min and Max are sufficient to themselves as found in the range. Other options need to be specified by a value (Percentile, Value, Percentage) or a cell reference or formula (Formula).

More Options... opens a dialog to:

Conjunt d'icones

Es vol calcular la posició d'un valor en relació als llindars. El conjunt d'icones ajudarà a indicar els llindars i a escollir el tipus d'icones. Els conjunts disponibles són:

Les condicions per mostrar cada icona es poden especificar en relació a un valor (Valor), a un percentatge del nombre de valors de l'interval (Percentatge), com a percentatge de valors de l'interval (Percentil) o a una fórmula (Fórmula).

For a detailed explanation and examples, please visit How to use Icon Set Conditional Formatting page in TDF Wiki.

Dates

Esta opció aplicarà un estil definit segons la data que escolliu al quadre desplegable: Hui - Ahir - Demà - Darrers set dies - Esta setmana - La setmana passada.

Gestiona la formatació condicional

This dialog allows you to see all the conditional formatting defined in the spreadsheet.

Per accedir a esta orde...

Trieu Format ▸ Formatació condicional ▸ Gestiona.


The Manage Conditional Formatting dialog box opens. Here you can add, edit or remove one or several conditional formattings.

The Conditional Formats list displays the active conditional formatting rules set in the current spreadsheet. Only the first rule for each cell range is listed, even if there are multiple rules defined for a given range.

If you have defined a conditional formatting on a cell range and you try now to define a new conditional formatting on a part of this range, a warning message will be displayed, asking if you want to edit the existing conditional formatting (on the whole range) or define a new conditional formatting overlapping it (on the selected range).