Syntax
=IMPORTDATA(url, [delimiter], [locale])Arguments
| Argument | Required | Description |
|---|---|---|
url | Required | The file address |
delimiter | Optional | The column delimiter |
locale | Optional | Locale for parsing |
How to use IMPORTDATA
This function reads data from outside the workbook, so its result depends on what the source returns when the sheet calculates.
IMPORTDATA takes 1 required argument and 2 optional arguments. Type =IMPORTDATA( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=IMPORTDATA("https://example.com/a.csv")Result Related web functions
- FILTERXMLReads values from XML using an XPath. It is turned off for safety, so this returns #BLOCKED!.
- GOOGLEFINANCEGets current or past stock market data. Live web data is not available yet, so this returns #BLOCKED!.
- HYPERLINKCreates a link that opens a web page or a place in the workbook when clicked.
- IMAGEShows a picture from a web address inside the cell.
- IMPORTFEEDImports an RSS or Atom feed. Live web data is not available yet, so this returns #BLOCKED!.
- IMPORTHTMLImports a table or list from a web page. Live web data is not available yet, so this returns #BLOCKED!.
- IMPORTRANGEImports a range from another spreadsheet. Live web data is not available yet, so this returns #BLOCKED!.
- IMPORTXMLImports data from a web page using an XPath query. Live web data is not available yet, so this returns #BLOCKED!.
- STOCKHISTORYGets the price history of a stock. Live web data is not available yet, so this returns #BLOCKED!.