Returns a value if #N/A is found
IFNA(value, value_if_na)
IFNA tests a value and checks if #N/A was found. It returns value if #N/A was not found, otherwise returns value_if_na.
Example:
If A1 contains #N/A and A2 contains 1:
IFNA(A1, A2)
returns 1
If A1 contains 2 and A2 contains 1:
IFNA(A1, A2)
returns 2
A | B | ||
|---|---|---|---|
1 | #N/A | 1 | |
2 | 1 |
Product Pricing Lookup
Imagine you have two tables:
Table 1: Product List
Product ID | Product Name | Price | ||
|---|---|---|---|---|
A | B | C | ||
1 | P001 | Laptop | $1,200.00 | |
2 | P002 | Mouse | $25.00 | |
3 | P003 | Keyboard | $75.00 | |
4 | P004 | Monitor | $300.00 | |
5 | P005 | Webcam | $50.00 |
Table 2: Sales Order
Order ID | Product ID (Ordered) | Quantity | Price per Unit | Total Price | ||
|---|---|---|---|---|---|---|
A | B | C | D | E | ||
1 | ORD-001 | P001 | 2 | $1,200.00 | $2,400.00 | |
2 | ORD-002 | P003 | 1 | $75.00 | $75.00 | |
3 | ORD-003 | P006 | 3 | #VALUE! | #VALUE! | |
4 | ORD-004 | P002 | 5 | $25.00 | $125.00 | |
5 | ORD-005 | P007 | 1 | #VALUE! | #VALUE! |
The IFNA function has two main arguments:
In our formula:
Let's trace how this works for different scenarios:
The IFNA function acts as an error trap specifically for #N/A errors. It wraps around the INDEX(MATCH(...)) combination.
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof