This article describes the formula syntax and usage of the WEBSERVICE function (function: A prewritten formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that perform lengthy or complex calculations.) in Microsoft Excel.
Returns data from a web service on the Internet or Intranet.
The WEBSERVICE function syntax has the following arguments.
- Url Required. The URL of the web service.
- If arguments are unable to return the data, WEBSERVICE returns the #VALUE! error value.
- If arguments result in a string that is not valid or that contains more than the allowable cell limit of 32767 characters, WEBSERVICE returns the #VALUE! error value.
- If url is a string that contains more than the 2048 characters that are allowed for a GET request, WEBSERVICE returns the #VALUE! error value.
- For protocols that aren’t supported, such as ftp:// or file://, WEBSERVICE returns the #VALUE! error value.
The workbook below shows examples of this function. Inspect them, change existing formulas, or enter your own formulas to learn how the function works.
To work more in-depth with the example data in Excel, download the embedded workbook to your computer, and then open it in Excel.