The ENCODEURL function returns a URL-encoded string, replacing certain non-alphanumeric characters with the percentage symbol (%) and a hexadecimal number.
The ENCODEURL function is not available in Excel for the web or Excel for Mac.
The ENCODEURL function may appear in Excel for Mac's function gallery, but it relies on Windows operating system features, so it will not return results on Mac.
The ENCODEURL function syntax has the following argument.
Text A string to be URL encoded.
Here is a simple example, which references an Excel file on a Microsoft SharePoint server.
=ENCODEURL("http://contoso.sharepoint.com/teams/Finance/Documents/April Reports/Profit and Loss Statement.xlsx")
Which results in:
You can also use the ENCODEURL function in conjunction with the WEBSERVICE function. For example: