+ Reply to Thread
Results 1 to 10 of 10

Display a string of text with multiple cell values

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-22-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    122

    Display a string of text with multiple cell values

    I am trying to create a formula to display a string of text that refers to multiple cells. for example, =If(A1=0,"insert text here" &B1 "insert more text here" &B2 "insert even more text here" &B3, "insert text here" &C1 "Insert text here"). Is this possible? It works fine for one cell value, like ="Total: " &A1
    Last edited by paxile2k; 07-30-2009 at 04:21 PM.

  2. #2
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: Display a string of text with multiple cell values

    Put the ampersand on the other side of the cell reference too.

    Example:

    ="insert text here" &B1& "insert more text here"


    Norman

  3. #3
    Forum Contributor
    Join Date
    07-22-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: Display a string of text with multiple cell values

    Thankyou for your response,
    That worked beautifully, is there way to round the value of a cell in that display to 2 decimal points also so it will clean up the display of the output?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Display a string of text with multiple cell values

    Yes,
    =TEXT(B1,"#.##")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Contributor
    Join Date
    07-22-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: Display a string of text with multiple cell values

    Thankyou again for your response,
    would the =Text(cell, "#.##") be used in the first formula for displaying text and cell values? or applied to the cell in question?
    ="insert text here" =TEXT(B1,"#.##)&B1& "insert more text here" ?
    Last edited by paxile2k; 07-30-2009 at 02:32 PM.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Display a string of text with multiple cell values

    It would be used in the formula ncmay gave you.

+ 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