Solved

Yes No data validation

Posted on 2011-03-04
10
820 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
Technology Partners: 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 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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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 the scrolling table in Microsoft Excel using the INDEX function.

730 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