RockyAndNickels
07-20-2008, 02:55 PM
I have a spreadsheet that calculates portions of my paycheck (so I know what to expect). Part of it is to estimates the taxes I pay, then later, when I put in the true values, I have to punch 'em in with the decimal point. Is there a way for me to punch in a whole-number value (say 1000) and it is converted into a decimal value (in this case, change it into $10.00)
BTW, I have Excel version 2003.
__________________
Peter A.
The Big Guy
ajetrumpet
07-20-2008, 07:45 PM
i'm a little confused on this. why not just format the appropriate cells that you are entering into as currency to begin with?
RockyAndNickels
07-21-2008, 05:09 AM
I already have the cells formated to be currency and at 2 decimal places. The thing is is that I just don't want to be hitting the decimal point. I just want to enter a number and have it automatically insert a decimal point.
midmented
07-21-2008, 05:22 AM
You should be able to type in 10, hit enter, and it will enter the .00
chergh
07-21-2008, 05:36 AM
You could use the following code in the worksheet change event to get what you want.
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If IsNumeric(Target.Value) = True Then
Application.EnableEvents = False
Target.Value = Target.Value / 100
Application.EnableEvents = False
End If
End Sub