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

argumentrequired
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.

errorproduced by
#VALUE! =FILTERXML(2, 2)

related

  • DECODEURL decodes URL-encoded text
  • ENCODEURL encodes text for use in URLs using percent encoding
  • QUERY runs SQL-like query on data range