ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How could the number, '102845678' be displayed as '10,28,45,678'? (https://www.excelbanter.com/excel-discussion-misc-queries/12612-how-could-number-102845678-displayed-10-28-45-678-a.html)

vnranand

How could the number, '102845678' be displayed as '10,28,45,678'?
 
How could the number, '102845678' be displayed as '10,28,45,678'?

R.VENKATARAMAN

introduce this custom format

[=100000]##\,##\,##0.00;##,##0.00 indian style with 2 decimal

[=100000]##\,##\,##0;##,##0 indian style with no decimal


this is for commas after lakhs and thousands

modify to make the comma after crore also

this was given in the newsgroup. I am sorry I forgot to note down the name
of the MVP

vnranand wrote in message
...
How could the number, '102845678' be displayed as '10,28,45,678'?






Earl Kiosterud

V,

I don't think you can, at least if the comma is the thousands separator
("digit grouping symbol") called for in Windows Regional Settings. If you
can use another character, such as a hyphen, try Format - Cells - Number
tab - Custom, and put in something like:
##-##-##-###

Failing that, you could use a formula in another cell (another column,
perhaps). Post back for that. Or a worksheet change event macro could
convert the number to a string like you want.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"vnranand" wrote in message
...
How could the number, '102845678' be displayed as '10,28,45,678'?




Oliver Ferns via OfficeKB.com

In short, you can't. Why? Because '10,28,45,678'is not a number. However,
were you to start the cell entry with an apostrophe "'" then you can
achieve the effect of 10,28,45,678. Excel will not be able to perform
numerical calculations on this cell.


Hth,
Oli

--
Message posted via http://www.officekb.com

IanRoy

Hi, All;
Curious, I tried this. Custom format [=100000]##\,##\,##0;##,##0 gave me
1028,45,678 instead of 10,28,45,678. AutoSum worked on it, though. Adding two
of them gave me 2056,91,356. Excel treats these as numbers. It is wise to
avoid provincial assumptions about other peoples' number formats, and refrain
from blanket negatives about Excel. ;)
Regards,
Ian.

"Oliver Ferns via OfficeKB.com" wrote:

In short, you can't. Why? Because '10,28,45,678'is not a number. However,
were you to start the cell entry with an apostrophe "'" then you can
achieve the effect of 10,28,45,678. Excel will not be able to perform
numerical calculations on this cell.


Hth,
Oli

--
Message posted via http://www.officekb.com


R.VENKATARAMAN

as I said in the message this is for lakhs(an indian system of arithmetic).
you can MODIFY that for crores(the next level to lakh in indian system) ie.
10 crores 28 lakhs 45thousand 678.


IanRoy wrote in message
...
Hi, All;
Curious, I tried this. Custom format [=100000]##\,##\,##0;##,##0 gave me
1028,45,678 instead of 10,28,45,678. AutoSum worked on it, though. Adding

two
of them gave me 2056,91,356. Excel treats these as numbers. It is wise to
avoid provincial assumptions about other peoples' number formats, and

refrain
from blanket negatives about Excel. ;)
Regards,
Ian.

"Oliver Ferns via OfficeKB.com" wrote:

In short, you can't. Why? Because '10,28,45,678'is not a number.

However,
were you to start the cell entry with an apostrophe "'" then you can
achieve the effect of 10,28,45,678. Excel will not be able to perform
numerical calculations on this cell.


Hth,
Oli

--
Message posted via http://www.officekb.com




bkurve

How could the number, '102845678' be displayed as '10,28,45,678'?
 

Reg: how to format numbers in indian style (in crores) instead of
default american style (in millions).

do a Ctrl+1 and copy-paste the following text into the " Type " box:

if you want two decimal places:
[=10000000]##\,##\,##\,##0.00;[=100000]##\,##\,##0.00;##,##0.00

If you don't want decimal places. use this
[=10000000]##\,##\,##\,##0;[=100000]##\,##\,##0;##,##0


--
bkurve
------------------------------------------------------------------------
bkurve's Profile: http://www.excelforum.com/member.php...o&userid=34516
View this thread: http://www.excelforum.com/showthread...hreadid=344315



All times are GMT +1. The time now is 06:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com