Pankaj Shah web agency director in London with over 20 years of experience in web design and project management

I hope you enjoy reading our blog posts.

If you want DCP to build you an awesome website, click here.

Conditional Formatting – Libre Office Tutorial

Last Updated: 20/08/2026

Working with spreadsheets in LibreOffice Calc already makes you aware of how easily rows of numbers might turn into a wall of noise. Conditional formatting solves this by automatically altering a cell’s color, icon, or shading depending on rules you specify. Let LibreOffice Calc highlight the key values for you rather than manually scanning a column of salaries, sales data, or dates.

In this tutorial, we’ll walk through five practical types of conditional formatting in LibreOffice Calc: general conditions, colour scales, data bars, icon sets, and date-based rules – using a simple wages spreadsheet as our working example.

Getting Started

Open LibreOffice Calc and make a fresh blank spreadsheet. For this instance, we have a basic dataset consisting of one column with employee names and another with weekly wages. Right-click the column → Format Cells → Currency to first format the wages column as Currency so the values show correctly before applying any formatting rules.

1. General Condition Formatting (Highlight Cells by Value)

The most often used application is highlighting cells depending on a numerical threshold.

  1. Choose the cells’ range you wish to format.
  2. Use Format → Conditional → Condition.
  3. Enter a number (e.g., 2000) and choose Cell value → Less than. Leave out currency symbols; just the numerical value.
  4. Click New Style, name it something evocative (e.g., “Less than 2000”), and choose a background colour yellow, for instance.
  5. Click Add to stack extra conditions.
    • Less than 3000 → blue
    • Less than five thousand → green.

Order matters. From least to largest threshold, LibreOffice assesses conditions in the sequence listed. This guarantees that the “less than 2000” rule catches a value like 1,800 instead of allowing something more general to pass through. Once applied, altering any value in the range instantly changes its colour in real time.

2. Colour Scale Formatting

Without defining particular thresholds, colour scales provide you an at-a-glance heat map of your data.

  1. Select your data range.
  2. Go to Format → Conditional → Colour Scale.
  3. LibreOffice assigns the lowest value to red, the middle value to yellow, and the highest value to green, fading smoothly between them (the midpoint sits at 50%).
  4. Click OK.

This is ideal for quickly visualising highs, lows, and mid-range values across a dataset – for example, comparing wages, sales performance, or scores at a glance.

3. Data Bar Formatting

Data bars turn each cell into a mini bar graph, giving you a visual sense of relative magnitude directly inside the cell.

  1. Select your data range.
  2. Go to Format → Conditional → Data Bar.
  3. Leave the default settings, or explore More Options to customise the display – for example, checking “Display bar only” to hide the numeric value and show just the bar.

The bar length is calculated relative to the minimum and maximum values in your selected range. If your highest value doubles, a value at half that amount will fill roughly 50% of the bar. Data bars also support negative values, which display as bars extending in the opposite direction (often shown in red by default, though you can customise this).

4. Icon Set Formatting

Icon sets apply visual indicators – like traffic lights, arrows, stars, or flags – based on percentage or value thresholds.

  1. Format your cells as Number (not currency) if you’re tracking counts, like weekly sales totals.
  2. Select the range and go to Format → Conditional → Icon Set.
  3. Choose an icon style (e.g., 3 Traffic Lights).
  4. Define your thresholds – for example: ≥ 90% (green), ≥ 50% (yellow), ≥ 5% (red).
  5. Click OK.

As you update the underlying values, the icons automatically shift to reflect the new thresholds – useful for quick performance dashboards.

5. Date-Based Conditional Formatting

You can also format cells based on dates relative to today – a great way to flag overdue items or highlight recent activity.

  1. Enter dates into a column (e.g., payment dates).
  2. Select the range and go to Format → Conditional → Condition, then choose Date is.
  3. Set one rule for “Last week” with a yellow style, and another for “This week” with a green style.
  4. Click OK.

Because this is calculated relative to the current date, the formatting updates automatically every time you open the file – no manual re-checking required.

Bonus Tips

  • Copying data without formatting: If you copy cells with conditional formatting applied and want to paste just the values, use Paste Special instead of a standard paste. This strips the conditional formatting rules from the pasted cells.
  • Editing existing styles: To change a colour you’ve already applied (e.g., swap blue for orange), go to Format → Conditional → Manage, select the relevant rule, and click Edit. Alternatively, go to Styles → Manage Styles, find your custom style name (e.g., “Last Week” or “Less than 3000”), and modify it directly – this updates every cell using that style at once.

