NZ

Checks if the value is #NULL!. If the argument evaluates to TRUE, the function returns the alternate value, otherwise it returns the value.

Syntax

NZ(value, alternate)

ArgumentDescription
valueCan be a column reference. If value is #NULL!, the function returns the value in alternate. Otherwise, it returns value.
alternateCan be numbers, text, or column references. The value in alternate is returned if value is #NULL!.

Example

Col1Col2FormulaDescription (Result)
#NULL!200=NZ([Col 1],[Col2])Checks whether the value in Col1 is the #NULL! error and returns the alternate value (200).
400450=NZ([Col 1],[Col2])Checks whether the value in Col1 is the #NULL! error and returns the alternate value (400).