• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

html tables help please

Status
Not open for further replies.
Joined
Aug 22, 2006
Posts
4,203
Reaction score
21
Anyone know a quick way of converting a table in excel to html. The table is 200x5 so i dont really want to have to type it all out again.

Also, is there a quick way of extracting a hyperlink from a word in one cell and getting the hyperlink to show in full in a separate cell?
 
Anyone know a quick way of converting a table in excel to html. The table is 200x5 so i dont really want to have to type it all out again.

Would suggest two options for the above:

1 - save the excel table as HTML then trim as needed.
2 - select > cut > open word/frontpage and paste in , then save as html.

Each will give you a microsoft mess of HTML but table form that can be cleaned up by hand or 'remove MS crap' option in dreamweaver et al.
 
Open a good text editor - one that supports regex search and replace.

Copy and paste the content from Excel - it should emerge as tab separated variables with one row per line.

Search and replace:
Code:
\t (tab) for </td><td>
Code:
^ for <tr><td>
Code:
$ for </td></tr>

Then top and tail as required.


If I had to do it more than once I'd write a perl script which automated the above steps.
 
Status
Not open for further replies.
Top Bottom