You can try the steps below. I have modified your formula a little bit. The OFFSET function is performed first; allowing to shift the cells based on their column. Then, the average is calcualted.

  • On A1, keep the average formula:
=AVERAGE(A1:B1)

  • On B1, enter the following formula on the next cell:
=AVERAGE(OFFSET(A1:B1,0,COLUMN()))

  • Drag B1 to the left to fill the other cells

Note: You need to modify the formula to take into account when there are empty cells as you will get #DIV/0 or other errors.

Answer from Reddy Lutonadio on Stack Exchange
🌐
The Document Foundation
bugs.documentfoundation.org › show_bug.cgi
47106 – References, Adapt row hight and AutoCalculate slow down Calc dramatically due to OFFSET() function
October 11, 2018 - Bugzilla – Bug 47106 References, Adapt row hight and AutoCalculate slow down Calc dramatically due to OFFSET() function Last modified: 2018-10-11 07:35:52 UTC
🌐
Apache OpenOffice
wiki.openoffice.org › wiki › Documentation › How_Tos › Calc:_OFFSET_function
Documentation/How Tos/Calc: OFFSET function
February 2, 2024 - row_offset and col_offset are the number of rows / columns to move reference down / right by.
🌐
Reddit
reddit.com › r › libreoffice › comments › gnlu4d › what_am_i_doing_wrong_sumoffseta1_2_2_2_3
Reddit - Dive into anything
May 20, 2020 - I found documentation here: Documentation/How Tos/Calc: OFFSET function - Apache OpenOffice Wiki (I was not able to find better Libre Office documentation yet.)
🌐
LibreOffice
help.libreoffice.org › latest › en-US › text › scalc › 01 › 04060109.html
Spreadsheet Functions
OFFSET(Reference; Rows; Columns [; Height [; Width]]) Reference is the reference from which the function searches for the new reference. Rows is the number of rows by which the reference was corrected up (negative value) or down.
🌐
Reddit
reddit.com › r/libreoffice › calc equivalent of offset in excel
r/libreoffice on Reddit: Calc equivalent of OFFSET in Excel
May 24, 2021 -

Hello!

I've been trying to get data from multiple rows that contain the same input. Something like this:

Item Number of items
A 2
B 1
C 3
A 5
D 2

And from this table I would like to find how many items A are there. The solution I came up with in excel is:

