When I use “cell names” in a formula in LO-CALC, i can copy this formula horizontally without the cell name changing, but if I copy it vertically, then the names change to the names of the cells below.
Steps to reproduce:
-
Enter text “speed” and “Stop_dur” in cells A1 and A2
-
Enter 50 and 10 in cells B1 and B2
-
In LO-Calc, select “sheet”-> “Named Ranges and Expressions” → “Labels”
-
Add Label Range “$Tabelle1.$A$1:$A$2” and “For data range” = $Tabelle1.$B$1:$B$2
-
Enter formula “=B7/‘speed’60+B8’stop_dur’” in Cell B9
-
You can then copy it horizontally into C9 and D9 (green cells in the screenshot) and correctly get
"=C7/‘speed’60+C8’stop_dur’ " and "=D7/‘speed’60+D8’stop_dur’ ", respectively -
If you enter the equivalent formula "=B13/‘speed’60+C13’stop_dur’ " into D13, and try to copy it downwards to D14 and D15 (pink cells in the screenshot), however, the references ‘Speed’ and ‘stop_dur’ will not remain unchanged, but are changed to the cell names of the cells below them!
Here are the formulas in the cells after copying:
D13: =B13/‘speed’60+C13’stop_dur’
D14: =B14/‘stop_dur’60+C14’names’
D15: =B15/#NAME?$Tabelle1.$A360+C15#NAME?$Tabelle1.$A4
Obviously, the fields ‘speed’ and ‘stop_dur’ from the first line are replaced with the names below these definitions in column A2:A4!
Since this works fine horizontally, this is probably not intended?
Or do I miss some special characters to make the cell references explicitely absolute?
Screenshot for illustration:
I have tried this with the same error on these LO versions: 7.5.8.2, 24.8.6, 25.2.2, all on an Arm-Mac (MacOs 15.4).
I have attached the ODS-spreadsheet with the demo above:
error when copying formulas with named cells vertically.ods (52.5 KB)
Thanks for any hints if I am just doing something wrong!