+ Reply to Thread
Results 1 to 17 of 17

How to concatenate numbers with 2 fixed decimals

  1. #1
    Registered User
    Join Date
    10-11-2016
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2010
    Posts
    8

    How to concatenate numbers with 2 fixed decimals

    Hey guys,

    I just read this thread because I have to concatenate a lot of cells, containing both numbers and text. I need the numbers to be displayed with 2 decimals in the cell where they are being concatenated.

    In the thread above it was said that it's possible with the FIXED fuction. But since I have a lot of cells, I was wondering if it is possible to use some kind of trick to make them with 2 fixed decimals. Or do I have to add "FIXED" before every cell value?

    =CONCATENATE(AR84;B84;AS84;AW84;AX84;AY84;AZ84;BF84;BG84;BH84;BI84;BJ84;BK84;BL84;BM84;BN84;BO84;BP84;BU84;BZ84;CA84;CB84;CC84;CD84;CE84;CF84;CG84;CH84;CI84;CJ84;CO84;CT84;CU84;CV84;CW84;CX84;CY84;CZ84;DA84;DB84;DC84;DD84;DI84;DN84;DO84;DP84;DQ84;DR84;DS84;DT84;DU84;DV84;DW84;DX84;EC84;EH84;EI84;EJ84;EK84;EL84;EM84;EN84;EO84;EP84;EQ84;ER84;EW84)

    I am not a very experienced Excel user. Hope you can help me out here.

    Thanks.

    Best regards,
    Bas

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: How to concatenate numbers with 2 fixed decimals

    Yes, as long as you don't mind losing some precision. Format the cells as Fixed. Go to File>Options>Advanced>When Calculating This Workbook> set the flag for 'precision as displayed'. This will turn the results into 2 decimal place numbers.
    Frob first, tweak later

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to concatenate numbers with 2 fixed decimals

    I liked Spock better!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: How to concatenate numbers with 2 fixed decimals

    I decided he looked mean. I want to be banana ears, not inscrutable alien ears!

  5. #5
    Registered User
    Join Date
    10-11-2016
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2010
    Posts
    8

    Re: How to concatenate numbers with 2 fixed decimals

    Hello Neil_,

    First of all: thanks for the quick answer!
    I tried this, but it does not work. The cel in which all the data comes together still has value's like 0.6 instead of 0.60. While the cell which contains the value 0.60 is displaying 0.60 and not 0.6.

    What can be the problem?

    Best regards,
    Bas

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: How to concatenate numbers with 2 fixed decimals

    I don't know what the purpose would be to join (concatenate) all those numbers together without some kind of separator between them to enable you to distinguish them apart - you will just end up with a string of digits and decimal points (which for you I would assume would be commas) like this:

    10,0211,234,56789,00

    and so on. What's the point in this?

    Pete

  7. #7
    Registered User
    Join Date
    10-11-2016
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2010
    Posts
    8

    Re: How to concatenate numbers with 2 fixed decimals

    Hello Pete,

    I also have text, like I mentioned, but you probably missed that part. Actually it contains HTML, text and numbers. So the final concatenated cell is a piece of HTML code, containing text and prices in a table, which I later on will upload via a CSV file in a webshop system.

    But that it actually not important information, because the main point now is that it doesn't work!

    I hope someone can help me.

    Thanks,
    Bas

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to concatenate numbers with 2 fixed decimals

    You would have to apply the Text function to each numeric cell in the concatenation..

    Sorry, I'm not going to go through all of them..but something like
    =CONCATENATE(AR84;TEXT(B84;"0.00");AS84;TEXT(AW84;"0.00");AX84)

    Where B84 and AW84 are numeric cells, AR84 AS84 and AX84 are Text.

  9. #9
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: How to concatenate numbers with 2 fixed decimals

    You could use a UDF
    Please Login or Register  to view this content.
    The format for the function would be
    =Fixup((B84,AR84,AS84))
    ((double brackets))

    However........
    I haven't counted but you may exceed the max URL length of 256 characters

  10. #10
    Registered User
    Join Date
    10-11-2016
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2010
    Posts
    8

    Re: How to concatenate numbers with 2 fixed decimals

    your right about the commas btw.

  11. #11
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: How to concatenate numbers with 2 fixed decimals

    Just used the i variable I had in there (planned all along of course) and you have 268 characters without even the domain etc..
    Not going to work...


    Edit

    .......Unless you make the parameters much shorter.
    Last edited by Neil_; 10-12-2016 at 02:08 PM.

  12. #12
    Registered User
    Join Date
    10-11-2016
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2010
    Posts
    8

    Re: How to concatenate numbers with 2 fixed decimals

    Hello Neil,

    Yes, I have more then 300 characters. Any other options?

    Best regards,
    Bas

  13. #13
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: How to concatenate numbers with 2 fixed decimals

    Make the URL shorter. The wibbly web won't work with yours

  14. #14
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: How to concatenate numbers with 2 fixed decimals

    So, you don't want every cell reference in that formula to have FIXED( ... ,2) around it?

    Another way of doing it would be to use the TEXT function, i.e.:

    TEXT(B84,"0.00")

    (this is in English, but you will probably have to use a semicolon instead of the comma and a comma instead of the full stop), but if you only need to do this to selected cells then you could adapt the following procedure:

    put an apostrophe ( ' ) before the = sign in the cell with the formula, then put

    TEXT(

    (or the Dutch equivalent) in another cell. Click on the formula bar as if to edit the cell, highlight the contents and do CTRL-C to copy it, then press the < Esc > key. Then click on the cell with the CONCATENATE formula in it and click on the formula bar and then move the cursor to just in front of the cell reference for a number, and then do CTRL-V to paste the TEXT( characters in front of the cell reference. Continue to do this for the other cell references which contain numbers.

    Then you can repeat this sequence by putting the second part of the function in the temporary cell, i.e.:

    ;"0,00")

    and then copy this and press < Esc > again, then paste it after those cell references that you have already amended.

    Finally, you can delete the apostrophe from in front of the = sign.

    Hope this helps.

    Pete

  15. #15
    Registered User
    Join Date
    10-11-2016
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2010
    Posts
    8

    Re: How to concatenate numbers with 2 fixed decimals

    Hi Pete, I will try this tomorrow first thing in the morning and will let you know if it worked!

    Thanks!

  16. #16
    Registered User
    Join Date
    10-11-2016
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2010
    Posts
    8

    Re: How to concatenate numbers with 2 fixed decimals

    Hi Pete,

    Eventually I used your copy paste strategy with the normal fixed function. Its the shortest way, because FIXED( is using two decimals by default. Thanks for the help!

    Best regards,
    Bas

  17. #17
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: How to concatenate numbers with 2 fixed decimals

    Glad to hear that you got it sorted in the end.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Adding 2 decimals regardless of sig figs to CONCATENATE formula
    By ExcelSponge in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2016, 02:38 PM
  2. Removing decimals fron concatenate formuls
    By deanblew in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2016, 09:12 AM
  3. [SOLVED] How to Concatenate two cell with decimals
    By sharathnarayanan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-29-2014, 02:53 PM
  4. Fixied Decimals with CONCATENATE
    By TimmyK in forum Excel General
    Replies: 2
    Last Post: 06-11-2009, 11:40 AM
  5. CONCATENATE with decimals, convert to fractions
    By rberger909 in forum Excel General
    Replies: 5
    Last Post: 12-05-2006, 11:33 PM
  6. [SOLVED] How do I keep fixed and Non-fixed decimals on a sheet together?
    By kpike in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2006, 07:35 PM
  7. fixed decimals
    By GreenThumb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-14-2005, 08:06 PM

Tags for this Thread

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