Excel #NAME? error with IFNA

f_qi picture f_qi · May 8, 2017 · Viewed 7.1k times · Source

Strange behavior in Excel 2016 running on Windows 7.

Please refer to the screenshots below:
In Pic 1, the cell in red box shows #NAME? error. When I click "Enable Editing" on top, you can see in Pic 2, the cell shows value. Pic 3 shows the formula I'm using for this cell.

Additional information: I have multiple copies of this excel file, filled with different information. Only a few of them show this error, others display the value with no problem.

My question is, what causes this and how I can fix it?

Pic 1:
enter image description here

Pic 2:
enter image description here

Pic 3:
enter image description here

Answer

user4039065 picture user4039065 · May 8, 2017

The IFNA function was introduced with Excel 2013. If the workbooks are being opened on computers using Excel 2010 (or earlier) the function will not work and produce a #NAME? error as Excel 2010 (or earlier) does not have IFNA as a native function. Further, if the workbooks are saved in Excel 2010 (or earlier), the #NAME? remains and will be displayed for Excel 2013 and 2016 users.

Switch to the IFERROR function which was introduced with Excel 2007 to provide wider compatibility. For the purposes of offering a default value in the case of no match to the lookup, they operate exactly the same way. The IFNA is only useful to isolate errors that are not #N/A.