# How to create spreadsheet with header row

**URL:** <https://community.n8n.io/t/how-to-create-spreadsheet-with-header-row/12970>\
**Category:** Questions\
**Tags:** node, google-sheets\
**Created:** [April 7, 2022, 8:16pm UTC](https://community.n8n.io/t/how-to-create-spreadsheet-with-header-row/12970 "2022-04-07T20:16:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay.singh](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jay.singh](https://community.n8n.io/u/jay.singh)\
**Post date:** [April 7, 2022, 8:16pm UTC](https://community.n8n.io/t/how-to-create-spreadsheet-with-header-row/12970/1 "2022-04-07T20:16:35Z")

</div>

How can I create google spreadsheet with first row as header key such as  
R0C0- header1  
R0C1-header 2

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [April 8, 2022, 4:33am UTC](https://community.n8n.io/t/how-to-create-spreadsheet-with-header-row/12970/2 "2022-04-08T04:33:33Z")

</div>

Hey @jay.singh, check out this example:

> [@Google Sheets "Bad Request" error when writing to Sheet](http://community.n8n.io/t/google-sheets-bad-request-error-when-writing-to-sheet/12804/4):
>
> Thanks for the workflow @Nicolai, I think I have an idea as to what’s going on here. The Update operation would require an array representing each row (which itself is represented by an array containing field of the row). Unfortunately I don’t have your binary file, so can’t modify your exact workflow, but I hope this example helps: The Create Rows node would return data looking like so: This will result in a Google Sheet looking like this: Hope t…

Simply create a fresh sheet before running the operation from the above example and you should be good to go.

---

<div class="post-metadata">

**Author:** ![ihortom](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ihortom/32/11473_2.png) [@ihortom](https://community.n8n.io/u/ihortom)\
**Post date:** [December 7, 2022, 7:48pm UTC](https://community.n8n.io/t/how-to-create-spreadsheet-with-header-row/12970/3 "2022-12-07T19:48:58Z")

</div>

New Google Sheet node is quite different from the older version and appears to be more sophisticated. To be able to add headers to the new spreadsheet I have come up with the following solution

Hopefully it is helpful.

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [March 7, 2023, 7:49pm UTC](https://community.n8n.io/t/how-to-create-spreadsheet-with-header-row/12970/4 "2023-03-07T19:49:53Z")

</div>

Closed on March 7, 2023, 7:49pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
