Convert number to text representation with specific decimal separator in Excel











up vote
0
down vote

favorite












I have a cell with a number (formatted as "52,9" in my locale) and I want to format it into a String in another cell with a specific decimal separator ("52.9"). I don't want to change my locale or anything, I want it to work the same no matter what locale is used. I could of course do some complex formula to strip out the whole number and the decimals and stitch them together again, but my question is, is there a function that does this?



I'm using the latest version of Excel 365.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I have a cell with a number (formatted as "52,9" in my locale) and I want to format it into a String in another cell with a specific decimal separator ("52.9"). I don't want to change my locale or anything, I want it to work the same no matter what locale is used. I could of course do some complex formula to strip out the whole number and the decimals and stitch them together again, but my question is, is there a function that does this?



    I'm using the latest version of Excel 365.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a cell with a number (formatted as "52,9" in my locale) and I want to format it into a String in another cell with a specific decimal separator ("52.9"). I don't want to change my locale or anything, I want it to work the same no matter what locale is used. I could of course do some complex formula to strip out the whole number and the decimals and stitch them together again, but my question is, is there a function that does this?



      I'm using the latest version of Excel 365.










      share|improve this question













      I have a cell with a number (formatted as "52,9" in my locale) and I want to format it into a String in another cell with a specific decimal separator ("52.9"). I don't want to change my locale or anything, I want it to work the same no matter what locale is used. I could of course do some complex formula to strip out the whole number and the decimals and stitch them together again, but my question is, is there a function that does this?



      I'm using the latest version of Excel 365.







      microsoft-excel






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 3 at 11:01









      bspoel

      1032




      1032






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Yes, that's pretty easy:



          =Substitute("25,84";",";".")


          This will result in a string like this:



          25,84 -> 25.84





          share|improve this answer




























            up vote
            1
            down vote













            Obtain the decimal separator char in a separate cell. Use it for to replace.



            Example.




            • Put the 1,1 number into a cell A1. It is a reference standard.


            • Put the formula =MID($A$1,2,1) to B1. It is current decimal separator.


            • Put the value which you want to convert to a string with specific decimal separator (52,9) to A2.


            • Put the formula =SUBSTITUTE(A2,$B$1,".") to B2. You obtain the result you need.



            Of course, this can be combined into one complex formula =SUBSTITUTE(A2,MID($A$1,2,1),".") freeing B1 cell - it is safe when the amount of numbers which must be converted is low.



            The reference standard and current decimal separator formula can be placed to any static cells (for example, in hidden 1st row or on service/hidden worksheet, or maybe there is some suitable static data in your workbook which can be used as a reference standard...).






            share|improve this answer























            • This works no matter what the separator is, nice one.
              – bspoel
              Dec 4 at 21:48











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1380376%2fconvert-number-to-text-representation-with-specific-decimal-separator-in-excel%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            Yes, that's pretty easy:



            =Substitute("25,84";",";".")


            This will result in a string like this:



            25,84 -> 25.84





            share|improve this answer

























              up vote
              2
              down vote



              accepted










              Yes, that's pretty easy:



              =Substitute("25,84";",";".")


              This will result in a string like this:



              25,84 -> 25.84





              share|improve this answer























                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                Yes, that's pretty easy:



                =Substitute("25,84";",";".")


                This will result in a string like this:



                25,84 -> 25.84





                share|improve this answer












                Yes, that's pretty easy:



                =Substitute("25,84";",";".")


                This will result in a string like this:



                25,84 -> 25.84






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 3 at 11:53









                dmb

                607212




                607212
























                    up vote
                    1
                    down vote













                    Obtain the decimal separator char in a separate cell. Use it for to replace.



                    Example.




                    • Put the 1,1 number into a cell A1. It is a reference standard.


                    • Put the formula =MID($A$1,2,1) to B1. It is current decimal separator.


                    • Put the value which you want to convert to a string with specific decimal separator (52,9) to A2.


                    • Put the formula =SUBSTITUTE(A2,$B$1,".") to B2. You obtain the result you need.



                    Of course, this can be combined into one complex formula =SUBSTITUTE(A2,MID($A$1,2,1),".") freeing B1 cell - it is safe when the amount of numbers which must be converted is low.



                    The reference standard and current decimal separator formula can be placed to any static cells (for example, in hidden 1st row or on service/hidden worksheet, or maybe there is some suitable static data in your workbook which can be used as a reference standard...).






                    share|improve this answer























                    • This works no matter what the separator is, nice one.
                      – bspoel
                      Dec 4 at 21:48















                    up vote
                    1
                    down vote













                    Obtain the decimal separator char in a separate cell. Use it for to replace.



                    Example.




                    • Put the 1,1 number into a cell A1. It is a reference standard.


                    • Put the formula =MID($A$1,2,1) to B1. It is current decimal separator.


                    • Put the value which you want to convert to a string with specific decimal separator (52,9) to A2.


                    • Put the formula =SUBSTITUTE(A2,$B$1,".") to B2. You obtain the result you need.



                    Of course, this can be combined into one complex formula =SUBSTITUTE(A2,MID($A$1,2,1),".") freeing B1 cell - it is safe when the amount of numbers which must be converted is low.



                    The reference standard and current decimal separator formula can be placed to any static cells (for example, in hidden 1st row or on service/hidden worksheet, or maybe there is some suitable static data in your workbook which can be used as a reference standard...).






                    share|improve this answer























                    • This works no matter what the separator is, nice one.
                      – bspoel
                      Dec 4 at 21:48













                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    Obtain the decimal separator char in a separate cell. Use it for to replace.



                    Example.




                    • Put the 1,1 number into a cell A1. It is a reference standard.


                    • Put the formula =MID($A$1,2,1) to B1. It is current decimal separator.


                    • Put the value which you want to convert to a string with specific decimal separator (52,9) to A2.


                    • Put the formula =SUBSTITUTE(A2,$B$1,".") to B2. You obtain the result you need.



                    Of course, this can be combined into one complex formula =SUBSTITUTE(A2,MID($A$1,2,1),".") freeing B1 cell - it is safe when the amount of numbers which must be converted is low.



                    The reference standard and current decimal separator formula can be placed to any static cells (for example, in hidden 1st row or on service/hidden worksheet, or maybe there is some suitable static data in your workbook which can be used as a reference standard...).






                    share|improve this answer














                    Obtain the decimal separator char in a separate cell. Use it for to replace.



                    Example.




                    • Put the 1,1 number into a cell A1. It is a reference standard.


                    • Put the formula =MID($A$1,2,1) to B1. It is current decimal separator.


                    • Put the value which you want to convert to a string with specific decimal separator (52,9) to A2.


                    • Put the formula =SUBSTITUTE(A2,$B$1,".") to B2. You obtain the result you need.



                    Of course, this can be combined into one complex formula =SUBSTITUTE(A2,MID($A$1,2,1),".") freeing B1 cell - it is safe when the amount of numbers which must be converted is low.



                    The reference standard and current decimal separator formula can be placed to any static cells (for example, in hidden 1st row or on service/hidden worksheet, or maybe there is some suitable static data in your workbook which can be used as a reference standard...).







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Dec 3 at 13:22

























                    answered Dec 3 at 12:12









                    Akina

                    1,22328




                    1,22328












                    • This works no matter what the separator is, nice one.
                      – bspoel
                      Dec 4 at 21:48


















                    • This works no matter what the separator is, nice one.
                      – bspoel
                      Dec 4 at 21:48
















                    This works no matter what the separator is, nice one.
                    – bspoel
                    Dec 4 at 21:48




                    This works no matter what the separator is, nice one.
                    – bspoel
                    Dec 4 at 21:48


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1380376%2fconvert-number-to-text-representation-with-specific-decimal-separator-in-excel%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                    Alcedinidae

                    Origin of the phrase “under your belt”?