A direct error stops these array functions; the same error in an array or cell is an element
An error written directly as an argument of these functions is the answer for the whole call. It is not placed in the result: HSTACK(1,#VALUE!) is #VALUE!, not a row holding 1 and an error, and TAKE(#N/A,0) is #N/A. With MAP the LAMBDA does not run at all: MAP(NA(),LAMBDA(xx,IFERROR(xx,3))) is #N/A. The same error inside an array, or in a referenced cell, is an ordinary element: MAP({#N/A},LAMBDA(xx,3)) is 3, and HSTACK(Data!C1,{1;2}) with #N/A in Data!C1 is a 2 by 2 array with #N/A in its first column. TOCOL and TOROW show the difference with ignore 2: TOCOL(#N/A,2) is #N/A, while TOCOL({#N/A},2) drops the error, has nothing left, and is #CALC!. EXPAND is an exception on the cell side: EXPAND(Data!C1,2,2,"pad") is #N/A for the whole call. BYROW and BYCOL check the direct error first too: BYROW(#N/A,#VALUE!) is #N/A, while BYROW({#N/A},2), where 2 is not a LAMBDA, is #VALUE!.
| Formula | Excel | Mathematical value |
|---|---|---|
=HSTACK(1,#VALUE!)Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueTyped formula. | #VALUE! | — |
=TAKE(#N/A,0)Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueTyped formula. | #N/A | — |
=MAP(NA(),LAMBDA(xx,IFERROR(xx,3)))Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueTyped formula. | #N/A | — |
=MAP({#N/A},LAMBDA(xx,3))Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueTyped formula. | 30x4008000000000000 | — |
=HSTACK(Data!C1,{1;2})Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueNumber supplied through a cell. Data!C1: | {#N/A,1;#N/A,2} | — |
=TOCOL(#N/A,2)Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueTyped formula. | #N/A | — |
=TOCOL({#N/A},2)Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueTyped formula. | #CALC! | — |
=EXPAND(Data!C1,2,2,"pad")Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueNumber supplied through a cell. Data!C1: | #N/A | — |
=BYROW(#N/A,#VALUE!)Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueTyped formula. | #N/A | — |
=BYROW({#N/A},2)Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA Inputs and reference valueTyped formula. | #VALUE! | — |