Custom Format for Numbers

G

Guest

We have a system of Calculating Money in Lakhs & Crores, unlike Millions &
Billions. The Commas inevitablly confuse, can we have a system as follows…

by default expected as

1,000 1 Thousand 1,000
100,000 1 Lakh (100 Thousand) 1,00,000
10,000,000 1 Lakh (100 Lakh) 1,00,00,000

##,###,##0 custom format does not work

Thanking you in Anticipation
 
B

Bob Phillips

Custom formatting does work, but the trick is that you have to escape the
commas with a leading \. So, instead of

##,###,##0

you use

##\,###\,##0

You also have to stop Excel defaults in for any numbers, so test for greater
100,000 and greater than 10,000,000 like so

[>=100000]##\,##\,##0.00

In its final form, allowing

[>=10000000]##\,##\,##\,##0.00;[>=100000]##\,##\,##0.00;##,##0.00
--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

Thanx a lot Niek & Bob; that is a good help
--
Dr. Sachin Wagh
MBBS, DHA, DPH


Bob Phillips said:
Custom formatting does work, but the trick is that you have to escape the
commas with a leading \. So, instead of

##,###,##0

you use

##\,###\,##0

You also have to stop Excel defaults in for any numbers, so test for greater
100,000 and greater than 10,000,000 like so

[>=100000]##\,##\,##0.00

In its final form, allowing

[>=10000000]##\,##\,##\,##0.00;[>=100000]##\,##\,##0.00;##,##0.00
--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

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


Top