Inserting comma(,) after every two digits of a number from right t

S

Senapati

I want to that once a number is entered in a cell it would be converted to a
form that has a comma inserted after every two digits from right to left.
example - 1 as 1; 123 as 1,23; 2345 as 23,45 and so on
Can anyone would help me please. Thanks
 
J

Jacob Skaria

If you want to convert that to text using formulas in the format you
mentioned then try the below

ColA Col B
1 1
123 1,23
1234 12,34
12345 1,23,45
123456 12,34,56
1234567 1,23,45,67
12345678 12,34,56,78
123456789 1,23,45,67,89

=SUBSTITUTE(TRIM(SUBSTITUTE(" "&SUBSTITUTE(TEXT
(A1,REPT("00 ",EVEN(LEN(A1)))),"00",)," 0",))," ",",")

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top