A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Wrap the formula in IFNA (or IFERROR) so that #N/A is replaced with a blank string:
=IFNA(
(VLOOKUP(@$E$7:$E$105,'2025 Material'!$A$2:$E$21,5,FALSE)
/VLOOKUP(@$E$7:$E$105,'2025 Material'!$A$2:$E$21,4,FALSE))
*H7,
""
)
Explanation:
- IFNA(value, value_if_na) returns
value_if_naonly when the result is#N/A. - Here
valueis the whole VLOOKUP expression, andvalue_if_nais""(blank). - For any non-
#N/Aresult, the calculated value is returned as normal.
If using IFERROR instead of IFNA and want to catch all error types, use:
=IFERROR(
(VLOOKUP(@$E$7:$E$105,'2025 Material'!$A$2:$E$21,5,FALSE)
/VLOOKUP(@$E$7:$E$105,'2025 Material'!$A$2:$E$21,4,FALSE))
*H7,
""
)
References: