Going Stellar

Home/Google Sheets reference

Google Sheets function · Web and import

IMPORTFEED in Google Sheets: syntax and examples

IMPORTFEED downloads an RSS or Atom feed and returns what the query asks for: the feed title, or the titles, links and other fields of its items. The content depends on what the feed holds at the moment of the call.

Syntax

IMPORTFEED(url, [query], [headers], [num_items])

Arguments

ArgumentTypeRequiredWhat it does
urlstringyesThe address of the RSS or Atom feed, with http:// or https://. A cell reference works.
querystringnoWhat to return, for example "feed title" or "items title". The default is "items".
headersbooleannoTRUE adds a header row. The default is FALSE.
num_itemsnumbernoHow many items to return. All items are returned if omitted.

Examples

The examples use this table, starting in A1:

https://blog.google/rss/
=IMPORTFEED(A1, "feed title")

Result: News from Google

The name of the feed itself.

Run in a Google Sheet (English US locale) on . The result changes over time; this is the value on the run date.

=IMPORTFEED(A1, "items title", FALSE, 3)

Result:

15 years of investing in Colombia’s talent and future
We’re launching Humanity’s First Exam and a Kaggle hackathon to test LLM reliability.
See what 5 builders are making with Gemini 4 Neon

The first three item titles, one under the other.

Run in a Google Sheet (English US locale) on . The result changes over time; this is the value on the run date.

=IMPORTFEED(A1, "items title", TRUE, 2)

Result:

Title
15 years of investing in Colombia’s talent and future
We’re launching Humanity’s First Exam and a Kaggle hackathon to test LLM reliability.

With headers set to TRUE the first row is the column label.

Run in a Google Sheet (English US locale) on . The result changes over time; this is the value on the run date.

=IMPORTFEED(A1, "items url", FALSE, 1)

Result: https://blog.google/company-news/outreach-and-initiatives/google-org/15-years-investing-colombia-talent-future/

The link of the first item.

Run in a Google Sheet (English US locale) on . The result changes over time; this is the value on the run date.

=ROWS(IMPORTFEED(A1, "items title"))

Result: 20

How many items the feed currently holds.

Run in a Google Sheet (English US locale) on . The result changes over time; this is the value on the run date.

=IMPORTFEED(A1, "feed url")

Result: https://blog.google/

The address of the site behind the feed.

Run in a Google Sheet (English US locale) on . The result changes over time; this is the value on the run date.

Common errors

  • The address must be a real feed. Plain text such as "not a url" and an ordinary HTML page both return #N/A.
  • An unknown query, such as "bogus", returns #VALUE!. So does num_items set to 0.
  • Without a query the function returns the whole item table, five columns on the feed used here. Use "items title" or "items url" to get a single column.
  • headers = TRUE adds one row on top. Count that row when you use ROWS, INDEX or a range reference on the result.

Compared with Excel

Excel has no IMPORTFEED function.

Sources

  1. IMPORTFEED (Docs Editors Help)

Markdown version · All functions