WEBSERVICE function

This article describes the formula syntax and usage of the WEBSERVICE function in Microsoft Excel.

Note   The WEBSERVICE function is not available in Excel Online, and it is not available in Excel 2016 for Mac.

Description

Returns data from a web service on the Internet or Intranet.

Syntax

WEBSERVICE(url)

The WEBSERVICE function syntax has the following arguments.

  • Url    Required. The URL of the web service.

Remarks

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

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Formula

Description (Result)

=WEBSERVICE(“http://mywebservice.com/serviceEndpoint?searchString=Excel”) 

Data returned varies, based on the query.

Applies To: Excel 2013, Excel Online



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language