I have an excel workbook with links to external Excel-Add-In-files. Recently I migrated the files from old Excel 2003 to current Excel versions. The Workbook now is a .xml-file and the Excel-Add-In file is now a .xlam-file.
After changing the references in VBA and saving all files in the new format, I have a link left that still points to the old .xla-File.
I searched all vba codes, all worksheet-formulas and all name-references for any occurence of the old .xla-file without success.
I could neither update the link nor break the link. Any suggestions welcome! Thank You
After a while, I extracted the .xlsm-file-structure to a directory and searched the xml-contents for the old addin-filename. I found conditional formatting that used a formula and was not updated to the new .xlam-file but still referred to the old .xla-file.
So Excel does not update all links to a file: formulas in conditional formatting are not updated.
The solution was to change the formulas of the conditional formatting and the missing reference problem was gone.
So I think, this is more an exotic problem, as conitional formatting with formulas is not very common and a formula containing a function to an external file isn't either.
Related
I am downloading a Google spreadsheet as Excel (XLSX). Everything works fine EXCEPT any cell with either MAXIFS or MINIFS inside the formula place an # sign after the = in the beginning of the cell, which causes the cell to value as a #NAME. Below is an example:
=#IF(SUM(G72:G551)>0,MAXIFS(F72:F551,G72:G551,">0"),'BOND INPUT'!G44)
Does anyone know how to eliminate the #? The EXCEL file is fed into a system so EXCEL .xlsx file is never actually opened in EXCEL.
I don't think that #NAME? is caused by # as it's valid in Excel 2019 and 365. MAXIFS and MINFS were introduced in 2019.
Firts you have to use a recent Excel version. If the error arises in the system where teh spreadsheet is bein loaded, then it's very likely that is using and old Excel file parser.
Anyway, the # can't be removed from the Google Sheets download as built-in function. You could remove it by editing the downloaded file.
Resources
Excel functions (alphabetical)
Related
# in the beginning of a formula
I have one report which is all time updated and changed the file name. I want to know is it possible to make a formula (Except for Mecro code) to another worksheet without open this worksheet.
I am using indirect formula but it required to open worksheet.
Both of these sources indiciate that this cannot be done with a formula alone. However, they propose workaround solutions using vba code, as well as this stackoverflow answer
I strongly recommend to use PowerQuery. Though it uses M language, you can use it with GUI. If your version of Excel is prior than 2013, you must install the addon
I have created an excel sheet which references an external excel file/sheet. A problem I am having is that many formulas I have in my sheet do not update with information unless I open the external file at the same time. I'm sure there will be a setting somewhere to fix this but I would like this sheet to update without having to open the other excel file?
To answer my own question, the reason this has not worked for me is because I have used INDIRECT in my formula and inside of the indirect function is the link to the other workbook...this is why the links were not updating on their own so just for future reference, I had this in my formula:
INDIRECT("'[Filename.xlsm]Employees In-System'!$g$2:$g$10004")
Which will not update on its own without the external excel file being open
I am currently working on an MS Excel 2013 spreadsheet (p:\master.xlsx) where some cells contain values that are directly linked from other MS Excel 2013 spreadsheets (p:\path1\feeder1.xlsx, p:\path1\feeder2.xlsx, etc).
What I am finding occasionally (not every time), is when I open up my p:\master.xlsx spreadsheet (and then "enable editing" and "enable content"), some of the values in this spreadsheet change from the correct linked value (a number) to value #REF.
When I look at the formula within these offending cells, I see it has also changed from say:
=MAX('P:\path1\[feeder1.xlsx]Sheet1'!$C:$C)
to
=MAX('P:\path1\[feeder1.xlsx]#REF'!$C:$C)
I can confirm the feeder.xlsx spreadsheet has not been moved or renamed and has not had it's values changed at all. The network drive the files sit on is also stable.
What is confusing me is that this appears to happen at random times (as opposed to every time). In addition, not all the cells revert to #REF - some of the values are still OK (and thus the formula is OK).
Due to not knowing if or when the formulas will change to their "#REF" status, I need to save the file every time I make a change (slightly frustrating).
I searched the forum and noticed another user had a similar issue on MS Excel 2010 but the answers provided did not appear to solve the user's issue. Anyone have any suggestions?
First make sure you're formula is not too long if your using 97-2003. if so save the file as .xlsx
if that don't work do the following
close all open workbooks.
open the workbook with the (now) broken links (#ref).
Click on the Data tab
Click on Edit Links.
Excel doesn't like links to closed workbooks
I have an excel file with many rows, and am trying to copy severl columns from this file to another file. However, the paste operation gives the following error message. I am not clear what does that mean and how to solve it.
Shown below is a quote from microsoft website as it will depend on your excel version
In Microsoft Excel 2003, when you format a cell or a range of cells, you may receive the following error message:
Too many different cell formats.
Excel encountered an error and had to remove some formatting to avoid corrupting the workbook.
In Microsoft Excel 2013, 2010, or 2007, files may produce the following error message:Excel found unreadable content in the file
One solution could be if you only need the values is to copy and paste special as values into the same workbook (diff sheet) and then try to copy into the new workbook. or do this same process but paste without the formatting using paste special.
I would be able to answer more if i new what kind of data was involved or the kind of formatting but give that a go and see if it helps