+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Bloomington, Indiana
    MS-Off Ver
    Excel 2007
    Posts
    104

    How Do I Format a Cell to Always Insert Certain Text?

    Call A1 looks like 1234.jpg, 5678.jpg, 9abc.jpg
    I want to turn "," into "|", which I can do with a substitute formula, but I also need to insert a static URL in front of each set of images. so the result in B1 should look like:

    http://staticurl/1234.jpg| http://staticurl/5678.jpg| http://staticurl/9abc.jpg

    How can this be accomplished?

    Thanks
    Ocean

  2. #2
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,726

    Re: How Do I Format a Cell to Always Insert Certain Text?

    I can't open those links.

    Can you upload an workbook with some imaginary examples how things should work?
    "Relax. What is mind? No matter. What is matter? Never mind!"

  3. #3
    Non English Excel Moderator arthurbr's Avatar
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,055

    Re: How Do I Format a Cell to Always Insert Certain Text?

    Zbor,
    I think the links shown are what the OP wants as results
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  4. #4
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,726

    Re: How Do I Format a Cell to Always Insert Certain Text?

    Oh, I see

    Then write ="http://staticurl/"&A30

    (where in A you have xyz.jpg)
    "Relax. What is mind? No matter. What is matter? Never mind!"

  5. #5
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Bloomington, Indiana
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: How Do I Format a Cell to Always Insert Certain Text?

    the problem is, in A, I don't just have xyz.jpg. I have 3 or more image values in one cell separated by commas and I want the static text to be attached to the front of EACH of those images, not just the entire cell.

    Attached is an example of what the starting value is and what I'd like the resulting cell to look like
    Attached Files Attached Files

  6. #6
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,726

    Re: How Do I Format a Cell to Always Insert Certain Text?

    .......................
    "Relax. What is mind? No matter. What is matter? Never mind!"

  7. #7
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2003, 2007
    Posts
    355

    Re: How Do I Format a Cell to Always Insert Certain Text?

    Quote Originally Posted by Ocean Zhang View Post
    Call A1 looks like 1234.jpg, 5678.jpg, 9abc.jpg
    so the result in B1 should look like:
    http://staticurl/1234.jpg| http://staticurl/5678.jpg| http://staticurl/9abc.jpg
    try the following formula:

    ="http://staticurl/"&SUBSTITUTE(A1,",","| http://staticurl/")
    Last edited by tigertiger; 07-04-2009 at 07:46 AM.

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.2.0