LibreOffice 7.4 Hjälp
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.
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.
För att använda villkorlig formatering måste Automatisk beräkning vara aktiverad. Välj Verktyg - Cellinnehåll - Automatisk beräkning (en bock visas intill kommandot när Automatisk beräkning är aktiverad).
List of the conditions defined for the cell range in order of evaluation. You can define as many conditions as you want.
Increase priority of the selected condition.
Decrease priority of the selected condition.
Ange om villkorlig formatering är beroende av ett av de val som visas i kombinationsrutan.
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.
Om du väljer Cellvärde är:
Välj ett villkor i kombinationsrutan och skriv sedan in värdet.
I kombinationsrutan Använd formatmall väljer du det format som du önskar tillämpa om villkoret uppfylls, om du behöver skapa en ny formatmall väljer du Ny formatmall....
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.
Om du väljer Datum är, se nedanstående förklaringar för datum.
Detta är samma dialog som den som visas om du väljer Alla celler i första undermenyn till Villkor. Använd en färgskala på ett område består av 2- eller 3-färgade toningar, vars utseende är beroende av vilket värde som varje cell innehåller. Ett typexempel är en matris med temperaturer, lägre värden är blåare, varmare rödare och värden däremellan är en toning mellan de två färgerna.
Du ska välja två "extrema" färger som anger beräkningsmetoden. Beräkningen av den färg som visas kommer att göras i relation till: Min - Max - Percentil - Värde - Procent - Formel.
Min och max hämtas från det berörda området och du behöver inte ange någon ytterligare information. Andra val kräver att du anger ett värde (Percentil, Värde, Procent) eller en cellreferens eller formel (Formel).
For a detailed explanation and examples, please visit How to apply a Color Scale Conditional Formatting page in TDF Wiki.
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:
change colors
change position of vertical axis within the cell
the bar's minimum and maximum length in percentage
Ikonuppsättning ger en snabb överblick över hur ett värde förhåller sig relativt gränsvärden. Olika ikoner visas beroende på förhållandet. Följande ikonuppsättningar är tillgängliga:
3, 4 eller 5 pilar
3, 4 eller 5 grå pilar
3 flaggor
3 trafikljus 1 och 2 (finns i två utföranden)
3 symboler (kvadrat, triangel, cirkel)
4 cirklar från röd till svart
4 eller 5 betyg
5 kvartar
Villkor för att visa varje ikon kan anges relativt ett värde (Värde), en procent av antalet värden i området (Procent), som procent av områdets värden (Percentil) eller formel (Formel).
For a detailed explanation and examples, please visit How to use Icon Set Conditional Formatting page in TDF Wiki.
Detta val använder en formatmall beroende på vilket datum som du väljer i den nedfällbara kombinationsrutan: Idag - Igår - Imorgon - Senaste 7 dagarna - Denna vecka - Förra veckan.
Välj önskad formatmall i kombinationsrutan Använd formatmall eller välj Ny formatmall för att skapa en ny.
För att lägga till ett nytt villkor klickar du på knappen Lägg till. För att ta bort ett villkor klickar du på knappen Ta bort.
I fältet Område anger du det område celler som ska omfattas av den villkorliga formateringen. Klicka på knappen Minimera för att förminska dialogen. Klicka igen för att komma till den fullständiga dialogen när du markerat området.
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.
Om du angivit en villkorlig formatering på ett område och du sedan försöker ange en ny villkorlig formatering som berör en del av det ursprungliga området, så kommer en varningsdialog visas som frågar dig ifall du vill redigera den befintliga villkorliga formateringen (på hela området) eller definiera en ny villkorlig formatering som överlappar det befintliga villkoret (på det markerade området).