Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Data Valadation Formula Needed

I want to limit data entry to two decimal places only. What would the
formula be?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Data Valadation Formula Needed

=MOD(A1*100,1)=0

HTH
--
AP

"Phil H" a écrit dans le message de
...
I want to limit data entry to two decimal places only. What would the
formula be?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Data Valadation Formula Needed

Ardus,

I think I've mistated the problem. Column E has currency values (dollars),
given into cents (hundreds). Example: $123.89. Column F is a balance
column with the following formula: =F22+E23, as would be located in F23. I
want to restrict entries in column E to two decimals, and prevent any
rounding in column F. What would the approach be? I thought data
validation, but can't get it to work with the MOD function.

Thanks, Phil

"Ardus Petus" wrote:

=MOD(A1*100,1)=0

HTH
--
AP

"Phil H" a écrit dans le message de
...
I want to limit data entry to two decimal places only. What would the
formula be?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Data Valadation Formula Needed

The formula I gave you
=MOD(E23*100,1)=0
applies to Data validation of column E

HTH
--
AP

"Phil H" a écrit dans le message de
...
Ardus,

I think I've mistated the problem. Column E has currency values

(dollars),
given into cents (hundreds). Example: $123.89. Column F is a balance
column with the following formula: =F22+E23, as would be located in F23.

I
want to restrict entries in column E to two decimals, and prevent any
rounding in column F. What would the approach be? I thought data
validation, but can't get it to work with the MOD function.

Thanks, Phil

"Ardus Petus" wrote:

=MOD(A1*100,1)=0

HTH
--
AP

"Phil H" a écrit dans le message de
...
I want to limit data entry to two decimal places only. What would the
formula be?






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Data Valadation Formula Needed

Ardus,

You are correct. In this case, I need to restrict intries in a range of
cells, say E5:E23. The below code looks for true when values are 1 through
12. How could it be modified to say the number of decimals must be two? If
I can get this to work, I have the solution. Thanks much for your help. Phil

' Between 1 and 12?
If cell < 1 Or cell 12 Then
EntryIsValid = "Valid values are between 1 and 12."
Exit Function
End If




"Ardus Petus" wrote:

The formula I gave you
=MOD(E23*100,1)=0
applies to Data validation of column E

HTH
--
AP

"Phil H" a écrit dans le message de
...
Ardus,

I think I've mistated the problem. Column E has currency values

(dollars),
given into cents (hundreds). Example: $123.89. Column F is a balance
column with the following formula: =F22+E23, as would be located in F23.

I
want to restrict entries in column E to two decimals, and prevent any
rounding in column F. What would the approach be? I thought data
validation, but can't get it to work with the MOD function.

Thanks, Phil

"Ardus Petus" wrote:

=MOD(A1*100,1)=0

HTH
--
AP

"Phil H" a écrit dans le message de
...
I want to limit data entry to two decimal places only. What would the
formula be?








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 Valadation klafert Excel Worksheet Functions 2 February 1st 09 09:09 PM
Data Valadation Jeff Excel Worksheet Functions 4 December 15th 08 07:32 PM
Data Valadation claude jerry Excel Discussion (Misc queries) 5 April 14th 07 04:04 PM
Data Valadation - KimberlyC Excel Worksheet Functions 1 June 2nd 05 09:29 PM
Data Valadation help KimberlyC Excel Worksheet Functions 2 April 18th 05 01:24 AM


All times are GMT +1. The time now is 02:08 AM.

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

About Us

"It's about Microsoft Excel"