It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to keep formatting when paste /import contents from excel/word in confluence page? Edited

Hi community,

This is my first question and I am newbie in Confluence.
I pushed my manager to implement confluence for team collaboration and I proved that it works for the team. But one of my team member ask me question how he can paste table from Excel to Confluence page and keep the source formatting? for this question i didn't have answer and then did some googling and found that either I can import word document or copy source table from Excel and paste in confluence page - but none of them keep the source formatting.

Can someone help me here pls.

Thanks in advance. 

 

3 answers

1 vote

Usman,

What kind of formatting are you trying to preserve?

In Confluence, if you want the data you paste from an Excel table to still be in a table, you have to prepare the table first in Confluence.

Thus:

  1. You have a 5 column, 5 row Excel spreadsheet.
  2. Create a table in Confluence that has 5 rows, 5 columns.
  3. Select the content you require in Excel and copy it.
  4. Select the top row in Confluence table.
  5. Paste.

This will retain all cells in their original columns and rows.

As for having this happen automatically, there is a quite long-standing feature request for this. Despite its age, I would still recommend that you vote on it and comment with your usage case:

Let me know if you have any questions.

Regards,

Shannon

Hi Shannon,

Thanks for for answering my question basically I want to preserve cell colors from my Excel spread sheet.As there are so many cells with so many different colors in my Excel spreadsheet and if I create table in Confluence from start then it won't be time efficient as  I have to migrate 100+ excel spreadsheets from Excel to Confluence.

Hi Usman,

In that case, the above feature request would indeed cover it.

I'm not aware of any current add-ons that could help with this, but you can start here:

In addition, I've added your question to the Marketplace collection in case any vendors have suggestions for you.

Regards,
Shannon

Thanks Shannon I tried your technique works good but cell colors are not preserved.
again thanks for raising it in marketplace collection.can you please share link.cheers

Hi Usman,

That is correct, colors won't be maintained in this way. Note that Confluence only supports a handful of colors for cells as well, so you may not be able to use the same colors you have in Excel.

The question is now in BOTH the Confluence and the Marketplace collection, so the link is the same.

Shannon

Thanks Shannon.

I've had some decent success with saving a sheet selection using the "Save As Web Page" option as an htm file, stripping out (or commenting) any html, head, body, and meta tags, and the pasting the result into a HTML Macro. 

This preserved any formatting that I've tried except for fill patterns and over-strikes which could be manually added to the css in the style tag.

@Usman Jawaid , try using Internet Explorer and pasting the contents.

If it does not paste the cells with colors in the first go, Undo (Ctrl+z) and paste.

I had a similar requirement, IE worked like a charm.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

32 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you