PC Review


Reply
Thread Tools Rate Thread

Data Validation for Prices in Cells

 
 
Ryan H
Guest
Posts: n/a
 
      25th Feb 2010
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
 
Reply With Quote
 
 
 
 
EricG
Guest
Posts: n/a
 
      25th Feb 2010
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

 
Reply With Quote
 
ker_01
Guest
Posts: n/a
 
      25th Feb 2010
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom data validation on cells with data validation values AKrobbins Microsoft Excel Worksheet Functions 2 21st Jun 2011 04:20 PM
Validation Data and Looking Up Cells FredK Microsoft Excel Worksheet Functions 1 22nd Jun 2009 04:01 PM
Data validation in 3 cells mtlpp Microsoft Excel Programming 1 15th Jul 2005 10:48 PM
Data Validation on Cells =?Utf-8?B?cmluZ28gdGFu?= Microsoft Excel New Users 2 5th Aug 2004 07:23 AM
Data Validation on Cells =?Utf-8?B?cmluZ28gdGFu?= Microsoft Excel New Users 1 4th Aug 2004 11:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:37 AM.