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
Solved

Yes No data validation

Posted on 2011-03-04
10
812 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
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

789 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