=SUM(IF(OFFSET(A1;0;0;5;1)="A";(OFFSET(A1;0;0;5;1)="A")*OFFSET(A1;0;1;5;1);0)  

The first OFFSET makes an array {1;0;0;1;0}. In the second part I multiply that array with the second column ("Number of items") which gives {2;0;0;5;0}, and then I just SUM the last array. This works perfectly in excel, but in Libre Office Calc it doesn't work because I think that OFFSET doesn't produce an array of results like excel. What can I do to get an equivalent result in Calc?

Any help is appreciated!

🌐
Reddit
reddit.com › r/libreoffice › calc --- indirect yields a valid answer, but not when used in =offset(indirect(" ", , )
r/libreoffice on Reddit: Calc --- INDIRECT yields a valid answer, but not when used in =OFFSET(INDIRECT(" ", , )
March 24, 2021 -

Before asking I searched for answers. Details at the end.

=======

Setting b13 =OFFSET(i54,4,0) works. It shows the value of i58.

Setting b13 =OFFSET(INDIRECT("B12",4,0) fails. B12 is set =i54, so b13 should show the value of i58, but it shows the value of b16.

How can I get b13 to show the value of i58? (There are dozens of similar operations required, so I'm hoping to find a formula that calculates everything with one edit, rather than needing to edit each cell individually. (The cells aren't contiguous so I can't just copy and paste a row/range.) )

Setting b13 =INDIRECT("B12") seems to work, but the function seems meaningless if it's the only function. It shows the same result as if b13 was set =B12.(I don't understand why quotes are required, but they are. Without them, you get a #REF error.)

=======

File type: ODS

Version: 7.0.1.2 (x64)

Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452

CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win

Locale: en-CA (en_CA); UI: en-US

Calc: threaded

======

I searched Libreofficehelp.com, but it seems to not mention INDIRECT, even though INDIRECT is a formula in LibreOffice. I also googled, but found only mentions of the difference between Excel (uses an exclamation mark to denote a sheet name) vs LibreOffice (uses a period). I'm searching within the same sheet, so those results were irrelevant.

🌐
LibreOffice
books.libreoffice.org › en › CG71 › CG7107-FormulasAndFunctions.html
Chapter 7 Using Formulas and Functions
The price of this reliability is slower input, but precision is generally more important than speed when creating a spreadsheet. The structure view of the Function Wizard is important for debugging and fixing very long, nested, and complex formulas. In this view, the formula is parsed, and each formula component is calculated by a simpler function call or arithmetic operation and then combined following the rules of calculation.
Find elsewhere
🌐
Physics Forums
physicsforums.com › other sciences › computing and technology
Selecting Every 37th Row in LibreOffice Using OFFSET Function • Physics Forums
June 22, 2015 - The discussion focuses on using the OFFSET function in LibreOffice to select every 35th row from a specified column, specifically from H5 to H2000. The solution involves creating a helper column with multiples of 35 (e.g., 35, 70, 105) and using the OFFSET function to reference these values. The formula provided is OFFSET($H$5; Q1; 0), where Q1 contains the calculated row numbers.
🌐
LibreOffice
books.libreoffice.org › en › CG252 › CG25209-FormulasAndFunctions.html
CalcGuide 25.2 - Chapter 9, Using Formulas and Functions
The price of this reliability is slower input, but precision is generally more important than speed when creating a spreadsheet. The structure view of the Function Wizard is important for debugging and fixing very long, nested, and complex formulas. In this view, the formula is parsed, and each formula component is calculated by a simpler function call or arithmetic operation and then combined following the rules of calculation.
🌐
Reddit
reddit.com › r/libreoffice › index/match/offset - simple problem?
r/libreoffice on Reddit: Index/Match/Offset - simple problem?
April 27, 2022 -

Hello, I'm trying to put together what I'm sure is a fairly simple formula and I know its some combination of Index, Match, and Offset, but I can't seem to wrap my peasized brain around it after trying for two days. I'm trying to look up a specified value in a column and return the value x rows down from that specified value. So my components are:

Scale: Lets call it A1:A10, this is the column with multiple values

CurrentValue: This is the specified value I need to reference in the Scale

Adder: This is the number of rows down from CurrentValue that I need to pull the value from

I don't suppose someone can point me to the right formula? Thanks

🌐
Reddit
reddit.com › r/libreoffice › libreoffice calc is super slow
r/libreoffice on Reddit: LibreOffice Calc is super slow
February 25, 2025 -

LibreOffice Calc is always super slow.

Spreadsheet/file is almost empty. No formulas, just a few texts.

Clicking from a cell to another and other actions takes like half a second (which is extremely slow for a software UI).

Using LibreOffice 25.2.0.3 , OS is Windows 11 Pro.

I have not used other LibreOffice software recently so I don't know it it's only Calc.

Is this a know issue, can it be fixed ?

EDIT: So, solution found:

In Calc:

  • I went to Tools > Options > View

  • Unchecked "Use Skia for all rendering"

  • (Already felt improvement)

  • Unchecked "Use hardware acceleration"

  • (Possibly felt further improvement)

  • Calc feels more or less back to normal.

🌐
Apache OpenOffice Community
forum.openoffice.org › board index › customizing and extending › macros and uno api
Apache OpenOffice Community Forum - [Solved] Is there an OFFSET function in Calc? - (View topic)
April 14, 2012 - I'll phrase it the other way round: ... functions (OFFSET), macro language and API is just a matter of course. For the vast majority of "VBA coders" it is a miraclous über-geek problem which makes this program "unusable" for them. Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved. Ubuntu 18.04 with LibreOffice 6.0, latest ...
🌐
Ask LibreOffice
ask.libreoffice.org › english
function: (offset) questionable notation - is it really that way? - English - Ask LibreOffice
December 20, 2019 - hi, i just notet that ‘OFFSET’ has arguments (reference; rows; columns; height; width), that is something one can! work with, but it’s not ‘intuitive’, the notation for the name of a cell is: ‘column first’, a simple minded user would expect the arguments in the same order, but it’s ‘rows first’, thus to check the functioning you can’t do simple vector addition as we learned in school, but you have to ‘transponse’ the offset vector first … and plenty simple minded user will be trapped by wr...
🌐
Ask LibreOffice
ask.libreoffice.org › english
Noticed a CALC offset error - English - Ask LibreOffice
June 19, 2021 - Linux LibreOffice v6.4.7.2 OFFSET has an error when the 1st arg is a named range that refers to a column not a single cell. If all args are fully specified it works as expected using the first cell referenced in the named range. If however the length and width of the returned array are not ...
🌐
Linux.org
linux.org › home › forums › general linux forums › general linux topics
Libre office (writer + calc) are running slow | Linux.org
June 26, 2023 - Which is on your harddrive so, so your system slow down. This should prevent for out of memory kills. vs2-free-users community vs2-free-users on linux.org | vs2-free-users on github | the vs2-free | vs2-free-users on linuxguides.de #vs2-free-users #VS2FreeUsers ... hi s - the libre office system ...
🌐
Facebook
facebook.com › groups › libreoffice.user.group › posts › 1326623857520926
How to use index/match and offset in LibreOffice Calc with ...
Popular groups · Find communities for you · Over 1 billion people across the globe are using Facebook Groups to explore their favorite topics · Log in · Categories · Science & tech · Travel · Animals · Sports & fitness · Entertainment