Can't easily paste a Google Sheets table into a Confluence table?
Asked by Manas Kulkarni:

Hi there,

We use Confluence for our team's Sprint Retro meetings, and one of the sections is a 3 column table that I populate by copying data from a Google Sheet.

I used to just be able to copy and paste directly, and the data would populate perfectly in the rows and columns.

However, when I tried today, Confluence tried pasting all of the data into a single cell, even when I tried "Paste and Match Style" (I'm using Chrome if that helps.)

I wonder if this is a bug with the new Confluence layout that I just switched to?


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Manas Kulkarni](/t5/user/viewprofilepage/user-id/1994167) ,

Hope you've already solved your problem because for us everything works fine (have just checked it for Confluence Cloud).

By the way, for large tables we use another workaround:

* copy the share link of your Google Docs Spreadsheet
* change its ending: "edit?usp=sharing" -\> "export?\&format=tsv" (or "export?\&format=csv")
* paste the modified link to your browser and go to it: you will be prompted to download your file in the chosen format
* use the [Table from CSV](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+from+CSV+macro) macro to recreate your table in Confluence

The Table from CSV macro is a part of the[Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app which can help you to make pivots, perform calculations, merge and transform tables, freeze rows, built custom charts, etc.

It's a wonderful solution to enhance the standard Confluence functionality which provides an opportunity to perform all the required operations in Confluence without switching back to Google Docs or Excel.

comments: author: Manas Kulkarni
body: Thanks [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746), good to know! I'll be testing it out next week for sure.


author: Katerina Kovriga {Stiltsoft}
body: And here is another option to connect you Google Sheets to the [Table from CSV](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+from+CSV+macro) macro via a URL:

**Step 1**Go to the Publish to the web tab

![image2020-10-2_16-57-51.png](https://community.atlassian.com/t5/image/serverpage/image-id/112793i7A6429DA7D6FC233/image-size/large?v=v2&px=999 "image2020-10-2_16-57-51.png")

**Step 2**Choose the CSV type and allow other users to see it

![image2020-10-2_16-58-38.png](https://community.atlassian.com/t5/image/serverpage/image-id/112794i8DA434333C99A2D5/image-size/large?v=v2&px=999 "image2020-10-2_16-58-38.png")

**Step 3**Get the required URL for the Table from CSV macro

![image2020-10-2_16-59-9.png](https://community.atlassian.com/t5/image/serverpage/image-id/112795iB66C6703490ACED0/image-size/large?v=v2&px=999 "image2020-10-2_16-59-9.png")


author: MOh G
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) what if it is necessary to authenticate using Corp. account?

the macro can't authenticate to the generated shared URL and displays this error

Failed to retrieve data from URL:

Request failed: 403 Forbidden

In a Macro like Google Drive, it would display an authentication window to get a token from Google services

Any workaround?


author: Katerina Kovriga {Stiltsoft}
body: Hi [@MOh G](/t5/user/viewprofilepage/user-id/4892582) , I'm sorry, I'm out of the office for the next week.

Please contact our support team.


Tags: cloud

google-sheets