Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to convert Excel sheet or cells to html table?

Supposing you have a range of cells, and you want to convert the range of cells to an html table as below screenshot shown, how can you quickly handle it? In this article, I introduce some tricks to help you easily convert a sheet or a range of cells to html table in Excel.


goodExport Range to File

Kutools for Excel's Export Range to File function can export or save a range to separate file as
workbook, pdf, text, csv or text.
Click Enterprise > Import/Export > Export Range to File.
doc export cell range to file
Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

arrow blue right bubble Convert cells to html table with Save As command


In Excel, you can use Save As command to quickly convert a range of cells or the whole workbook to html table.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

1. Select the cells you want to convert, and click File > Save As > Browse to show the Save As window. See screenshot:
doc cell to html table 2

2. In the Save As window, specify a folder you are going to place the html table, type the file name you use, and then select Web Page from Save as type drop down list. Then you can choose to save the workbook or only selection to the html table by checking Entire Workbook or Selection option. See screenshot:
doc cell to html table 3

3. Click Save, a Publish as Web Page dialog pops out, and you can click Change to specify the title, if you want to auto update and republish the html table every time, check AutoRepublish every time this workbook is saved, and if you want to auto open this web page after saving, check Open published web page in browser. See screenshot:
doc cell to html table 4

4. Click Publish to finish the saving.
doc cell to html table 1


arrow blue right bubble Convert cells to html table with formulas

If you want to convert cells to html table format and copy it to an html editor as below screenshot shown, you can do as below steps:
doc cell to html table 5

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

1. Enter these texts to a range of cells as below screenshot shown:
doc cell to html table 6

2. Then go to next cell, here is H1, and enter this formula =D1&E1&A1&F1&E1&B1&F1&E1&C1&F1&G1, press Enter, and then drag down the formula to the cell you need.
doc cell to html table 7

3. Then copy these formula cells and pasted them as value in another location. Select formula cells and press Ctrl + C and select a blank cell, J1 and right click to select Paste as Value option in the context menu. See screenshot:
doc cell to html table 8

4. Then you can copy the cell range to the html editor, and enter table tbody and /tbody /table separately into the beginning and the end of the string range. See screenshot:
doc cell to html table 9

Now the Excel cells have been converted to an html table.


arrow blue right bubble Convert cells to html table with Kutools for Excel

If you have Kutools for Excel – a handy Excel tool, you can apply its Export Range to File utility to quickly convert Excel cells to html table/ pdf table/Unicode text table and so on as you need.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

After free installing Kutools for Excel, please do as below:

1. Select the cell range you want to use, and click Enterprise > Import/Export > Export Range to File. See screenshot:
doc cell to html table 10

2. In the Export Range to File dialog, check Simple HTML or Complex HTML (all formatting) option as you need, and then specify an exporting destination you want. See screenshot:

Tip:

Simple HTML: The selected range is exported with grid lines, and the following options can be reserved in the exported file: background color, font name, font size, font color, bold italic, column widths and horizontal alignment.

Complex HTML: All formats of the selected range will be kept in the final file.
doc cell to html table 11

3. Click Ok, and a dialog pops out to remind you to name the exported file, in default it was named with the cell ranges, change it as you need.
doc cell to html table 12

4. Click Ok, and the range has been converted to html table.
doc cell to html table 13

Click here to know more about Export Range to File utility.

pay attention1If you are interested in this addi-in, download the 60-days free trial.

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    vishal suri · 7 months ago
    Hiii

    it i used your kutools , but its not showing date in excel to html cell with dates are shown as ###### . iam simple excel since there are hidden cell i dont want in HTML format
    • To post as a guest, your comment is unpublished.
      Sunny · 6 months ago
      Hi, vishal suri, I am confused, do you want to show the date as general date or just ###### in html file?
  • To post as a guest, your comment is unpublished.
    Peter · 10 months ago
    Would the complex HTML export include fill, font, line weights, etc? Also is the HTML for only the table, or for a whole webpage (like Excel mht)?
    Thanks!
    • To post as a guest, your comment is unpublished.
      Sunny · 7 months ago
      Hi, Peter, the complex HTML export including all formatting, if you select the whole sheet, it will export all sheet contents to html.
  • To post as a guest, your comment is unpublished.
    Андрей · 1 years ago
    А если с формулами?