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.

Libre Office Calc – Array Formulas and Functions – Part 1 – [ Libre Calc Office Advanced Tutorial ]

Last Updated: 22/07/2026

If you work with spreadsheets regularly, you’ve probably repeated the same formula across dozens of cells just to get a single grand total. Array formulas in LibreOffice Calc solve that exact problem – letting you perform calculations across an entire range of data in a single step. This tutorial (Part 1 of a series from DCP Web Designers) walks through the fundamentals of array formulas and the powerful SUMPRODUCT function, using practical, real-world examples.

What Is an Array Formula?

An array formula lets you apply one calculation to multiple values at once, instead of writing (and dragging) a separate formula for every cell. The key difference from a normal formula is how you enter it.

The Golden Rule: Ctrl + Shift + Enter

To create an array formula in LibreOffice Calc:

  1. Select the cells where you want the results to appear.
  2. Type your formula as usual.
  3. Instead of pressing Enter, hold down Ctrl + Shift and then press Enter.

This tells Calc to treat the formula as an array operation across the whole selected range rather than a single cell.

⚠️ Note: You must select the destination cells before entering the formula for this to work correctly.

Example 1: Calculating Percentages the Array Way

Say you have six values — 100, 200, 300, 50, 80, 90 – and you want 20% of each one.

The manual (slow) way:

  • =A4*0.2, then drag/series-fill down for each row
  • Repeat for the second column
  • That’s 6 separate calculations

The array formula way:

  1. Highlight the entire block of source cells (e.g., A4:B6)
  2. Type = then reselect that same block
  3. Type *0.2
  4. Press Ctrl + Shift + Enter

Instantly, every cell in the range is calculated – all in one formula instead of six.

Editing an Array Formula

Array formulas behave differently than normal ones. If you try to double-click and edit just one cell inside the array, LibreOffice will block you with an error: “You cannot change only part of an array.”

To edit it, you must:

Select the entire array range again
Click into the formula bar
Make your change
Re-confirm with Ctrl + Shift + Enter

For example, to add 20% to a set of values instead of just calculating 20%, you’d select the array, change the formula to *1.2, and re-enter it the same way.

Example 2: The SUMPRODUCT Function

SUMPRODUCT is a built-in array-style function – and unlike manual array formulas, it does not require Ctrl + Shift + Enter. Just press Enter normally.

Multiplication with SUMPRODUCT

Given two columns of numbers (e.g., 1, 2, 3 and 4, 5, 6), if you wanted to multiply each pair and sum the totals manually, you’d need:

  • 3 multiplication formulas
  • 1 SUM formula
  • = 4 separate calculations

With SUMPRODUCT, it’s one step:

    
     =SUMPRODUCT(A10:A12, B10:B12)
    
   

This multiplies each row pair together and sums the results – all in a single formula, returning the same answer (e.g., 32) that four manual steps would produce.

Subtraction with SUMPRODUCT

SUMPRODUCT isn’t limited to multiplication. You can subtract one array’s total from another:
    
     =SUMPRODUCT(B17:B19) - SUMPRODUCT(A17:A19)
    
   

This sums column B, sums column A, and subtracts the two – dynamically recalculating any time the source values change.

Real-World Example: Monthly Profit Calculations

The tutorial ties everything together with a business scenario: 12 months of costs and revenue, where you need to calculate profit for each month, the total profit, and the average monthly profit.

Step 1 - Total Profit in One Formula

Instead of calculating profit for each of the 12 months individually and then summing them (13 calculations), a single array formula does it all:

    
     =SUMPRODUCT(Revenue_Range) - SUMPRODUCT(Cost_Range)
    
   
This returns the total profit (e.g., £39,600) in one step.

Step 2 - Average Profit, Three Ways

The tutorial demonstrates three methods to calculate average monthly profit, all landing on the same result:

  1. Manual division: Calculate the average of revenue and average of costs separately, then subtract.
  2. AVERAGE function: =AVERAGE(Profit_Range) across the already-calculated profit column.
  3. Array formula with AVERAGE:
    =AVERAGE(Revenue_Range – Cost_Range)
    entered with Ctrl + Shift + Enter – calculating the average of the difference between two entire ranges in a single formula.

All three methods return the identical average (e.g., £3,300), but the array approach eliminates the need for helper columns or intermediate calculations entirely.

Why This Matters

The core takeaway is efficiency:

  • Fewer helper columns and formulas cluttering your spreadsheet
  • Automatic recalculation – change any source value and every array formula updates instantly
  • Faster analysis, whether you’re tracking business costs and revenue, or personal expenses like gas, electric, and water bills

Array formulas and SUMPRODUCT can feel unusual at first because of the Ctrl+Shift+Enter step, but the more you practice, the more intuitive they become – and the time savings scale dramatically as your datasets grow.

What's Next?

This is Part 1 of a series on LibreOffice Calc array formulas and functions. Future tutorials will build on these fundamentals with more advanced use cases.

Don’t have LibreOffice yet? It’s a free, open-source alternative to Excel – check the linked installation tutorial to get set up before diving in.

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