LibreOffice Calc: Drop-down Menu for Task Progression Values With Background Color According to Value
by apapa2 in Circuits > Software
1381 Views, 0 Favorites, 0 Comments
LibreOffice Calc: Drop-down Menu for Task Progression Values With Background Color According to Value
![FormattedTaskValues.png](/proxy/?url=https://content.instructables.com/FQH/PSVT/L35VPYO2/FQHPSVTL35VPYO2.png&filename=FormattedTaskValues.png)
This Instructable illustrates how to create a drop-down menu of values
with a cell background color depending on the cell value.
Supplies
- LibreOffice is available for Linux, macOS, and Windows.
Creating the Values for the Drop-down Menu
![Values.png](/proxy/?url=https://content.instructables.com/FEH/JOPM/L35VPW3F/FEHJOPML35VPW3F.png&filename=Values.png)
Assuming that you created a new LibreOffice Calc file,
you can rename the current sheet by double-clicking on its name.
This step is only about creating the values to have inside the drop-down menu.
Creating the Styles to Apply in Conditional Formatting
![AccessToConditionalFormatting.png](/proxy/?url=https://content.instructables.com/FF9/P4SO/L35VPW5G/FF9P4SOL35VPW5G.png&filename=AccessToConditionalFormatting.png)
![CreatingANewParentStyle.png](/proxy/?url=https://content.instructables.com/F5Q/4K6R/L35VPW72/F5Q4K6RL35VPW72.png&filename=CreatingANewParentStyle.png)
![CreatingACustomStyleForACell.png](/proxy/?url=https://content.instructables.com/FPI/PZAG/L35VPW9A/FPIPZAGL35VPW9A.png&filename=CreatingACustomStyleForACell.png)
![CreatingACustomStyleForACell_BackgroundColor.png](/proxy/?url=https://content.instructables.com/FF5/MH4Z/L35VPWC0/FF5MH4ZL35VPWC0.png&filename=CreatingACustomStyleForACell_BackgroundColor.png)
You can access the style management window ( "Manage Styles ") in the "Styles" menu,
or with F11.
Creating a parent-style for the different styles to apply
can be done by right-clicking on the "Default" style,
and by choosing "new".
In this illustration, the parent-style is named "task_progression_colors".
A style can be created, for each task progression value,
by choosing "new", after right-clicking on "task_progression_colors".
In order to have the cell containing "Finished" with a green background,
a green color is selected in the "Background" tab.
Applying the Styles to the Column Containing the Task Progression Values
![AddingConditionalFormatingToAColumn.png](/proxy/?url=https://content.instructables.com/FJD/IXQ8/L35VPWDJ/FJDIXQ8L35VPWDJ.png&filename=AddingConditionalFormatingToAColumn.png)
![ApplyingAFormattingRuleToAValue.png](/proxy/?url=https://content.instructables.com/FAY/VSJH/L35VPVU1/FAYVSJHL35VPVU1.png&filename=ApplyingAFormattingRuleToAValue.png)
You can apply the styles to the column containing the task progression values by:
- Selecting the column.
- Choosing "Conditional", and "Manage", in the "Format" menu.
-
Relating a cell value to the corresponding formatting style.
Quotes are needed around the cell value.
Limiting the Cell Values to the 4 Pre-defined Values
![Data validation.png](/proxy/?url=https://content.instructables.com/FQ9/1QPB/L35VPX2V/FQ91QPBL35VPX2V.png&filename=Data validation.png)
![Data validation2.png](/proxy/?url=https://content.instructables.com/FZ8/OXKF/L35VPYI8/FZ8OXKFL35VPYI8.png&filename=Data validation2.png)
![Data validation3.png](/proxy/?url=https://content.instructables.com/FIF/VYDD/L35VPYJC/FIFVYDDL35VPYJC.png&filename=Data validation3.png)
Data validation is needed to limit the cell values to the 4 pre-defined values.
Data validation can be accessed by :
- selecting the area containing the cells where the data validation will be applied.
- right-clicking on the area and selecting "Data Validation".
-
selecting the pre-defined values.