Conclusion

Conditional formatting is one of the most powerful – and underused – features in LibreOffice Calc. Whether you’re colour-coding wages by threshold, building a heat map with colour scales, visualising performance with data bars, flagging KPIs with icon sets, or tracking deadlines with date rules, these tools turn a plain spreadsheet into an at-a-glance visual report.

Experiment with combining different formatting types across your own datasets – once you’re comfortable with the basics, you’ll find countless ways to apply conditional formatting to make your data easier to read and act on.

Author

Picture of Pankaj Shah

Pankaj Shah

Pankaj Shah is the founder of DCP Web Designers, an award-winning London-based web design and digital marketing agency. With over 20 years of experience, he specialises in WordPress web design, WooCommerce, SEO and helping businesses build effective online solutions.
Tell Us Your Thoughts

This website (dcpweb.co.uk) uses cookies to improve your browsing experience and help us understand how our site is used. By continuing to browse this website, you agree to our use of cookies.

To learn more about how we collect, use, and protect your data, please read our Privacy Policy.

DCP Web Designers is one of London’s most established web design companies.

Since 2004, we have designed and developed websites for companies across a wide range of industries, from local service businesses to ecommerce brands and professional organisations.

Our focus is on creating websites that not only look professional, but also perform well in search engines, attract the right audience and support long-term business growth.

If you are looking for experienced web designers who understand how to build websites that deliver real results, our team is here to help.

Privacy Policy

Last Updated: 01/07/2024

Different Colour Productions Ltd (“we,” “us,” or “our”) is committed to protecting your privacy. This Privacy Policy outlines our practices concerning the collection, use, and disclosure of personal information when you visit our website or engage with our services. By using our website and services, you consent to the terms outlined in this Privacy Policy.

1. Information We Collect

We collect various types of information to provide and improve our services. The types of information we may collect include:

1.1. Personal Information: This may include your name, email address, phone number, and any other information you provide when you contact us, request information, or subscribe to our newsletter.

1.2. Log Data: When you visit our website, we automatically collect information, such as your IP address, browser type, pages visited, and the time and date of your visit.

1.3. Cookies and Similar Technologies: We use cookies and other tracking technologies to improve your experience on our website. You can adjust your browser settings to reject cookies or be alerted when cookies are being used.

2. How We Use Your Information

We use the collected information for various purposes, including:

2.1. Providing Services: To provide web design and related services you have requested from us.

2.2. Communication: To respond to your inquiries, send updates, and provide customer support.

2.3. Analytics: To analyse and improve our website and services, as well as monitor usage patterns.

3. Information Sharing and Disclosure

We do not sell or rent your personal information to third parties. However, we may share your information with third parties under the following circumstances:

3.1. Service Providers: We may share your information with trusted service providers who help us deliver our services, such as hosting providers, analytics providers, and marketing services.

3.2. Legal Obligations: We may disclose your information when required by law, to comply with legal processes, or to protect our rights, privacy, safety, or property.

4. Your Choices

You have choices regarding your personal information:

4.1. Access and Update: You can access and update your personal information by contacting us.

4.2. Marketing Communications: You can opt out of receiving marketing communications from us by following the unsubscribe instructions in our emails or emailing [email protected]

5. Security

We take appropriate measures to protect your personal information from unauthorised access, disclosure, alteration, or destruction.

6. Links to Other Websites

Our website may contain links to third-party websites. We are not responsible for the privacy practices of these websites. We recommend reviewing their respective privacy policies.

7. Changes to this Privacy Policy

We may update this Privacy Policy from time to time to reflect changes in our practices. Any changes will be posted on this page, and the date at the top will indicate the latest update.

8. Contact Us

If you have any questions or concerns about this Privacy Policy or our practices, please contact us at: [email protected]

By using our website and services, you acknowledge that you have read and agree to this Privacy Policy. Different Colour Productions Ltd is committed to safeguarding your personal information and respecting your privacy rights.

ThreeBestRated Top 3 Website Designers in London 2026 award for DCP Web Designers Certificate