Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2012, 12:38 AM
Balas's Avatar
Balas Balas is offline Cell - Y/N Windows XP Cell - Y/N Office 2007
Novice
Cell - Y/N
 
Join Date: Mar 2012
Posts: 8
Balas is on a distinguished road
Default Cell - Y/N

Hi -

Please suggest me how to process a column (Conditionally) with the required values only...?

For example, I'm having a column called Exam Status for which I need to get values Y/N only.

Exam Status (Y/N)
--------------------
Y


N
Pass ==> I dont like others to type other than Y / N.
Y
Y
N

Thanks In advance
-Balas
Reply With Quote
  #2  
Old 04-26-2012, 01:52 AM
grizz grizz is offline Cell - Y/N Windows XP Cell - Y/N Office 2003
Novice
 
Join Date: Jan 2012
Posts: 28
grizz is on a distinguished road
Default

highlight the column ( lets say column "A" )
go data / validation / custom
Code:
=AND(OR(A1="N",A1="Y"),LEN(A1)=1)
this will allow a Y or N in the column anything else will show error
Reply With Quote
  #3  
Old 04-26-2012, 04:04 AM
Balas's Avatar
Balas Balas is offline Cell - Y/N Windows XP Cell - Y/N Office 2007
Novice
Cell - Y/N
 
Join Date: Mar 2012
Posts: 8
Balas is on a distinguished road
Default Cell - Y/N

This is working fine.

But, my requirement is I need to restrict the cell values of a particular column. For a column called Exam_Status the values I need to populate should restrict to Y/N only.

Please provide your suggestion.

Thanks,
-Balas
Reply With Quote
  #4  
Old 04-26-2012, 04:34 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Cell - Y/N Windows 7 64bit Cell - Y/N Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

That is exactly what grizz suggested

Select the column /range you need - say col A - selection starting in A1 - and follow the suggestion. If you use another colmun, change A to the column letter you need
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 05-14-2012, 03:21 AM
Balas's Avatar
Balas Balas is offline Cell - Y/N Windows XP Cell - Y/N Office 2007
Novice
Cell - Y/N
 
Join Date: Mar 2012
Posts: 8
Balas is on a distinguished road
Thumbs up

Thanks.

Got it...!

-Balas
Reply With Quote
Reply

Tags
excel 2007



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying part of a cell to a new cell paulw793 Excel 7 01-27-2012 10:46 AM
How can I delete the content of a cell in column if the cell value is more than 1000? Learner7 Excel 2 06-27-2011 05:44 AM
How can I fill cell color starting from Cell D5 using Conditional formatting instead Learner7 Excel 0 07-08-2010 05:50 AM
How can I make a cell color RED under the Today's date cell? Learner7 Excel 2 07-08-2010 12:52 AM
Auto-populate an MS Word table cell with text from a diff cell? dreamrthts Word Tables 0 03-20-2009 01:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft