PC Review


Reply
Thread Tools Rate Thread

How to design data entry validation?

 
 
nomail1983@hotmail.com
Guest
Posts: n/a
 
      19th Aug 2007
We enter daily expenses into a spreadsheet.

We have a list of categories in one section (range) of the
spreadsheet. How can I ensure that the category in the expense log is
one of the existing categories in the list?

First, could we have a drop-down menu that is automagically updated if/
when we add categories to the list? If so, can someone outline the
design? I have no idea.

Alternatively, can we have a pop-up message that simply says the
category is incorrect? Does that have to be a (event) macro? If so,
can someone outline the design? I have never seen that kind of
macro. How could the solution (macro or what-have-you) get updated
automagically if/when we add categories to the list?

I 'spose I could have a named range, which may or may not also need to
be updated when we update the list. Perhaps a clever specification of
the range and a discipline for updating the list (viz. inserting
between blank rows) can avoid changing the named range definition.

Of course, I know that could have a column that does a lookup and
displays a non-blank symbol if the corresponding cell in the category
column does not match. In fact, that is what we have now. But it is
"not working" for us insofar as the user (not I) still fails to make
the necessary correction (sigh).

 
Reply With Quote
 
 
 
 
Debra Dalgleish
Guest
Posts: n/a
 
      19th Aug 2007
You can use dynamic ranges for the option lists, as described here:

http://www.contextures.com/xlNames01.html

Then, refer to those names in the data validation dialog boxes:

http://www.contextures.com/xlDataVal01.html

Data validation can include input and error messages:

http://www.contextures.com/xlDataVal04.html


(E-Mail Removed) wrote:
> We enter daily expenses into a spreadsheet.
>
> We have a list of categories in one section (range) of the
> spreadsheet. How can I ensure that the category in the expense log is
> one of the existing categories in the list?
>
> First, could we have a drop-down menu that is automagically updated if/
> when we add categories to the list? If so, can someone outline the
> design? I have no idea.
>
> Alternatively, can we have a pop-up message that simply says the
> category is incorrect? Does that have to be a (event) macro? If so,
> can someone outline the design? I have never seen that kind of
> macro. How could the solution (macro or what-have-you) get updated
> automagically if/when we add categories to the list?
>
> I 'spose I could have a named range, which may or may not also need to
> be updated when we update the list. Perhaps a clever specification of
> the range and a discipline for updating the list (viz. inserting
> between blank rows) can avoid changing the named range definition.
>
> Of course, I know that could have a column that does a lookup and
> displays a non-blank symbol if the corresponding cell in the category
> column does not match. In fact, that is what we have now. But it is
> "not working" for us insofar as the user (not I) still fails to make
> the necessary correction (sigh).
>



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      19th Aug 2007
If you make the named range a dynamic range, then use of Data Validation
should meet your needs.

See:

http://www.contextures.com/xlNames01.html#Dynamic

http://www.contextures.com/xlDataVal01.html

HTH

"(E-Mail Removed)" wrote:

> We enter daily expenses into a spreadsheet.
>
> We have a list of categories in one section (range) of the
> spreadsheet. How can I ensure that the category in the expense log is
> one of the existing categories in the list?
>
> First, could we have a drop-down menu that is automagically updated if/
> when we add categories to the list? If so, can someone outline the
> design? I have no idea.
>
> Alternatively, can we have a pop-up message that simply says the
> category is incorrect? Does that have to be a (event) macro? If so,
> can someone outline the design? I have never seen that kind of
> macro. How could the solution (macro or what-have-you) get updated
> automagically if/when we add categories to the list?
>
> I 'spose I could have a named range, which may or may not also need to
> be updated when we update the list. Perhaps a clever specification of
> the range and a discipline for updating the list (viz. inserting
> between blank rows) can avoid changing the named range definition.
>
> Of course, I know that could have a column that does a lookup and
> displays a non-blank symbol if the corresponding cell in the category
> column does not match. In fact, that is what we have now. But it is
> "not working" for us insofar as the user (not I) still fails to make
> the necessary correction (sigh).
>
>

 
Reply With Quote
 
=?Utf-8?B?VGV2dW5h?=
Guest
Posts: n/a
 
      19th Aug 2007
Another way would be to create a list, if your version is 2003, or a table if
it's 2007.
1) Enter all valid categories in that list or table
2) Define a name conterminous, or having the same limits, as the list or
table
3) Data > Validation > Settings> list > =Name
4) Data > Validation > Error Alert > Error message "Invalid Category"
As the table expands or contracts, so does the defined name.

"Debra Dalgleish" wrote:

> You can use dynamic ranges for the option lists, as described here:
>
> http://www.contextures.com/xlNames01.html
>
> Then, refer to those names in the data validation dialog boxes:
>
> http://www.contextures.com/xlDataVal01.html
>
> Data validation can include input and error messages:
>
> http://www.contextures.com/xlDataVal04.html
>
>
> (E-Mail Removed) wrote:
> > We enter daily expenses into a spreadsheet.
> >
> > We have a list of categories in one section (range) of the
> > spreadsheet. How can I ensure that the category in the expense log is
> > one of the existing categories in the list?
> >
> > First, could we have a drop-down menu that is automagically updated if/
> > when we add categories to the list? If so, can someone outline the
> > design? I have no idea.
> >
> > Alternatively, can we have a pop-up message that simply says the
> > category is incorrect? Does that have to be a (event) macro? If so,
> > can someone outline the design? I have never seen that kind of
> > macro. How could the solution (macro or what-have-you) get updated
> > automagically if/when we add categories to the list?
> >
> > I 'spose I could have a named range, which may or may not also need to
> > be updated when we update the list. Perhaps a clever specification of
> > the range and a discipline for updating the list (viz. inserting
> > between blank rows) can avoid changing the named range definition.
> >
> > Of course, I know that could have a column that does a lookup and
> > displays a non-blank symbol if the corresponding cell in the category
> > column does not match. In fact, that is what we have now. But it is
> > "not working" for us insofar as the user (not I) still fails to make
> > the necessary correction (sigh).
> >

>
>
> --
> Debra Dalgleish
> Contextures
> http://www.contextures.com/tiptech.html
>
>

 
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
Data Entry + Validation Neon520 Microsoft Excel Misc 3 6th Mar 2009 06:27 PM
Data Entry Validation Jeremy S Microsoft C# .NET 2 19th Jun 2005 03:30 AM
Data entry validation Van123 Microsoft Access Queries 1 23rd Mar 2005 12:17 PM
Data Entry Validation Melinda Microsoft Access Form Coding 1 8th Jun 2004 10:56 PM
Data Entry Validation Bonnie Microsoft Access Form Coding 1 17th Oct 2003 08:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 PM.