ブログにExcelの表を貼る方法
- 変換する
- 貼る
ブログの記事に、Excelで作った表を載せたい。画像にすると、文字が読みにくく、検索にも載りません。HTMLの表にすれば、文字として載り、スマホでも読みやすくなります。Excelの表をHTML・Markdownにする で変換して、ブログに貼り付けましょう。
手順
- 「Excelファイルを選ぶ」で、.xlsx を選びます。
- 「シート」を選び、「形式」で「HTMLの表」を選びます。
- 「結果をコピー」でコピーします。
- ブログの編集画面を、「HTML」や「コードエディタ」に切り替えて、貼り付けます。
画像より、HTMLの表がよい理由
- 文字が検索に載る
- スマホで拡大しなくても読みやすい
- 表の内容を、あとから直せる
- 画像より、ページが軽い
貼り付けたあとの確認
- 表が、ブログの幅に収まっているか
- スマホで見て、はみ出さないか
- 見出し行が、分かりやすいか
ブログごとの違い
ブログのサービスによって、HTMLを貼る場所が違います。「HTML編集」「コードエディタ」「カスタムHTML」「HTMLブロック」などを探しましょう。
表を見やすくするコツ
- 列の数は、できるだけ少なくする
- 文字は短く、簡潔にする
- 見出し行を付ける
- 列が多いときは、表を分ける
向いている場面
- 料金表・スケジュール表・比較表
- 商品のスペック表
- ランキングや、成績表
例
商品スペックの比較表を、ブログ記事に載せたかった。Excelの表をHTMLにして、HTMLブロックに貼り付けると、スマホでも読みやすい表になった。
つまずきやすい点
- 見たまま編集に貼ると、HTMLがそのまま出る:HTML編集画面に切り替える。
- 表がはみ出る:列を減らす。
- 色が付かない:色は、ブログ側のデザインで決まる。
よくある質問
表の見た目を、変えられますか?
ブログのデザイン設定で、調整します。
まとめ
ブログの表は、画像ではなくHTMLで。HTML編集画面に貼るのが、ポイントです。
Excelの表をHTML・Markdownにするを使う(無料)あわせて使えるツール
- ExcelをCSV・JSONに変換する:Excelのシートを、CSV・TSV・JSONに変換します。
- WordをHTMLに変換する:Wordの文章を、Webに貼れるHTMLにします。
- CSVとJSONを相互変換する:CSVとJSONを、すぐに相互変換します。
同じツールの、ほかの解説
How to Paste an Excel Table into a Blog
- Convert
- Paste
You want to put a table made in Excel in a blog post. As an image the text is hard to read and not searchable. As an HTML table it appears as text and reads well on phones. Convert with Convert an Excel Table to HTML or Markdown and paste into the blog.
Steps
- Choose an .xlsx with "Choose an Excel file".
- Choose the "Sheet", and under "Format" choose "HTML table".
- Copy with "Copy result".
- In the blog editor, switch to "HTML" or "code editor" and paste.
Why an HTML table beats an image
- The text is searchable
- Readable on phones without zooming
- The table content can be fixed later
- The page is lighter than with an image
Checks after pasting
- Does the table fit the blog's width?
- Does it overflow when viewed on a phone?
- Is the header row clear?
Differences between blogs
Where to paste HTML varies by blog service. Look for "HTML edit", "code editor", "custom HTML", "HTML block" and so on.
Tips for readable tables
- Keep the number of columns as small as possible
- Keep text short and concise
- Add a header row
- Split the table when there are many columns
Good for
- Price lists, schedules, comparison tables
- Product spec tables
- Rankings and score tables
Example
Wanted to put a product spec comparison table in a blog post. Turned the Excel table into HTML and pasted it into an HTML block, giving a table that reads well on phones.
Common stumbling blocks
- Pasting into the WYSIWYG editor shows raw HTML: switch to the HTML editing screen.
- The table overflows: reduce columns.
- No colours: colours are decided by the blog's design.
Frequently asked questions
Can I change how the table looks?
Adjust it with the blog's design settings.
Summary
Put blog tables in as HTML, not images. Pasting into the HTML editing screen is the key.
Use "Convert an Excel Table to HTML or Markdown" (free)Tools that go well with this
- Convert Excel to CSV or JSON: Convert an Excel sheet to CSV, TSV or JSON.
- Convert Word to HTML: Turn Word text into HTML.
- Convert CSV and JSON: Convert between CSV and JSON instantly.