Home › Functions › Web › FILTERXML
fx
FILTERXML
Web  ·  Since: Excel 2013  ·  9 languages

The FILTERXML function returns specific data from XML content by using the specified xpath.

🌐 Translations

English FILTERXML
Deutsch XMLFILTERN
Français FILTRE.XML
Español XMLFILTRO
Italiano FILTRO.XML
Português FILTROXML
Nederlands XML.FILTEREN
Polski FILTERXML
Русский ФИЛЬТР.XML

📦 Availability

Excel versionAvailable
Excel 2007 ✗
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

FILTERXML(xml,xpath)

Arguments

xml (required) — A string in valid XML format
xpath (required) — A string in standard XPath format

▶ Examples

=FILTERXML(B3,"//rc/@title")
=FILTERXML(B3,"//rc/@timestamp")
=FILTERXML(WEBSERVICE("http:⁠//dev.markitondemand.com/MODApis/Api/Quote/xml?symbol="&ENCODEURL(C2)),"//QuoteApiModel/Data/LastPrice")

Related functions

Copied to clipboard