error #REF! in validity when delete last sheet

I have a very strange problem. Lets say I have 3 sheets which consist same format to fill with different specification. Per sheet I have several type of cells based on the validity, some cells can have all value, some come from the list and last one (this is where the fun begin) is Cell Range. for context I only have same page reference for the Source of these Cell Range.

The sheet currently works perfectly fine for my needs, but sometimes when I need to add some set of data (multiple sheets) I copy-paste the file I lastly worked in and then delete or add the sheets (copy sheet) based on how many sets of data are needed at that time. Problem occurs when I want to delete the last sheet, suddenly the cells in other sheets with Cell Range format suddenly only display #REF!.

Any logical explanation on why this could be happening? and what is the solution?

Lately I discover this only happen if I am working with .xlsx file, no problem in .ods file. But converting existing .xlsx file to .ods using Save As function, will have no affect whatsoever (problem still occurs) which is the case on my condition right now.

I attach the .xlsx and .ods file for example on how to replicate my case, Thanks.
[LeroyG deleted duplicated content here]
trial validity select.ods (15.5 KB)
trial validity select.xlsx (8.6 KB)

After Sheet3 is deleted, I see no problem in Sheet1 nor in Sheet2. Tested with both shared files. Test to restart in Safe Mode.

Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: ee3885777aa7032db5a9b65deec9457448a91162
CPU threads: 4; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_AR); UI: en-US
Calc: threaded

In 24.8.3.2, I do see the #REF! error in sheet 2, cell B7 after I delete sheet 3
ValidityREFerror24-8

The error appears to be fixed in 25.2.01
Version: 25.2.0.1 (X86_64) / LibreOffice Community
Build ID: ddb2a7ea3a8857aae619555f1a8743e430e146c9
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: en-NZ (en_NZ); UI: en-GB
Calc: CL threaded

1 Like

Yes, in the .xlsx file.

restarting in Safe Mode does not seems to fix problem in mine.

if this is the case I might need to contact my office admin to update to that version, mine right now is:

Version: 7.3.7.2 (x86) / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: threaded

25.2.01 is pre-release although linked on the main download page. The release date is 2025-02 sometime.