Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Sheets IMPORTDATA() with no header

I'm looking over the documentation for IMPORTRANGE() to remove the header row, but it looks like I cannot do that.

How would I remove a header row from an external data source I'm bringing into Google Sheets using IMPORTRANGE() ?

Example data:

A B C

1 2 3
4 5 6
7 8 9

But I only want:

1 2 3
4 5 6
7 8 9

Thanks

like image 381
Chef1075 Avatar asked Jul 06 '26 04:07

Chef1075


1 Answers

=QUERY(IMPORTDATA(<myUrl>),
       "SELECT * OFFSET 1", 0)

Selects all but the first row of the CSV, works because the 0 argument makes it consider the header a row that is then skippable.

like image 63
Robin Gertenbach Avatar answered Jul 07 '26 19:07

Robin Gertenbach



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!