Refreshing excel formula / links - excel

this may be a dumb question. I'm no excel expert by any means. But i have to use an evaluation / formula in excel.
I have 3 sheets. Rohdaten (=meaning raw data), where i pasta the data into. And ExpProcA or B. => there the data is referenced and calculations done. The links are like this: =Rohdaten!AW3
I wanted to paste the data via Python / PANDAS. Its all working well, i can paste it via XLSWriter and such. And i also can open it and "refresh" it. I will add the open command and refresh later. But thats not the problem.
Here lies my problem, which i can't solve. The ExpProcA/B and my file says: Some references in your sheet can't be refreshed. Then i can press -> okay or edit references.
But the data/reference is there, if in the ExpProcB sheet i go to A2, B2, C2, D2 where #REF / #BEZUG(german) stands and press enter = its working.
Then i can select this 4 cells and fill all down below without formatting.
How would i solve this / do a real auto update without pressing enter and filling down? I tried every (auto) update option in Excel, turned off any security setting in my Excel settings. But it doesn't happen.
Or is there an easy way to import calculations from XLS into Python? Then i could skip pasting into excel, do calculations there and the stuff of opening/writing/extracting from excel via Python PANDAS.
So, i may think, that there is something off with the file. I'm using the latest version of MS365 / excel.
Here is a screenshot of the cell with the reference and "error" message:
Thanks in advance.
Best Regards
Tim Rachul
I used the file, pasted data in, thought it would refresh => it doesnt. Tried everything with auto updates and settings, but i can't solve it

Related

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

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.

Excel is unfilling calculated cells at random

I have an Excel file on SharePoint.
Multiple people edit said file.
Offline and online.
Excel unfills all calculated cells (VLOOKUP and MATCH) that depend on other sheets in the same workbook at random.
So if you would open or reload that file, suddenly all the cells that use VLOOKUP or MATCH would be blank.
Upon further investigation nobody changed anything or deleted anything.
It just happens randomly.
Now it has happened 2 weeks ago and just today.
I have an interim solution that is to go to a cell with a formula, hit return, then click „overwrite all cells in this column with this formula“ and then click undo to prevent custom cell content to be overwritten.
Everything is back to normal afterwards.
I talked to a colleague, he has the exact same issue also totally at random.
He also encountered this on files that are not being edited by multiple people but himself.
So it is not dependent on the file itself.
Could the language play into this problem?
On some PCs Excel is in English and on some in German.
=IFERROR(IF(ISNA(VLOOKUP(D185,Sheet1!$B$3:$D$616,3,FALSE)),(VLOOKUP(D185,'Sheet2'!$B$3:$D$22200,3,FALSE)),(VLOOKUP(D185,Sheet1!$B$3:$D$616,3,FALSE))),"")
Seems like your sheet isn't calculating upon open. See if this link is of use to you.
https://superuser.com/questions/448376/what-is-the-excel-hotkey-to-re-calculate-all-formula-in-sheet
Also check your program settings and see if auto-calculate sheets is enabled. Don't know from the top of my head where it is located.
Alternative create a small vba function to force recalculate on workbook open.
Getting Excel to refresh data on sheet from within VBA

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

Excel Formula not updating

This is a weird one.
I have an excel file with formulas which is emailed back and forth between users in different countries (different language settings more than likely).
To get the formulas to calculate, you hit enable editing which calculates all the formulas in the workbook.
On windows 10, I receive a file and when I hit enable editing, the formulas do not calculate unless I manually go into each one and hit return. If I open the same file from windows 8, it calculates.
The formulas are correctly in as "custom" and automatic formula calculation is on, the sheet does not calculate if you hit calculate now. There are no circular references.
Another fix I tried was replacing all the = signs with =.
Anyone come across this issue? I do not have details of applied updates to office but I am assuming the sender and the receiver are up to date.
I am not sure how that happens or why the method I am describing works, but it works for me.
Using text to columns, select fixed width but don't actually separate anything to columns and hit finish. You should get all the results of the formula. However it is a real pain if your formulas are in many different columns.

Resources