Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Data Valadation Question

 
   Windows Help (Home) -> Microsoft Excel RSS
Next:  Excel Macro Problem  
Author Message
JimS

External


Since: Oct 18, 2008
Posts: 10



(Msg. 1) Posted: Fri Nov 07, 2008 11:57 am
Post subject: Data Valadation Question
Archived from groups: microsoft>public>excel (more info?)

I'm looking into using data validation for my spreadsheet.

Will data validation allow you to do the following.

Let's say cell A1 must match cell D1. So if in cell A1 you put X, but
in cell D1 you put Y, can you have an error message coming up saying
data doesn't match, or whatever?

 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
T. Valko

External


Since: Oct 22, 2008
Posts: 20



(Msg. 2) Posted: Fri Nov 07, 2008 4:30 pm
Post subject: Re: Data Valadation Question
Archived from groups: per prev. post (more info?)

Yes, you can do that but the way you've described it you want D1 to match
A1.

Select cell D1
Goto the menu Data>Validation
Allow: Custom
Formula: =D1=A1
Select the Error Alert tab
Enter the message you want displayed
OK out

 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
ShaneDevenshire

External


Since: Oct 17, 2008
Posts: 19



(Msg. 3) Posted: Fri Nov 07, 2008 5:50 pm
Post subject: RE: Data Valadation Question
Archived from groups: per prev. post (more info?)

Hi,

You may also want to consider Conditional Formatting, because it allows you
to alert the user with a cell color change. Sometimes that is also useful.
 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
JimS

External


Since: Oct 18, 2008
Posts: 10



(Msg. 4) Posted: Fri Nov 07, 2008 6:41 pm
Post subject: Re: Data Valadation Question
Archived from groups: per prev. post (more info?)

So in other words, if the user puts in the wrong data the cell changes
color? I've never used a formula for conditional formatting. Would
you enter the formula the same way that you would in a cell?

On Fri, 7 Nov 2008 17:50:01 -0800, ShaneDevenshire
wrote:

>Hi,
>
>You may also want to consider Conditional Formatting, because it allows you
>to alert the user with a cell color change. Sometimes that is also useful.
 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
JimS

External


Since: Oct 18, 2008
Posts: 10



(Msg. 5) Posted: Sat Nov 08, 2008 12:03 am
Post subject: Re: Data Valadation Question
Archived from groups: per prev. post (more info?)

Thanks, this will come in handy. One other question. Can you do
this:

User inputs "e" into cell A1. In cell D1 they should put the number
"1". Let's say they put 2 by mistake.

Two questions:

1. How would you write the formula so that they have to put a "1" and
how would you write the formula that makes it their option. In other
words, they should put a "1", but they don't have to if they don't
want to.

If they correctly put in a "1" I don't want any message to show up.

Is that possible?

Thanks for the help.

On Fri, 7 Nov 2008 16:30:31 -0500, "T. Valko"
wrote:

>Yes, you can do that but the way you've described it you want D1 to match
>A1.
>
>Select cell D1
>Goto the menu Data>Validation
>Allow: Custom
>Formula: =D1=A1
>Select the Error Alert tab
>Enter the message you want displayed
>OK out
 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
T. Valko

External


Since: Oct 22, 2008
Posts: 20



(Msg. 6) Posted: Sat Nov 08, 2008 12:23 pm
Post subject: Re: Data Valadation Question
Archived from groups: per prev. post (more info?)

Ok, I guess 1 has a direct relationship to "E"...

The formula would be:

=AND(A1="E",D1=1)

Now, to allow the user a choice:

On the Error Alert tab you can set it to different levels of alert. To give
the user a choice to accept the entry set the error alert to Warning from
the Styles drop down list.

If A1=E and if the user enters 1 in D1 no message will appear. If the user
enters anything else then they'll get the warning message with the option of
accepting the entry.
 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
JimS

External


Since: Oct 18, 2008
Posts: 10



(Msg. 7) Posted: Sun Nov 09, 2008 9:28 am
Post subject: Re: Data Valadation Question
Archived from groups: per prev. post (more info?)

Thanks, Biff. I've been playing around with this. It gets tricky,
especially if you want to use a range or column instead of a single
cell.

Do you know of a good turorial, video or otherwise on the web I could
read to try and get myself up to speed on this kind of data
validation?

Thanks again.

On Sat, 8 Nov 2008 12:23:37 -0500, "T. Valko"
wrote:

>Ok, I guess 1 has a direct relationship to "E"...
>
>The formula would be:
>
>=AND(A1="E",D1=1)
>
>Now, to allow the user a choice:
>
>On the Error Alert tab you can set it to different levels of alert. To give
>the user a choice to accept the entry set the error alert to Warning from
>the Styles drop down list.
>
>If A1=E and if the user enters 1 in D1 no message will appear. If the user
>enters anything else then they'll get the warning message with the option of
>accepting the entry.
 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
T. Valko

External


Since: Oct 22, 2008
Posts: 20



(Msg. 8) Posted: Sun Nov 09, 2008 12:59 pm
Post subject: Re: Data Valadation Question
Archived from groups: per prev. post (more info?)

Maybe here:

[URL="http://contextures.com/tiptech.html"]http://contextures.com/tiptech.html[/URL]

There's a lot on data validation but it's mostly about setting up various
types of drop down lists.
 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
ShaneDevenshire

External


Since: Oct 17, 2008
Posts: 19



(Msg. 9) Posted: Sun Nov 09, 2008 10:57 pm
Post subject: Re: Data Valadation Question
Archived from groups: per prev. post (more info?)

Hi,

Using your original example that A1 must equal D1.

1. Select either cell, which ever one you want to change color, lets say
for this example A1
2. Choose Format, Conditional Formatting, and from the first drop down pick
Formula is, in the second box enter =A1<>D1
3. Click the Format button and on the Patterns tab pick a color.
4. Click OK twice.

When A1<>D1 A1 will change color. If and when they do become equal than the
formatting will automatically disappear. This works for number, text, dates
or even the results of formulas.

If this helps, please click the Yes button.
 >> Stay informed about: Data Valadation Question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How do I fit a graph to data? - I work at a non-profit agency. We receive funds on an annual basis for our work, which we distribute under contract to other agencies. The full details aren't important, the main point is the rate of "burn" through the money. We use diffe...

Help with converting data in Excel - Hello all, I have been working with a client of mine for the last few weeks to get a simple data conversion taken care of. However it has turned out to be more difficult than I expected. I was provided a *.txt file that had tons of columns and extra..

Importing data from Access - Hi all, We've recently upgraded from Office 2000 to Office 2007. On the whole the transition was pretty painless once I got over the culture shock. But I have one remaining issue I can't resolve: I have a number of Excel pivot tables which draw their..

How to cluster data with Excel - Dear all, excuse me for this maybe "too simple" question.. I am trying to find a way to "cluster" simple data on an excel sheet Example: Variable a Variable b Variable c Case 1 1 0 ...

Formatting number in Data Table - I am using Excel 2007. I have a spreadsheet that the figures can be negative or positve. I have formatted the cells with this custom format $#,##0;[Red]$-#,##0. On the spreadsheet the format works fine. I created a chart from the data. I have a data...
   Windows Help (Home) -> Microsoft Excel All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]