# Help Posting Tables

**URL:** <https://discussion.fool.com/t/help-posting-tables/101192>\
**Category:** New Site Help and Feedback\
**Created:** [January 30, 2024, 4:05am UTC](https://discussion.fool.com/t/help-posting-tables/101192 "2024-01-30T04:05:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![syke6](https://sea2.discourse-cdn.com/motleyfoolfree/user_avatar/discussion.fool.com/syke6/32/26265_2.png) [@syke6](https://discussion.fool.com/u/syke6)\
**Post date:** [January 30, 2024, 4:05am UTC](https://discussion.fool.com/t/help-posting-tables/101192/1 "2024-01-30T04:05:05Z")

</div>

Let’s say I have a table in Google sheets that I want to post. I can hit the gear and build a table, but how do I simply copy and paste?

If I copy and paste using the preformatted text option I get a big jumbled mess.

```auto
	Coal	Natgas	"Other
Gas"	Nuclear	"Hydroelectric
Conventional"	Solar	"Renewable
Sources
Excluding
Hydroelectric and Solar"	Renewables
2018	1,149,487	1,471,843	13,463	807,084	292,524	63,825	350,467	414,292
2022	831,512	1,687,067	11,722	771,537	254,789	143,797	502,231	646,028
Change	-317,975	215,224	-1,741	-35,547	-37,735	79,972	151,764	231,736
% Change	-27.66%	14.62%	-12.93%	-4.40%	-12.90%	125.30%	43.30%	55.94%

```

---

<div class="post-metadata">

**Author:** ![Goofyhoofy](https://sea2.discourse-cdn.com/motleyfoolfree/user_avatar/discussion.fool.com/goofyhoofy/32/4721_2.png) [@Goofyhoofy](https://discussion.fool.com/u/Goofyhoofy)\
**Post date:** [January 30, 2024, 4:13am UTC](https://discussion.fool.com/t/help-posting-tables/101192/2 "2024-01-30T04:13:17Z")

</div>

Screen shot.  
Crop.  
Post as a jpg.

---

<div class="post-metadata">

**Author:** ![Raylight](https://sea2.discourse-cdn.com/motleyfoolfree/user_avatar/discussion.fool.com/raylight/32/4897_2.png) [@Raylight](https://discussion.fool.com/u/Raylight)\
**Post date:** [January 30, 2024, 12:15pm UTC](https://discussion.fool.com/t/help-posting-tables/101192/3 "2024-01-30T12:15:33Z")

</div>

You can copy and paste directly from Excel and Google Sheets into the editing window. Or from a text editor. Discourse then automatically converts it into a table. **It doesn’t always work, however.** E.g. if you a have spurious tab or a mismatch somewhere, you’ll get the text as is instead, with tabs that are indistinguishable from spaces in the editor.

In your example it’s the header row that breaks things. For the conversion to work, every row needs to have the same number of columns, and for some reason the header has been split into multiple lines, breaking this criteria.

Also, note that the conversion won’t happen if you paste into a preformatted section. (I.e. ````` or `<pre>`.) In that case, the text along with tabs will be kept as is.

So, if you instead copy this

```plaintext
	Coal	Natgas	"Other Gas"	Nuclear	"Hydroelectric Conventional"	Solar	"Renewable Sources Excluding Hydroelectric and Solar"	Renewables
2018	1,149,487	1,471,843	13,463	807,084	292,524	63,825	350,467	414,292
2022	831,512	1,687,067	11,722	771,537	254,789	143,797	502,231	646,028
Change	-317,975	215,224	-1,741	-35,547	-37,735	79,972	151,764	231,736
% Change	-27.66%	14.62%	-12.93%	-4.40%	-12.90%	125.30%	43.30%	55.94%

```

and paste into the editing window (and not inside any ````` or `<pre>`), you should get a proper table:

| | Coal | Natgas | Other Gas | Nuclear | Hydroelectric Conventional | Solar | Renewable Sources Excluding Hydroelectric and Solar | Renewables |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 2018 | 1,149,487 | 1,471,843 | 13,463 | 807,084 | 292,524 | 63,825 | 350,467 | 414,292 |
| 2022 | 831,512 | 1,687,067 | 11,722 | 771,537 | 254,789 | 143,797 | 502,231 | 646,028 |
| Change | -317,975 | 215,224 | -1,741 | -35,547 | -37,735 | 79,972 | 151,764 | 231,736 |
| % Change | -27.66% | 14.62% | -12.93% | -4.40% | -12.90% | 125.30% | 43.30% | 55.94% |

If you want to try your luck with tabs and go for and old school table instead, you’ll need to use ````` or `<pre>` and copy and paste tabs to try to align the columns until it looks ok in the preview window. Tip: put ` ```text` instead of ````` at the beginning of your section to get rid of the colors.

---

<div class="post-metadata">

**Author:** ![syke6](https://sea2.discourse-cdn.com/motleyfoolfree/user_avatar/discussion.fool.com/syke6/32/26265_2.png) [@syke6](https://discussion.fool.com/u/syke6)\
**Post date:** [January 30, 2024, 4:48pm UTC](https://discussion.fool.com/t/help-posting-tables/101192/4 "2024-01-30T16:48:27Z")

</div>

Awesome! thank you!

+20 characters
