FILTERXML
selects values from an xml STRING with an xpath · from excel · excel: differs in detail · no sheets equivalent
signature
FILTERXML(xml, xpath)
returns: array
| argument | required |
|---|---|
| xml | required |
| xpath | required |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
fx
=FILTERXML("<r><t>alpha</t></r>", "//t") alpha errors
error values observed from the engine — each with a call that produces it.
| error | produced by |
|---|---|
| #VALUE! | =FILTERXML(2, 2) |