HTML tabular array code
tables inwards your blog: why yous powerfulness wishing to usage them, as good as roughly options for making a table,
These include using a HTML-code-generator to acquire the "skeleton" of the table. With this approach, the hardest element is putting the tabular array content (ie the words, numbers as good as pictures) into the correct identify inwards the HTML, thus that it appears inwards correct jail mobile telephone inwards the table.
This is slow enough for a little table. But if yous wishing to construct a tabular array alongside more information (eg I lately posted a book-index alongside 100 rows past times times v columns), it tin in conclusion a little tedious. Even if yous prepare your posts inwards private (which lets yous relieve frequently without worrying nigh auto-save), it tin silent in conclusion existent hard to construct certainly that yous laid the correct contents inwards the correct cell. And because Blogger's ship service editor doesn't steal tables well, it tin sometimes practise unexpected things to them,.
But at that topographic betoken are roughly alternatives.
Many programs similar Excel, Word, etc at present guide hold an choice to save as HTML - thus yous could but usage facial appear at the file they construct alongside a text editior (eg Notepad), as good as convey the relevant bits. That said, they ordinarily include a lot of extra code, eg for fonts, layouts etc, thus yous may acquire to a greater extent than than yous create out for.
Commercial spider spider web development packages, eg Dreamweaver, may guide hold tabular array editing tools - fifty-fifty thus many people cannot justify the price of buying as good as learning them for smaller jobs.
Another choice is to use Excel to tending your tabular array of data, as good as usage it's text-string manipulation functions to plough it into valid HTML code. This isn't as hard as it sounds, especially if mortal else does the initial formulas for you.
The first template was made before I understood CSS: it uses text-functions to laid formatting code into every single tabular array cell - though yous tin but acquire out things blank if yous don't wishing them formatted. It may in conclusion best to usage if yous don't empathise CSS.
The second template uses CSS styles to format the table. This way yous tin modify the formatting of all the tables inwards your website but past times times changing the CSS rules, ie yous don't guide hold to edit each soul table. The Excel file lists the CSS styles yous require to define, as good as the names (eg keyTableOdd for foreign numbered rows) exhibit what each style is used for.
1 Download the template
two Check the formatting settings inwards the template. Set upward CSS styles inwards your website if yous are using the 2nd version.
three Create table header as good as footer statements yourself, or past times times using an HTML tabular array generator.
iv Adjust the Excel template, thus that
v Put the information for your tabular array into the data expanse inwards the spreadsheet
half dozen Copy the text from the output area, paste it into a text editior (eg Notepad)
vii Use the text editor's Find/Replace role to change all cases of three apostrophes inwards a row (ie ''') into double quotes.
8 Copy the changed text from your text editor into the "body" subdivision of your tabular array statement.
This sounds similar a lot of slice of piece of work but I've works life that fifty-fifty if a tabular array is alone 10 rows long, using a HTML-generators-spreadsheet is a lot to a greater extent than efficient than trying to type the values into it row-by-row.

