FILTERXML - Function that returns specified data from XML content using the specified XPath in Excel
The following article introduces you to the FILTERXML function - one of the functions in the Web function group is very popular in Excel.
Description: The function returns specified data from XML content using the specified XPath. Support functions from Excel 2013 onwards.
Syntax: FILTERXML (xml, xpath)
Inside:
- xml: A string in valid XML, is a required parameter.
- xpath: A string in standard XPath form, is a required parameter.
Attention:
- If xml is invalid -> the function returns the #VALUE! Error value
- If the xml contains a namespace with an invalid prefix -> the function returns the #VALUE! Error value
For example:
Determining the return value from the XML content returned in the URL string is described in the table below:
- Find the WEBSERVICE value from the above URL string. Enter the formula: = WEBSERVICE (D6)
- Press Enter -> return value is:
- The value returned from the XML content returned in the URL string. Enter the formula: = FILTERXML (D7, "// food / name")
- Press Enter -> the value returned from the XML content in the above URL string is:
Above are instructions and some specific examples when using the FILTERXML function in Excel.
Good luck!
You should read it
- F.DIST.RT function - The function returns the right probability distribution F for 2 data sets in Excel
- FTEST function - The function returns the result of an F-Test in Excel
- HARMEAN function - The function returns the harmonic average of a data set in Excel
- GEOMEAN function - The function returns the average of a positive array or range of data in Excel
- PERCENTILE function - The function returns the kth percentile in Excel
- LOGNORM.INV function - The function returns the inverse of the logarithmic distribution of x in Excel
- CHISQ.TEST function - The function returns the independence test in Excel
- WEBSERVICE function - The function returns data from a web service on the Internet or Intranet in Excel
May be interested
- How to use the IF function in Excelthe if function in excel checks for a true or false condition. if the condition is true, the function returns a value, if the condition fails the function returns another value
- WEBSERVICE function - The function returns data from a web service on the Internet or Intranet in Excelwebservice function: the function returns data from a web service on the internet or intranet. support functions from excel 2013 onwards. syntax: webservice (url)
- How to use the Match function in Excelthe match function on excel looks for a value defined in an array, cell range on the data table and returns the position of the value in the array, that range.
- NOW function - The function returns the current date and time in Excelnow function: the function returns the current date and time. the now function is useful when you want to display the current date and time. the now function does not update continuously, it only updates when you have editing operations on the data area containing it.
- T.DIST.RT - The function returns the Student's t-distribution on the right in Excelt.dist.rt: the function returns the student's t-distribution on the right. functions used in testing the hypothesis of small numbers of data sets. support functions from excel 2010 onwards. syntax: t.dist.rt (x, deg_freedom)
- QUARTILE.INC function - The function returns the quartile of a dataset including values 0 and 1 in Excelquartile.inc function: the function returns the quartile of a data set, with percentile values from 0 to 1 including 0 and 1. support functions from execl 2010 onwards. syntax: quartile.inc (array, quart)
- F.TEST function - The function returns the result of the F - test in Excelf.test: the function returns the result of the f - test, the probability of two ends where the variance of 2 arrays is not significant. support functions from excel 2010 version. syntax: f.test (array1, array2)
- ZTEST function - Returns the probability value on one side of the z test in Excelztest function: the function returns the one-sided probability value of the z test. for the hypothetical population mean, the function returns the probability that the sample mean will be greater than the sample mean observed in the data set or array.
- PERCENTRANK function - The function returns the rank of the value in Excelin sorting and statistical data, you often have to rank the objects according to a certain criteria. the following article details how to use the percentrank function to find the rank of the value.
- CELL function - The function returns information about the format or content of a cell in Excelcell function: the function returns information about the format or content of a cell. syntax: cell (info_type, [reference])