Excel not displaying results after reopening file, only after manual recalculation - excel

I have a very strange Excel problem that I cannot wrap my head around:
I have the following formula:
=IFERROR(LEFT(INDIRECT(ADDRESS(INT(((ROW()))/4)+2,3,,,"Sheet1")),(FIND(" ",INDIRECT(ADDRESS(INT(((ROW()))/4)+2,3,,,"Sheet1")),1)-1)),"")
which essentially goes through a different sheet and looks for string entries including a space and then returns only the first word and outputs the same results for 4 consecutive rows.
Typing this formula into Excel and executing it manually works. Dragging the formula down a couple rows also works.
When I now save, close and reopen the workbook, the cells are empty. The formula is still present but now it is in array format {} and the results do not show. If I now click on the cells with my mouse and execute them again by pressing enter it calculates correctly. See picture below.
Cells only display result after manual execution
So I know the formula still works. Copying the formula, deleting the entire array and pasting it and dragging it down results again in a working formula.
Does anyone what is causing this strange behavior and how I can fix it?
Many thanks in advance and best regards.

Make Sure your Workbook Calculation is set to Automatic.
Please check once here -
Go to File > Option > Select 'Formulas' on Left > Check under 'Calculation Options' if Workbook Calculation is set to Automatic. If not, make it Automatic and give it a try.

Suggest you rewrite your formula to use OFFSET rather than INDIRECT(ADDRESS. Also, if you're using WEBSERVICE anywhere it is not affected by automatic calculation.

Related

How do I fix cells in Excel that contain formulas, but are showing as empty cells?

I have tried to find this scenario somewhere but haven't been able to find any useful resources.
Essentially, I have performed some work in Excel and upon returning to the file the row sizes were so large the file could not used properly, and the cells were blank. The row sizes was an easy fix, however the blank cells are strange because they still contain text/formulae.
Has anyone seen this issue before, and know how to fix it?
Thanks!!!!
In this image, you can see that the selected sell contains some text
Here, if I double click to edit the cell contents, there seems to be some kind of disconnect between the location of the cell, and where Excel is allowing me to edit the text
I think you should start working with "formulatext()" Excel function: if you have a formula, this returns a full string
I've seen issues like this in the past and have always first tried the "Text to Columns" Data Tool on the Data Menu. I have used this when cells are unexpectedly blank, or when my dates are registering as dates or formulas are registering as formulas. It might help.

Auto-calculate Excel Formulae Added to a Spreadsheet by an App

I have an Excel spreadsheet with calculation options set to Automatic
However when I add some formulate for example
=CONCATENATE(“ABC",UNICHAR(8730))
The formulae do not auto-compute. Even running the manual computation from the menus does not force them to calculate.
The only way to do this is to click in the Cell, and then press Enter which is tedious since I have hundreds of cells per document, and do not want the end users to have to do this.
This does not work in Excel 16 for Mac, Windows Excel 16
UPDATE 1:
Link to sample Excel File https://www.dropbox.com/s/cxdbego1vw1jwln/SampleExcelFileWithErrors.xls?dl=0
I don't know what causes this issue, and I can't replicate it. But the two suggested solutions are:
Find and replace - swap "=" for "=". Yes the same thing.
Text to columns - click finish right away.

Excel with VBA, Workbook calculations on Manual, shift-F9 does not work

I have a large excel file with vba codes. When opening the file, excel automatically started calculating, hence it took minutes to even open the file. I set the workbook calculations in File/Options to Manual which solved the problem. However, when I run the macro now, it does not update the cells. Instead it puts the correct formulas in each cell without calculating to find the right value.
Strangely, Shift F9 does not work anymore. Yet when I go to one of the cells and press F2+ENTER the correct value is displayed.
Any idea how I can solve this issue?
creating or moving some/all reference containing worksheets (out and) into your workbook may solve it.
More details here: https://stackoverflow.com/a/56549247/1915920

auto calculation for formula that is defined through whether a file exists

here is the formula:
=IF(doesfileexists($AT$3&$P16&$AS$3&$P16&".xls"),"CF✔","*")
the only problem is that if the file is deleted, it doesnt change. On the other hand, if i click on the formula to edit it and click enter, it then recalculates to the right value. i would like to automate this process of pressing enter
*note: My data calculation is set to automatic and works with other data entries. Maybe the fact that it includes a function(doesfileexists) changes something??
Thank you very mech to all.
The below link explains the use of function "FileExists", can you give this a try.
https://stackoverflow.com/a/36308613/8251387
You need to make the function Volatile so that it calculates at every Excel calculation: add Application.Volatile=True
But deleting a file from a folder will not of itself trigger an Excel calculation.

Groovy POI created cells considered blank by other programs until ENTER is manually pressed in cells

Ok this is kind of hard to explain.
I create a cell in my worksheet using JAVA POI
newCell= row.getCell(index)
if (containerCell == null) {
containerCell = row.createCell(index)
}
newCell.setCellType(HSSFCell.CELL_TYPE_STRING)
newCell.setCellValue(strVar)
If i then open the worksheet in EXCEL, I see that the cell value is indeed set. However if I load this into another external program that reads EXCEL sheets, it claims the cell I just set is blank.
NOW, if I go back into excel and do a simple "Hit return" on the cell in question, in the formula bar (even though its not a formula) and try to reload it into the external program, it works fine. Do I need to evaluate a formula on a string?
Thanks
I have no experience with Java, but having to hit enter in a cell is usually indicative of calculation being set to manual. Since you are working with API it may be treating your input from Java as a formula (?).
Open the offending workbook in its broken state, and on the sheet you are having problems with choose [Formulas] tab at top, then [Calculation]>Calculate Sheet.
If this updates the value then I see two options...
See if there is an option to manually calculate the sheet with POI, after the value has been entered.
Alternatively, you can write just a tiny bit of VBA to force calculation on that sheet when workbook is opened. MSDN offers a simple example.
http://msdn.microsoft.com/en-us/library/office/aa223802%28v=office.11%29.aspx
I have had to do this for Excel apps where calculation had to be set to manual to avoid excessive overhead. Just a guess though..
I am not sure why this was happening.. and evaluating the individual cells did not solve it however running evaluteAll() on the entire workbook made it work!

Resources