Discussion Locked

Excell Formula Displaying Results Field

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Currently my client designed a spreadsheet with a VLOOKUP formula throughout the form. Every cell that has that formula applied to it shows "#N/A" until data is entered. Is there a way to hide the #N/A in the cells without taking away the formulas? Here is the current formula in the cells: =VLOOKUP(A14,DATA_EQUIP,2,FALSE)

Would like to print when needed & the N/A doesnt look so great. The only way I was able to hide the N/A's the formulas disappeared.

3 replies

by churdoo

One way is to test for a blank value with an if statement. The syntax for IF is:
=IF(logical_expression,value_if_true,value_if_false)
for example:
=if(isblank(A14),0,VLOOKUP(A14,DATA_EQUIP,2,FALSE))

The above statement will test cell A14 for a blank value, and if blank, will return 0, but if A14 contains a value, then it will invoke the VLOOKUP formula. You can replace the zero with a more appropriate message, or an empty string " ".

--cnh

This discussion is closed to new replies.