Solved

Yes No data validation

Posted on 2011-03-04
10
830 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
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…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

707 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