LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 395
Default Data Validation for Prices in Cells

With the custom formula option, you can do something like:

=AND(A1 = round(A1,2), A1=3.50, A1<4.50)
this forces the number to be 2 decimal places, and at least 3.5 and no more
than 4.5

note: This doesn't work well for percentages (round(A1,4) for a percent with
2 decimals) because if the entry fails against the data validation rule, when
it highlights the cell for re-entry, it does not treat the newly entered
number as a percent, so you are pretty much guaranteed to be outside your
min/max value ranges.

HTH,
Keith
"EricG" wrote:

Data/Validation -- Select Decimal? That will ensure the user enters a
decimal number. You can use the min/max ranges to make sure the number is
reasonable. The only thing this won't do is ensure that the decimal number
as only two places, so the user could enter 45.32384.

If you want to enforce the two decimal place requirement, you would probably
have to use the "Custom" selection and create an appropriate formula.

HTH,

Eric

"Ryan H" wrote:

Out of all the years I've used Excel I've never used data validation before
and need help. I have a list of part numbers (Col.A), part descriptions
(Col.B), and part prices (Col.C). I want to ensure the user enters a valid
price in Col. C. It can be any price, but must be numeric. I have Col.C
formatted as Accountanting. And ideas?

Thanks in Advance!
--
Cheers,
Ryan

 
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
custom data validation on cells with data validation values AKrobbins Excel Worksheet Functions 2 June 21st 11 04:20 PM
Validation Data and Looking Up Cells FredK Excel Worksheet Functions 1 June 22nd 09 04:01 PM
Data validation in 3 cells mtlpp[_4_] Excel Programming 1 July 15th 05 10:48 PM
Use a multiplier to change List Prices to Net prices Dangada Excel Worksheet Functions 1 July 6th 05 06:31 AM
How do I compare 4 cells of prices and print the lowest value in . Jerry Foley Excel Worksheet Functions 5 February 13th 05 04:57 PM


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

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"