+ Reply to Thread
Results 1 to 5 of 5

adding a string prefix/suffix to a cell

  1. #1
    Registered User
    Join Date
    03-08-2007
    Posts
    2

    adding a string prefix/suffix to a cell

    I have this string in A1: www.example.com

    Now I want to make A2 the same as A1, except I want to add text to both the beginning and the end of it so it reads: http://www.example.com/test

    I'm just learning Excel so bear with me, but I imagine A2 would be something like: "http://" + (A1) + "/test" , but obviously I am not familiar enough with Excel's syntax yet.

    Thanks for the help!

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    I could not read your examples but I suppose you are trying to concatenate.
    This would the be someting like ="http://"&a1&"yourtext"

  3. #3
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    if cell A1 = cat and cell B1 = dog

    in cell C1 type =concatenate(A1,B1) and you get catdog

    in cell D1 type =concatenate("thin ",A1," and fat ",B1) you get
    thin cat and fat dog

  4. #4
    Registered User
    Join Date
    03-08-2007
    Posts
    2
    Quote Originally Posted by arthurbr
    I could not read your examples but I suppose you are trying to concatenate.
    This would the be someting like ="http://"&a1&"yourtext"
    That is exactly it! Thank you for your help. I was just trying to use + to concatenate instead of &.

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    You're welcome

+ 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