?
Solved

Yes No data validation

Posted on 2011-03-04
10
Medium Priority
?
831 Views
Last Modified: 2012-05-11
Experts,
Can you have a data validation rule that only allows for a Yes or No value
0
Comment
Question by:Frank Freese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 1

Expert Comment

by:TonyWong
ID: 35037402
Yes you can if you choose 'List' as your allowed values under Data Validation and reference to the cells which contain the 'Yes' and 'No' as your validation list.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35037438
Or just enter:
Yes, No
in the Source box.
0
 

Author Comment

by:Frank Freese
ID: 35037444
can it be done w/o a list box with code
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 total points
ID: 35037457
You don;t have to have a listbox - you can still use the data validation?
If you really want code for some reason then use the Change event of the worksheet and check the cell value.
0
 
LVL 1

Expert Comment

by:TonyWong
ID: 35037461
Yes, rorya's solution is the one you want :)
0
 

Author Comment

by:Frank Freese
ID: 35037465
is a source box the same as a cell
0
 
LVL 1

Expert Comment

by:TonyWong
ID: 35037495
No, rorya is referring to the 'Source' field within the Data Validation pop up when you choose 'List' from the 'Allow' part.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35037496
No - in the Data Validation dialog, change the Allow option to List, then type
Yes, No
in the Source textbox, and uncheck the In-cell dropdown option.
Note: this will be case sensitive so you may want to use a source range instead.
0
 

Author Closing Comment

by:Frank Freese
ID: 35037528
thank you
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35037548
I think a points split would be fair here as TonyWong's first answer directly addressed your initial question - would you like me to get this reopened so you can reallocate the points?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question