I'm assuming that yous empathise a little nigh how Excel stores information inwards cells, as good as refers to those cells past times times their Row/Column combination, eg "E5" - if not, banking concern stand upwardly for out an Excel tutorial before reading on
Also, yous require to empathise the ideas of copying formulas between rows, as good as the usage of relative co-ordinates inwards them to construct certainly that each new row or column picks upward the correct values. Again, an Excel tutorial would in conclusion a goodness visit if you're non familiar alongside copying formulas.
As goodness as these total full general ideas, at that topographic betoken are here are ii Excel concepts that are the soil of these templates:
= "whatever" puts a text-string alongside the characters whatever into the cell
= a1 & b1 combines the text strings inwards cells a1 as good as b1 (b1 goes at i fourth dimension after on a1)
= "This is A1: " & a1 & ". This is B1: " & B1 &"."
The 3rd role combined the ii foremost ones. It makes a text string similar "This is A1: AahOne. This is B1: BeeOne."
Notice that it is a chip fiddly: at that topographic betoken are spaces inside the text-strings, as good as a full-stop at the end, thus that the output looks sensible. To acquire far easier to read, I've laid the conent that's inside double quotes (ie " ") on a pink background.
Once yous empathise this type of formula, though, it's non a large boundary to formulas similar these which combine HTML commands as good as values from the cells inwards the spreadsheet.
="<tr class='''"&A21&"'''>"
=" <td class='''keytableID'''>"&B21&"</td>"
=" <td> " & C21 & "</td> "
=" </tr>"
=E21&F21&G21&H21
This uses a step-by-step formula creation, which makes the parts of the terminal statement, as good as together with so glues them all together inwards the finally formula..
However inwards Excel, the double-quote is used to exhibit the outset as good as goal of text strings.
At foremost , this may laid people off using Excel, But at that topographic betoken is a very simple way to a greater extent than or less this:
What other options tin yous suggest?
Get your posts correct before yous component division them alongside the word.
Adding a new CSS formatting govern to your blogs' template
Putting HTML into your blog
Understanding Google accounts
File hosts - places to store files yous use
These include using a HTML-code-generator to acquire the "skeleton" of the table. With this approach, the hardest element is putting the tabular array content (ie the words, numbers as good as pictures) into the correct identify inwards the HTML, thus that it appears inwards correct jail mobile telephone inwards the table.
This is slow enough for a little table. But if yous wishing to construct a tabular array alongside more information (eg I lately posted a book-index alongside 100 rows past times times v columns), it tin in conclusion a little tedious. Even if yous prepare your posts inwards private (which lets yous relieve frequently without worrying nigh auto-save), it tin silent in conclusion existent hard to construct certainly that yous laid the correct contents inwards the correct cell. And because Blogger's ship service editor doesn't steal tables well, it tin sometimes practise unexpected things to them,.
But at that topographic betoken are roughly alternatives.
Tools for creating the "body" subdivision of HTML tabular array statements
I'm certainly that lots of people guide hold written custom applications that convey a text file as good as plough it into HTML. (Though when i googled, the foremost SERPs included a programme for Win 3.1 / 95, which nigh people gave upward on a long 4th dimension ago!).Many programs similar Excel, Word, etc at present guide hold an choice to save as HTML - thus yous could but usage facial appear at the file they construct alongside a text editior (eg Notepad), as good as convey the relevant bits. That said, they ordinarily include a lot of extra code, eg for fonts, layouts etc, thus yous may acquire to a greater extent than than yous create out for.
Commercial spider spider web development packages, eg Dreamweaver, may guide hold tabular array editing tools - fifty-fifty thus many people cannot justify the price of buying as good as learning them for smaller jobs.
Another choice is to use Excel to tending your tabular array of data, as good as usage it's text-string manipulation functions to plough it into valid HTML code. This isn't as hard as it sounds, especially if mortal else does the initial formulas for you.
Excel Templates for making HTML
![]() First version - cell marking formatting - no CSS | ![]() Second version with CSS styles |
The first template was made before I understood CSS: it uses text-functions to laid formatting code into every single tabular array cell - though yous tin but acquire out things blank if yous don't wishing them formatted. It may in conclusion best to usage if yous don't empathise CSS.
The second template uses CSS styles to format the table. This way yous tin modify the formatting of all the tables inwards your website but past times times changing the CSS rules, ie yous don't guide hold to edit each soul table. The Excel file lists the CSS styles yous require to define, as good as the names (eg keyTableOdd for foreign numbered rows) exhibit what each style is used for.
| Version 2: the formula expanse is green, the input expanse is yellow, as good as the output expanse is orange |
To usage these templates
1 Download the template
two Check the formatting settings inwards the template. Set upward CSS styles inwards your website if yous are using the 2nd version.
three Create table header as good as footer statements yourself, or past times times using an HTML tabular array generator.
iv Adjust the Excel template, thus that
- the publish of rows as good as columns inwards the information expanse is what yous need,
- the formulas inwards the output expanse are correct for your chosen rows as good as columns
The subdivision below explains the types of formulas used: you tin model new forumlas (for new columns) on the electrical menses ones, as good as new rows tin in conclusion made past times times copying the formulas from an existing row.
v Put the information for your tabular array into the data expanse inwards the spreadsheet
half dozen Copy the text from the output area, paste it into a text editior (eg Notepad)
vii Use the text editor's Find/Replace role to change all cases of three apostrophes inwards a row (ie ''') into double quotes.
8 Copy the changed text from your text editor into the "body" subdivision of your tabular array statement.
This sounds similar a lot of slice of piece of work but I've works life that fifty-fifty if a tabular array is alone 10 rows long, using a HTML-generators-spreadsheet is a lot to a greater extent than efficient than trying to type the values into it row-by-row.
Understanding the Excel templates
Also, yous require to empathise the ideas of copying formulas between rows, as good as the usage of relative co-ordinates inwards them to construct certainly that each new row or column picks upward the correct values. Again, an Excel tutorial would in conclusion a goodness visit if you're non familiar alongside copying formulas.
As goodness as these total full general ideas, at that topographic betoken are here are ii Excel concepts that are the soil of these templates:
1 Text concatenation functions
Excel has a wide striking of functions that are used to gum strings together, or to depict them apart. Important ones used inwards these templates are:= "whatever" puts a text-string alongside the characters whatever into the cell
= a1 & b1 combines the text strings inwards cells a1 as good as b1 (b1 goes at i fourth dimension after on a1)
= "This is A1: " & a1 & ". This is B1: " & B1 &"."
The 3rd role combined the ii foremost ones. It makes a text string similar "This is A1: AahOne. This is B1: BeeOne."
Notice that it is a chip fiddly: at that topographic betoken are spaces inside the text-strings, as good as a full-stop at the end, thus that the output looks sensible. To acquire far easier to read, I've laid the conent that's inside double quotes (ie " ") on a pink background.
Once yous empathise this type of formula, though, it's non a large boundary to formulas similar these which combine HTML commands as good as values from the cells inwards the spreadsheet.
="<tr class='''"&A21&"'''>"
=" <td class='''keytableID'''>"&B21&"</td>"
=" <td> " & C21 & "</td> "
=" </tr>"
=E21&F21&G21&H21
This uses a step-by-step formula creation, which makes the parts of the terminal statement, as good as together with so glues them all together inwards the finally formula..
2 Putting an Excel exceptional grapheme inwards the output:
HTML needs to guide hold double-quote characters to a greater extent than or less things that should in conclusion shown as text - for example<a href="A-FILE-URL">Anchor-text</a>
However inwards Excel, the double-quote is used to exhibit the outset as good as goal of text strings.
At foremost , this may laid people off using Excel, But at that topographic betoken is a very simple way to a greater extent than or less this:
- Use another (set of) characters that don't appear inwards the tabular array instead, and
- Before yous usage the the generated code, use a text-editor (eg Notepad) to modify them to the required exceptional characters.
Other ways to construct tabular array contents
There are lots of other ways to construct the table-contents HTML code.- Using MS Access would inward all likelihood in conclusion eaiser (but lots of people don't guide hold it).
- Using Google Docs - spreadsheets is free, but I haven't tried out the string functions yet.
- GreenLava of BloggerSentral has lately recommended Tabelizer: I haven't used this myself yet, but it also looks promising.
What other options tin yous suggest?
Related Articles
Why usage tables inwards your blogGet your posts correct before yous component division them alongside the word.
Adding a new CSS formatting govern to your blogs' template
Putting HTML into your blog
Understanding Google accounts
File hosts - places to store files yous use
