Formualizer Docs

NA

Returns the #N/A error value.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=NA()

Return type

Error (#N/A)

Remarks

  • NA() is commonly used to mark missing lookup results.
  • The function takes no arguments.
  • The returned value is an error and propagates through dependent formulas.

Examples

Mark an observation as missing and substitute descriptive text for it.

Formula =IFNA(NA(),"No observation")

Expected result No observation

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Check explicitly for the missing-value error.

Formula =ISNA(NA())

Expected result TRUE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Count the numeric observations while representing missing data as empty text.

Formula =COUNT({0,1},IFNA(NA(),""))

Expected result 2

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Produce the missing-value error directly.

Formula =NA()

Expected result #N/A

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

When should I use NA() intentionally?

Use it to mark missing data so lookups and downstream checks can distinguish absent values from blanks.

Implementation

Engine source

On this page