Formatació condicional
Choose Conditional Formatting to define format styles depending on certain conditions. If a style was already assigned to a cell, it remains unchanged. The style entered here is then evaluated. There are several types of conditional formatting that can be used.
You can enter several conditions that query the contents of cell values or formulas. The conditions are evaluated from the first to the last. If the condition 1 matches the condition, the defined style will be used. Otherwise, condition 2 is evaluated, and its defined style is used. If this style does not match, then the next condition is evaluated and so on.
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).
Condició
Podeu definir tantes condicions com desitgeu.
Indiqueu si la formatació condicional depèn d'una de les entrades de la llista desplegable:
-
If you select All cells, see Color Scale, Data Bar or Icon Set explanations below, depending on which visual representation the conditional formatting should be represented.
-
Si seleccioneu El valor de la cel·la és:
-
Select a condition in the drop down list for the format to be applied to the selected cells and enter the value.
-
In front of Apply Styles, select the desired style in the list or chose New Style to create one.
-
Click the Add button to add another condition, click the Remove button to remove a condition.
-
In the Range field, define the range of cells concerned by the conditional formatting. Click on the Shrink button to minimize the dialog box. Click again on the button to come back to the dialog box once the range is selected.
-
-
If you select Formula is as a reference, enter a cell reference. If the cell reference is a value other than zero, the condition matches.
-
If you select Date is, see below explanations for Date.
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.
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:
-
3, 4 o 5: fletxes
-
3, 4 o 5: fletxes grises
-
3: banderes
-
3: semàfors 1 i 2 (dos dissenys diferents)
-
3: símbols (quadrat, triangle, cercle)
-
4: cercles de roig a negre
-
4 o 5: valoracions
-
5 - quarts
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.
-
In front of Apply Styles, select the desired style in the list or chose New Style to create one.
-
Click the Add button to add another condition, click the Remove button to remove a condition.
-
In the Range field, define the range of cells concerned by the conditional formatting. Click on the Shrink button to minimize the dialog box. Click again on the button to come back to the dialog box once the range is selected.
Gestiona la formatació condicional
This dialog allows you to see all the conditional formatting defined in the spreadsheet.
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).