+ Reply to Thread
Results 1 to 4 of 4

Concantenate and keep trailing zeros of dollar field

  1. #1
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Concantenate and keep trailing zeros of dollar field

    Since concantenate combines fields and lists them as text, when my dollar values have trailing zeros, it drops them.
    Is there a way to add to my formula to tell it not to drop those zeros?

    Here is the formula I am currently using:
    G2=1000.10
    G3=Test
    =IF(G2="","",CONCATENATE("$",G2," ",H2))
    Results are: $1000.1 Test

    I would like it to say $1,000.10 Test

    It would be helpful if the comma could be added as well when it is hits four decimals, but it drops that as well. If I can't get that back, I would be ok with it as long as I can get the trailing zero.

    Thanks for your help.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Concantenate and keep trailing zeros of dollar field

    hi karstens, you mentioned "Test" in G3 but formula combining with H2? i'm assuming it in H2, then:
    =IF(G2="","",CONCATENATE(DOLLAR(G2,2)," ",H2))

    or:
    =IF(G2="","",DOLLAR(G2,2)&" "&H2)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,290

    Re: Concantenate and keep trailing zeros of dollar field

    Change 'G2' into 'TEXT(G2;"0000,00")'
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Re: Concantenate and keep trailing zeros of dollar field

    Awesome bebishiryo!
    That is exactly what I needed! Thank you so much!

+ 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