Sep 12 2023 11:02 PM
I need to convert the following numbers in 2 digit comma group
Input output
12 12.00
123 1,23.00
1234 12,34.00
12345 1,23,45.00
123456 12,34,56.00
is there any format type or any other solution.
Sep 13 2023 12:33 AM
To achieve the custom comma grouping you described in Excel, you can use a combination of custom number formatting and formulas. Excel's built-in number formatting does not support this exact format, so we will need to create a custom formula for this purpose. Assuming the input number is in cell A1, you can use the following formula in another cell to achieve the desired output:
=TEXT(INT(A1/100), "0,") & TEXT(MOD(A1,100), "00.00")
Here is what this formula does:
This formula will give you the desired custom comma grouping for the given inputs:
You can adjust the cell references and the formula to match your specific Excel setup as needed.
Additional, using Excel's "Format Cells" feature, you can apply a custom number format to achieve a similar result. Excel's standard number formatting does not support the exact format you described (grouping digits by twos with commas). Instead, you can use a custom format to display the numbers in a somewhat similar way.
Here is how you can do it:
##\,##0.00
Now, the selected cells will display the numbers in a format similar to what you described, with commas as thousand separators. Here is how it will look based on your examples:
Please note that this format will group digits by threes with commas, which is a more common thousand separator format. If you specifically require grouping digits by twos, the custom formula approach I mentioned earlier would be necessary. The text and steps were edited with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark them as helpful and like it!
This will help all forum participants.