I had the same problem. I opened an Excel 97 file using Libre Office Calc 7.6.4.1 (X86_64) [Windows 11].
Excel file has a lookup function to another worksheet (Spec worksheet) in the same file, e.g. in one cell the formula is
=VLOOKUP($B3,INDIRECT(“Spec!”&HLOOKUP(H$1,Spec!$A$2:$CZ$3,2,FALSE)),2,FALSE)
Note the exclamation mark used to refer to worksheet in Excel.
When opened with LibreOffice, the formula in the cell changed to
=VLOOKUP($B3,INDIRECT(“Spec!”&HLOOKUP(H$1,$Spec.$A$2:$CZ$3,2,FALSE())),2,FALSE())
The result is REF! error.
Note that the exclamation mark for the first part of the formula is still there while the exclamation mark for the second part of the formula has changed to a full-stop / period.
This I believe is the source of the error. So I changed the exclamation mark to a full-stop / period.
=VLOOKUP($B3,INDIRECT(“Spec.”&HLOOKUP(H$1,$Spec.$A$2:$CZ$3,2,FALSE())),2,FALSE())
The problem was solved. Hope this is useful if anybody else has a similar problem.