Bug 138222 - Excel spreadsheet formulas become all #REFS (but the results still show)
Summary: Excel spreadsheet formulas become all #REFS (but the results still show)
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-15 00:55 UTC by Kevin
Modified: 2020-11-16 23:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Problem in the formula for cell B11 (6.17 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-11-15 00:55 UTC, Kevin
Details
An original file with a different anomaly (3.99 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-11-15 22:40 UTC, Kevin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin 2020-11-15 00:55:21 UTC
Created attachment 167304 [details]
Problem in the formula for cell B11

A colleague sent me a spreadsheet generated by QuickBooks Online, and it all looked great until I started to use it.  The formulas were full of #REF! errors, even though the results looked normal.  Until I went to do anything with the cells, at which time the numbers also turned into #REFs.

I've trimmed it down to a single sum, removing all identifying info, so that you can see it.  If it goes as expected, you'll be able to open it and all will look normal until you look at the formula under cell B11.

I've tried creating similar things in LibreOffice without seeing the error, so I expect it's something in Excel that you don't interpret correctly.  Or maybe a bug in QuickBooks, I just can't tell with the tools I have.
Comment 1 m_a_riosv 2020-11-15 01:02:33 UTC
I think it's needed an original file to see in it, and verify what kind of formula is not properly imported.
Comment 2 Kevin 2020-11-15 22:40:05 UTC
Created attachment 167323 [details]
An original file with a different anomaly

I've added "OneMonth.xlsx" which is exactly as QuickBooks exported it.  It all looks normal (just zeroes) until I click on B10, which shows "=1570" as the formula, but the cell shows 0.00 as the contents.  If you copy that cell and paste it back in the same place (or do the same with the whole sheet) the value is now reflected in the sheet.

This exercise has given me a way to work around the problem, but I'd still like to know if it's a QuickBooks problem or something in LibreOffice.0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   		0.00   	0.00   	0.00   
									0.00   	0.00   
0.00   	0.00   		0.00   	0.00   	0.00   	0.00   	0.00   		0.00   	0.00   
		0.00   	0.00   	0.00   	0.00   	0.00   				0.00   
			0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   		0.00   								0.00   
0.00   		0.00   	0.00   							0.00   
0.00   	0.00   	0.00   	0.00   							0.00   
0.00   				0.00   						0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
									0.00   	0.00   
									0.00   	0.00   
									0.00   	0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
0.00   										0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
					0.00   	0.00   	0.00   	0.00   		0.00   
0.00   								0.00   		0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   		0.00   	0.00   		0.00   
					0.00   					0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
										0.00   
				0.00   		0.00   	0.00   		0.00   	0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
			0.00   	0.00   	0.00   	0.00   	0.00   			0.00   
		0.00   								0.00   
							0.00   			0.00   
0.00   		0.00   	0.00   	0.00   		0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   			0.00   	0.00   
0.00   	0.00   	0.00   	0.00   			0.00   		0.00   		0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
									0.00   	0.00   
			0.00   		0.00   					0.00   
0.00   	0.00   		0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
									0.00   	0.00   
	0.00   				0.00   					0.00   
0.00   										0.00   
										0.00   
0.00   	0.00   	0.00   	0.00   	0.00   						0.00   
0.00   			0.00   							0.00   
0.00   										0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
										
									0.00   	0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
										
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   					0.00   	0.00   		0.00   
0.00   	0.00   	0.00   					0.00   	0.00   		0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
	0.00   	0.00   	0.00   				0.00   	0.00   		0.00   
0.00   				0.00   	0.00   	0.00   	0.00   		0.00   	0.00   
0.00   		0.00   	0.00   	0.00   	0.00   	0.00   	0.00   		0.00   	0.00   
0.00   					0.00   					0.00   
0.00   				0.00   						0.00   
0.00   	0.00   		0.00   	0.00   						0.00   
0.00   					0.00   		0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   		0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
		0.00   	0.00   	0.00   		0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   						0.00   	0.00   	0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
						0.00   		0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   							0.00   	0.00   	0.00   	0.00   
				0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
0.00   		0.00   	0.00   			0.00   			0.00   	0.00   
				0.00   		0.00   	0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   		0.00   
0.00   		0.00   	0.00   		0.00   					0.00   
				0.00   	0.00   				0.00   	0.00   
	0.00   	0.00   		0.00   		0.00   	0.00   		0.00   	0.00   
				0.00   			0.00   	0.00   	0.00   	0.00   
0.00   	0.00   	0.00   	0.00   			0.00   	0.00   	0.00   	0.00   	0.00   
				0.00   		0.00   	0.00   			0.00   
0.00   								0.00   		0.00   
0.00   		0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   
							0.00   	0.00   	0.00   	0.00   
		0.00   					0.00   			0.00   
0.00   				0.00   					0.00   	0.00   
0.00   	0.00   		0.00   			0.00   			0.00   	0.00   
	0.00   	0.00   	0.00   	0.00   		0.00   	0.00   	0.00   		0.00   
		0.00   						0.00   		0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
	0.00   	0.00   						0.00   		0.00   
0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   	0.00   		0.00   	0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
									0.00   	0.00   
0.00   	0.00   		0.00   	0.00   		0.00   	0.00   		0.00   	0.00   
				0.00   						0.00   
0.00   	0.00   	0.00   	0.00   	0.00   						0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   
$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00   	$0.00
Comment 3 Kevin 2020-11-15 22:44:21 UTC
I don't know why my comment about the attachment had all those zeroes added, and I don't see a way to edit them out.  Sorry.

Anyway, the actual attachment seems to solve the NEEDINFO so I'm changing it back.
Comment 4 m_a_riosv 2020-11-16 08:49:12 UTC
The original file has 0 as value in B8;B10;b11;b12;b13.
Opening the file with a compressor program, on OneMonth.xlsx\xl\worksheets open sheet1.xml to see what are the formulas and values in cells.

Two options, doing a hard-recalc [Ctrl+Shif+F9] or setting up the option to always recalculate excel files on load Menu/Tools/Options/LibreOffice calc/Formula.

In my opinion not a bug.
Comment 5 Kevin 2020-11-16 19:56:43 UTC
Sort of agree: the bug, if any, is int the creator of the spreadsheet: QuickBooks.

Thanks for the workaround.  I did not know about these options, so thanks.