Forum Discussion
Issue in showing formulas/values
The problem that I face is when I download excel book from Google Drive and enable editing it, it shows #NAME? in all formulas instead of values. Surprisingly, before pressing "ENABLE EDITING" it shows values instead of #NAME?. Both screenshots before enable editing and after enable editing are attached to better understand the issue.
Can anyone guide on this?
8 Replies
- JoeUser2004Bronze Contributor
Dharmendra_Bharwad.... After clicking Enable Editing, do the following:
1. Press ctrl+a to select all cells.
2. Press ctrl+h to open the Find and Replace dialog box.
3. Enter IFERROR into the Replace field.
4. First, enter _xlfn.IFNA into the Find field, and click Replace All.
5. Then, enter IFNA into the Find field, and click Replace All.
6. Finally, click Close to close the dialog box.
Explanation....
IFNA is supported in only certain versions of Excel. See https://support.microsoft.com/en-us/office/ifna-function-6626c961-a569-42fc-a49d-79b4951fd461 .
So when I open the Excel file in Excel 2010, I see _xlfn.IFNA to indicate an unsupported function.
(I also see just IFNA in most cells. They should all be _xlfn.IFNA. I do not understand why only some references to IFNA are converted.)
Usually, when Excel opens a file, it does not recalculate unless circumstances require it (e.g. "volatile" functions). So before clicking Enable Editing, you see the last values calculated when the file was saved.
However, when we click Enable Editing, that triggers a recalcuation cycle. That causes references to _xlfn.IFNA and IFNA to result in #NAME errors.
Replacing references to IFNA with references to IFERROR remedies the problem.
But we must be careful to replace _xlfn.IFNA before we replace IFNA because of the substring similarity.
(FYI, my experience is different. I see values for cells that reference _xlfn.IFNA both before and after clicking Enable Editing, and I see #NAME for cells that reference IFNA both before and after clicking Enable Editing. The difference might have to do with the older version of Excel that I use.)
It would help if you showed us the formulas or attached a copy of the workbook.
- Dharmendra_BharwadBrass Contributor
Sure, it's attached. Basically, the problem is in source sheet "Label" from where the value goes to the earlier screenshots. If F2 & enter is pressed and then only the values shows in these cells. For example, I have done F2 & enter in cell B4, C4, C5.
It's a weird problem, but you can solve it as follows:
- Press Alt+F11 to activate the Visual Basic Editor.
- Press Ctrl+G to activate the Immediate window.
- Type or copy/paste the line shown below into the Immediate window.
- With the insertion point anywhere in that line, press Enter.
- Close the Visual Basic Editor.
- Adjust the column widths.
ActiveSheet.UsedRange.Formula = ActiveSheet.UsedRange.Formula