How To Format Numbers? I want to format [452365214] as [452, 365, 214].

M S Salimi

New Member
Joined
Jul 10, 2023
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hello;

I want to format [452365214] as [452, 365, 214]. Separating by comma and space.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Assuming the cell has just the number without the square brackets, you can use:
0, 000, 000
as a custom format code. If the square brackets are actually part of the cell, then a number format will not work.
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Assuming the cell has just the number without the square brackets, you can use:
0, 000, 000
as a custom format code. If the square brackets are actually part of the cell, then a number format will not work.
 

Attachments

  • Format Cell.png
    Format Cell.png
    11 KB · Views: 9
Upvote 0
I see your values are text (they are all left aligned)... you will not be able to format such a cell.
 
Last edited:
Upvote 0
I don't understand your post. Are you trying to tell me (us) that your version of Excel displays left to right or that your cell's alignment is left justified? Either way, I do not think you can get both the comma and space between the digit triples using cell formatting. If you are willing to have the numbers display the way you indicated using a formula in another cell... that can be done, but the values will be text.

=SUBSTITUTE(TEXT(G20,"#,###"),",",", ")
 
Upvote 0
You already have an answer in your cross-posted thread so I see little point in carrying on here.
 
Upvote 0
I don't understand your post. Are you trying to tell me (us) that your version of Excel displays left to right or that your cell's alignment is left justified? Either way, I do not think you can get both the comma and space between the digit triples using cell formatting. If you are willing to have the numbers display the way you indicated using a formula in another cell... that can be done, but the values will be text.

=SUBSTITUTE(TEXT(G20,"#,###"),",",", ")

Thank you for your guidance.
 
Upvote 0

Forum statistics

Threads
1,215,514
Messages
6,125,263
Members
449,219
Latest member
daynle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top