How to convert numbers in to millions

sandeepafpl

Board Regular
Joined
Aug 11, 2012
Messages
120
GM Friends,

I want to know what is the custom format for converting data in to millions format or lacs format (1 lacs = 100000.00).

Thanks in advance.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi Sandeep

You really mean the usual million or is it the indian currency 1,00,000 rupees (one hundred thousand rupees)?
 
Last edited:
Upvote 0
I mean when i enter Rs. 15,45,785.00 excel show it 15.46 in cell and 1545785 in formula bar.

I'll stand corrected, but I don't think this can be done.

If you have 1545785 in the formula bar then that is what will be formatted

You will need this in the formula bar
Code:
=1545785/10^5
or, referring to a cell ...
Code:
=A2/10^5

Then you could use this custom format
Code:
"Lacs "##0.00;[Red]-"Lacs "##0.00;0

For more on formatting Indian currency see this link
How to show Indian Currency Format in Excel? How to show Indian Number Formats in Excel? | Chandoo.org - Learn Microsoft Excel Online
 
Upvote 0
Hi

Unfortunately I don't think you have the simple solution you want just using formatting.

You could use a formula (for ex. with Text()) that formats the number as you want. It will, however, no longer be a number.



There is a way to work around it, that may or may not be adequate to your case: you can use a 2-line format and hide the second line.

You may try it and then see if it suits your needs:

1 - Select a cell and enter 1545785

2 - enter the custom format

0.00,,,%%

before pressing OK in the format, place the cursor between the last comma and the first % and press Ctrl-J. This inserts a linefeed.
Press OK.

3 - turn the Wrap text on. Make sure the row heigth stays the same. You should see in the cell

15.46

as you want.

Notice that what is displayed in the cell is a 2 line text

15.46
%%

You can confirm this by increasing the row height. By not increasing the row height you are in fact hiding the second line, that you don't want to see.

This is just formatting, the value in the cell does not change, it is still a number value that you may use for calculations.

Does this help?


Remarks:

I've experienced some problems when I want, later on, to access this type of 2-line format from the custom format form. To copy the format to other cells I use instead copy->paste format.

There might be other solutions involving vba or windows.
 
Upvote 0
@ pcg

I'm finding your suggestion in Post #7 very unstable.
When the file is saved and re-opened the formatting is corrupted.
It drops a comma each time it's saved and opened again ... :confused:

It is particularly difficult/unstable when trying to add negative red formatting.
Formatting for zero is really tricky, fine if the value is zero, but if there is a negative number, say less than 5 digits -0.00 is returned.

Testing in 2003, what am I missing?
 
Upvote 0
@ pcg

I'm finding your suggestion in Post #7 very unstable.
When the file is saved and re-opened the formatting is corrupted.
It drops a comma each time it's saved and opened again ... :confused:


Hi Marcol

I'm not home and I can't test.
I remember using something like this with no problem but there's nothing like testing.
I'll try to test it later and will post back.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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