Section: Excel & Google Sheets

IMPORTFEED in Google Sheets pulls an RSS or Atom feed into cells, so headlines, links and post dates land in a sheet you can sort and filter. This guide covers the syntax, the four query types, how to fetch only headlines, why the data sometimes will not load, and how IMPORTFEED differs from IMPORTXML and IMPORTDATA.
What IMPORTFEED does
Google describes the function in one line: it imports an RSS or Atom feed. You give it a feed address and it returns the feed information or its items as a table. The address must include the protocol, so the full http or https URL, either in quotes or in a cell reference.
That is the whole idea. A blog, a news site, a podcast or a YouTube channel that publishes a feed becomes a live table in your spreadsheet, without a copy and paste step.

The syntax
=IMPORTFEED(url, [query], [headers], [num_items])
- url is the feed address, required, with its protocol.
- query is optional and defaults to "items". It decides what part of the feed comes back.
- headers is optional and defaults to FALSE. Set it to TRUE to add a header row above the result.
- num_items is optional. It limits how many items come back, starting from the most recent. Leave it out and every item currently in the feed is returned.
Google's own sample usage is =IMPORTFEED("http://news.google.com/?output=atom"). The second sample, =IMPORTFEED(A2,B2,C2,D2), shows the same four arguments coming from cells, which is the pattern to copy when you want a user to paste in a feed address.

The four query types
The query argument is where the function earns its place, and Google's list is short enough to memorise:
- "feed" returns one row of feed information: title, description and url.
- "feed title", "feed description", "feed author" and "feed url" return that single attribute.
- "items" returns a table of items, the default.
- "items title", "items summary", "items url" and "items created" return one column of that attribute.
The summary attribute is the item content minus hyperlinks and images, so it is plain text you can read in a cell. The created attribute is the post date.
Pull just the headlines
For a headline list, ask for one attribute: =IMPORTFEED(A2,"items title",TRUE,20). That returns a header row and up to 20 titles, newest first.
To get titles and links side by side, use two formulas with the same arguments and different attributes, or ask for "items" and keep the columns you want. The single-attribute version is tidier and does not bring along columns you will delete.
Sorting is worth a thought. The feed arrives newest first, and Google's num_items counts from the most recent, so the order is set by the feed, not by your sheet.
Headers and item counts
With headers at TRUE you get a label row, which makes the result easier to read and easier to reference from a formula. With headers at FALSE you get data only, which is what you want when the result feeds another function.
Keep num_items modest. A large count on a busy feed means a large import on every recalculation, and the import functions share a usage limit.

When it will not load
Google's help for the import family names the error you see when too many import calls are made: the cell shows "Loading..." and then a message about reducing the number of IMPORTHTML, IMPORTDATA, IMPORTFEED or IMPORTXML functions across your spreadsheets. The limits are enforced on the creator of the document, and an edit by a collaborator can count against your quota too.
On freshness, the IMPORTRANGE page in the same family says it checks for updates every hour while the document is open. Treat imported feed data as an hourly snapshot rather than a live ticker, and avoid putting a volatile function such as NOW inside the reference chain.
Not every address is a feed. A normal web page returns an error, and a feed behind a login may fail. Check the address in a browser first: a real feed shows XML with item tags, not a styled page.

IMPORTFEED compared with the other import functions
- IMPORTFEED reads RSS and Atom feeds.
- IMPORTXML reads structured data by XPath, including feeds and HTML pages.
- IMPORTHTML reads a table or list from an HTML page.
- IMPORTDATA reads a CSV or TSV file at a URL.
- IMPORTRANGE reads a range from another Google spreadsheet.
If the site offers a feed, IMPORTFEED is the simplest route. If it does not, IMPORTXML with an XPath is the next step, and a CSV export is usually more reliable than scraping a page.
Common problems
- #N/A error. The address is not a feed, or it is wrong. Open it in a browser to check.
- Only the first item appears. The formula is inside a function that expects a single value.
- An empty column. That attribute is missing from this feed. Try "items" to see what the feed actually carries.
- "Loading..." that never finishes. Too many import calls across your documents. Reduce them.
- The date looks odd. "items created" comes back as text or a date value depending on the feed, so check the cell format.
- Old items in the sheet. The feed changed or the import has not refreshed yet.
Questions and answers
What is IMPORTFEED in Google Sheets?
It imports an RSS or Atom feed into cells, either the feed information or its items.
Can IMPORTFEED import a normal web page?
No. It expects a feed. Use IMPORTHTML or IMPORTXML for a page.
How do I get only the headlines?
Use the query "items title".
How many items can I ask for?
num_items limits the result, counting from the most recent. Leave it out and every item in the feed comes back.
Does IMPORTFEED update on its own?
It refreshes as the document recalculates, and the import functions check for updates on their own schedule rather than instantly.
