+ Reply to Thread
Results 1 to 4 of 4

Inserting HTML around cell data

Hybrid View

  1. #1
    Registered User
    Join Date
    09-05-2006
    Posts
    4

    Inserting HTML around cell data

    Hi,

    I'm using excel 2003 and was wondering if I could insert html around the cell data in a faster way than cutting and pasting it.

    Here is an example of a column and what I would like to do.

    aaaa
    bbbb
    cccc
    dddd

    Now I would like every cell to have HTML around it to be easily posted on a website. I would like the cells to now look like this.

    <a href="www.url.com/aaaa"><img src="www.url.com/aaaa.jpg"></a>

    <a href="www.url.com/bbbb"><img src="www.url.com/bbbb.jpg"></a>

    <a href="www.url.com/cccc"><img src="www.url.com/cccc.jpg"></a>

    <a href="www.url.com/dddd"><img src="www.url.com/dddd.jpg"></a>


    I haven't dealt much with functions so I don't even know if this is possible. Any help with speeding up this process would be greatly appreciated.
    Last edited by burny; 09-29-2009 at 03:45 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Inserting HTML around cell data

    Assuming first entry is in A1, try a formula in adjacent cell:

    ="<a href=""www.url.com/"&A1&"""><img src=""www.url.com/"&A1&".jpg""></a>"

    and copy down.

    Then copy this new column and Paste Special >> Values over the original.. then delete the formula column.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Inserting HTML around cell data

    =CONCATENATE( "<a href=""www.url.com/" & A1 & "><img src=""www.url.com/" & A1 & ".jpg""></a>")

  4. #4
    Registered User
    Join Date
    09-05-2006
    Posts
    4

    Re: Inserting HTML around cell data

    Thanks for the quick response. All those added quotations kind of make me , but following your example as a template worked just great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1