Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default data entry currency as cents if entering 2 numbers

Hi there,

I want excel to return "$.59" if I type in "59" and "$1.59" if I type in
"159"

Is there a way to do this?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default data entry currency as cents if entering 2 numbers

Sweet! Thanks so much - it worked perfectly!

"Jim Thomlinson" wrote:

Tools - Options Edit - Check fixed decimal places (ensure the number is 2)
--
HTH...

Jim Thomlinson


"Nonie" wrote:

Hi there,

I want excel to return "$.59" if I type in "59" and "$1.59" if I type in
"159"

Is there a way to do this?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default data entry currency as cents if entering 2 numbers

Just remember this is a global setting and will affect all workbooks and sheets.

You may want sheet event code which toggles this setting when you activate or
deactivate a particular sheet.

Private Sub Worksheet_Activate()
Application.FixedDecimal = True
End Sub

Private Sub Worksheet_Deactivate()
Application.FixedDecimal = False
End Sub

This is event code and goes into the sheet module.

Right-click on a sheet tab and "View Code"

Copy and paste the code into that module.

If you want the 2 DP on just a range of cells on one sheet you would need a
different event code tailored for a range.


Gord Dibben MS Excel MVP

On Fri, 1 Feb 2008 13:27:28 -0800, Jim Thomlinson
wrote:

Tools - Options Edit - Check fixed decimal places (ensure the number is 2)


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
data entry currency as cents if entering 2 numbers Jim Thomlinson Excel Discussion (Misc queries) 0 February 1st 08 09:27 PM
Currency Rounding to nearest 5 cents Daniel Sloan Excel Discussion (Misc queries) 3 July 20th 06 08:42 AM
entering data using - between numbers without converting to date Heather Excel Discussion (Misc queries) 8 July 13th 06 07:46 AM
How do I format to currency when number includes cents? INEEDHELP Excel Worksheet Functions 2 April 13th 06 04:27 PM
Negative numbers turn positive automatically on data entry Jerri Excel Discussion (Misc queries) 4 January 8th 05 05:05 PM


All times are GMT +1. The time now is 03:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"