Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Concatenate number with text, but keeping in number format

  1. #1
    New Member
    Join Date
    Jan 2006
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Concatenate number with text, but keeping in number format

    I am concatenating two fields in Excel using an '&' sign, where one is a number and one text.

    For example, using the formula =A1&A2 where

    cell A1 contains 'that costs '
    and cell A2 contains $50,000

    I want to display the sentence 'that costs $50,000'

    but instead it converts the number to text to display 'that costs 50000' which is no good to me.

    How can I simply set it up to display the '$' and the ','?

  2. #2
    MrExcel MVP
    Moderator
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    40,832
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)

    Default

    Use the TEXT function to instruct Excel the format to use (currency):

    =A1 & TEXT(A2,"$#,##0")
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

  3. #3
    New Member
    Join Date
    Jul 2017
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Concatenate number with text, but keeping in number format

    Hi,

    I am trying to use concatenate to add a number in % format after text. when I do that it gives me result with number appearing in decimal form instead of % form. e.g. "XYZ @ 1.02" instead I would like to see 102% in place of 1.02. Can you please help? thanks

  4. #4
    Board Regular
    Join Date
    Oct 2011
    Posts
    3,255
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Concatenate number with text, but keeping in number format

    Welcome to the forum. It is usually best to start a new thread instead of adding to an old one.
    See if this does what you want.

     ABCDE
    1XYZ @102% XYZ @ 102% 
    2     
    3     
    4     
    5     

    Spreadsheet Formulas
    CellFormula
    D1=A1&" "&TEXT(B1,"#%")


    Excel tables to the web >> Excel Jeanie HTML 4

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


DMCA.com