Format Cells for Numbers

meighkee

New Member
Joined
Sep 3, 2008
Messages
43
Greetings,

I'm looking for a way to format a cell to automatically place the decimal point two places to the right when I type in - say a 3 digit number, and not add two zero's at the end.
I've formatted the cell to use numbers, and 2 decimal places, but it currently places the decimal point at the end and adds two zeros.

Example: I type in the number 350. It adds two zeros and displays 350.00. What I would like is to display 3.50 preventing me from having to manually add the decimal point.

Hope that made sense.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
In Excel 2003 and below you would do this via Tools>Options>Edit and check Fixed Decimal Places (and ensure set to 2). In 2007/2010 this option will sit in File menu/Office Button>Options/Excel Options>Advanced (I think it's advanced).
 
Upvote 0
Click Tools - Options - Edit
Check "Fixed decimal places"
Select 2.

Warning, this will literally change the value from three hundred fifty, to three and one half. This is not just formatting/display.

Then format the cell for 2 decimal places.


Hope that helps.
 
Upvote 0
I do have a follow up question on this same issue. With regard to automatically placing the decimal point two places to the right by way of going into Excel Options, Advanced tab, etc., which affects Excel globally.
Ideally I would only like to apply it to a specific worksheet/workbook. Not the subsequent spreadsheets I create in the future.
 
Upvote 0
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ErrorHandler
Application.EnableEvents = False
Target.Value = Target.Value / 100
Application.EnableEvents = True
ErrorHandler:
Application.EnableEvents = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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