+ Reply to Thread
Results 1 to 5 of 5

Text with a cell reference?

  1. #1
    Registered User
    Join Date
    05-11-2005
    Posts
    5

    Text with a cell reference?

    Just need help seeing if there is a way to have text and a separate cell refernce in the same cell. For example

    Hi my name is (A1)!

    Where anything posted in A1 shows up after the previous text.
    Is it possible without VB programming?
    Any help would be great!

  2. #2
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282
    Try this formula in your cell:

    = "Hi my name is " & A1 & "!"

    Hope this helps,
    theDude
    Last edited by theDude; 05-11-2005 at 02:54 PM. Reason: Corrected typo...

  3. #3
    Registered User
    Join Date
    05-11-2005
    Posts
    5

    Thanks! Works Great

    Thanks for the info,
    I just couldnt seem to remember how to add the text in with a cell reference and that is exactly it!

  4. #4
    Registered User
    Join Date
    05-11-2005
    Posts
    5

    One more thing!

    Is it possible to then have another formula such as RIGHT or MID a long with the cell reference ?
    Say I had a first and last name in cell A1 and only wanted the reference to bring in the first name.
    Is this possible as well and if so can it be done with multiple cell references in a longer sentence or paragraph?

  5. #5
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282
    Assuming the name in cell A1 is represented as Firstname Lastname (i.e. John Smith), this will work for you:

    = "Hi my name is " & MID(A1,1,FIND(" ",A1,1)-1) & "!"

    It looks for the space between Firstname and Lastname beginning with the first character position (from left to right) and returns all characters before the position of the space; it will show the Firstname only like

    Hi my name is John!

    Hope this helps,
    theDude

+ 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