+ Reply to Thread
Results 1 to 10 of 10

Format a Concatenate?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Format a Concatenate?

    Hi,

    I have using the & to Concatenate in Excel. If I do this: "&D3&", I get the value in the referenced D3 cell, which is great, but if D3 is a number (let's say $5,000), that number comes across as 5000 (no formatting). I have looked online on how to format, but everything I saw was for using the =CONCATENATE function, not the & reference. Anyone know how to modify formatting to a $ or %?
    Last edited by Rick-O-Shay; 03-30-2022 at 12:06 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,692

    Re: Format a Concatenate?

    don't know what you are trying to concatenate D3 with but to get the $5,000 you can incorporate this into the formula...
    &TEXT(D3,"$#,###")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: Format a Concatenate?

    Hmmm, doesn't seem to work. I tried "&TEXT(D3,"$#,###")" with and without quotes... Won't grab the referenced cell data in D3.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,692

    Re: Format a Concatenate?

    I'm trying to figure out what you are trying to...
    a) get as the final result and
    b) what you are concatenating it with.
    I also don't understand what you mean by "grab the referenced cell data in D3"
    can you post a sample workbook using the instructions at the top of the page, just a couple rows showing what you have AND the results you expect?

  5. #5
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: Format a Concatenate?

    You bet. See attached. I want A2 to just display the correct $ formatting. I realize it does not carry over the correct formatting from Excel and we probably need to modify the formula as you mentioned, but I did not get your code to work.
    Attached Files Attached Files

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,692

    Re: Format a Concatenate?

    try this if I'm understanding your request and example correctly...
    ="This is test text "&TEXT(A1,"$0,000.00")

  7. #7
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: Format a Concatenate?

    sorry, but I think the issue is my formula in my real project is:

    =CONCANTENATE("test text here "&F3&" test text here")

    If I follow the same formula format you showed me, no success. Sorry I was not clear in my example. My bad there.

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,692

    Re: Format a Concatenate?

    I don't remember the last time I used the concatenate formula because the ampersands do the same thing.
    So reading post #7 and looking at your uploaded workbook, I'm back to not being clear about what you want.
    If you are looking for "test text here "&F3&" test text here"
    then perhaps this? ="This is test text "&TEXT(F3,"$0,000.00")&" test text here" that will give you the same results as what you wrote in post #7.

  9. #9
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: Format a Concatenate?

    Bingo, that did it. I needed that last ampersand sign I think. Thanks for walking through that with me.

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,692

    Re: Format a Concatenate?

    You're welcome, glad I could help!

+ 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] Concatenate and change format
    By minhys1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2020, 10:17 PM
  2. [SOLVED] Date format in CONCATENATE
    By Prashanth.Akula in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2019, 10:30 PM
  3. [SOLVED] How to concatenate to words in the same format?
    By reimar_rem in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-12-2018, 05:36 AM
  4. Concatenate VBA that keeps currency format
    By isasa74 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2015, 04:30 AM
  5. [SOLVED] Concatenate, format issues
    By JO505 in forum Excel General
    Replies: 8
    Last Post: 02-20-2015, 09:54 PM
  6. Need Numbers to Concatenate to Number Format, Not Text Format
    By DJH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2014, 01:01 AM
  7. Concatenate format problem
    By kovall in forum Excel General
    Replies: 3
    Last Post: 06-21-2007, 04:04 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