Solved

Yes No data validation

Posted on 2011-03-04
10
788 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
Comment Utility
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
Comment Utility
Or just enter:
Yes, No
in the Source box.
0
 

Author Comment

by:Frank Freese
Comment Utility
can it be done w/o a list box with code
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
Comment Utility
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
Comment Utility
Yes, rorya's solution is the one you want :)
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:Frank Freese
Comment Utility
is a source box the same as a cell
0
 
LVL 1

Expert Comment

by:TonyWong
Comment Utility
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
Comment Utility
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
Comment Utility
thank you
0
 
LVL 85

Expert Comment

by:Rory Archibald
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now