Format Cells - Custom

E

Emece

I need to assign a custom format to a cell, in order to display numbers in
this format: 1.234.567-8
How should I specify the format?

Thanks in advance

Best Regards,
Emece.-
 
P

Peo Sjoblom

I assume you always have an 8 digit number with no decimals, use custom
format

0"."000"."000-0

--


Regards,


Peo Sjoblom
 
E

Emece

Great, this works. Thanks for your prompt reply.

One more question, can you please explain me the use of the " in the format?

Thanks once again
 
P

Peo Sjoblom

Otherwise the dots which are decimal delimiters using US number format
will screw up the format. If we used

0.000.000-0


it would look like this


12345678.000.000-0

By putting quotations around the periods they will
be seen as text and not delimiters.

For instance if you want to display a number with a pound sign like this

#12545678

you cannot use

#00000000

if you use

"#"00000000 it will work

That is because the pound sign is used for formatting numbers like

12,345,678.00

using #,##0.00


HTH



--


Regards,


Peo Sjoblom
 

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

Similar Threads

Custom Number Format 1
Format cells (number) issue 1
Date format 8
Superscript in Custom Format 2
vLookup, Look up Value 1
Insert Picture as Background 2
Cell size 2
Convert Numbers stored as Text to Numbers 2

Top