+ Reply to Thread
Results 1 to 4 of 4

Insert Cell Tex/Valuet into cell string

  1. #1
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Insert Cell Tex/Valuet into cell string

    A1 = Customer Name
    A3 = Age
    A4 = Weight
    A5 = Amount

    so basically

    Mr (A1) has visited us today, We can confirm his age at the time of visit was (A2) and his weight was (A4) the Cost for the test will be (A5) which needs to be paid ASAP

  2. #2
    Forum Contributor
    Join Date
    12-10-2013
    Location
    Mississippi, United States
    MS-Off Ver
    2016
    Posts
    120

    Re: Insert Cell Tex/Valuet into cell string

    Try one of these

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Insert Cell Tex/Valuet into cell string

    You can also do this using the & sign...

    ="Mr "&A1&" has visited us today, We can confirm his age at the time of visit was "&A2&" and his weight was "&A4&" the Cost for the test will be "&A5&" which needs to be paid ASAP"

    However, depending on the EXACT contents in A2:A5, you may need to include the TEXT() function to manage decimal places.

    Maybe something like this...
    ="Mr "&A1&" has visited us today, We can confirm his age at the time of visit was "&A2&" and his weight was "&TEXT(A4,".00")&" the Cost for the test will be "&A5&" which needs to be paid ASAP"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Insert Cell Tex/Valuet into cell string

    Is this part of a larger problem where you have many names, ages etc. listed in a column or columns to be use in a merge with text?
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Insert String and String Variable Into Cell
    By sjennings007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2014, 12:50 PM
  2. Insert string cell values into another cell
    By john.cotter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 03:51 AM
  3. Search for a String and insert Value in another cell
    By MandyKarabo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-29-2012, 05:26 PM
  4. Build String and then Insert it as Formula to Cell
    By Vladamir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2012, 09:00 AM
  5. Find Multiple String in Cell then Insert Value
    By mcclanat in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-23-2010, 07:24 PM

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