Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

validation - conditional format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BNT1 - 10 Oct 2007 19:49 GMT
Hi

I require that a cell range , say, A1:A23, can only accept, "H","S","Y","N"
or "O" and nothing else.  The file is 52 sheets and will be applied to all
sheets

Can this be achieved by conditional formating or has it got to be
validation/list etc?

thanks in advance

brian
Pete_UK - 10 Oct 2007 23:07 GMT
Conditional formatting has got nothing to do with it !! CF allows you
to change the appearance of the cell (bold, italic, underline, colours
etc) if some condition is met, and in XL2003 or earlier you can have
up to 3 different conditions monitored in each cell. This has got
nothing to do with restricting the items that can be put into a cell,
which, as you surmise, is something you do with Data | Validation.

However, you can save a lot of time by grouping all the sheets
together (right-click on a sheet tab, or click on the first sheet,
hold down SHIFT and click on the last sheet tab then release SHIFT)
and then set up the data validation in the cells A1:A23. When
finished, ungroup the sheets (right-click on a tab), and the DV will
have been applied to that range in all the sheets.

Hope this helps.

Pete

> Hi
>
[quoted text clipped - 11 lines]
> --
> Message posted viahttp://www.officekb.com
T. Valko - 11 Oct 2007 06:44 GMT
> However, you can save a lot of time by grouping all the sheets
> together (right-click on a sheet tab, or click on the first sheet,
> hold down SHIFT and click on the last sheet tab then release SHIFT)
> and then set up the data validation in the cells A1:A23.

Can't apply validation with sheets grouped, at least, not in Excel 2002.

You can apply the validation to one sheet then copy it and paste it to the
remaining grouped sheets.

>A1:A23, can only accept, "H","S","Y","N"or "O" and nothing else.

I assume you explicitly mean those uppercase letters.

Select the range A1:A23
Goto Data>Validation
Allow: Custom
Formula:

=AND(LEN(A1)=1,COUNT(FIND(A1,"HSYNO")))

OK out

Signature

Biff
Microsoft Excel MVP

> Conditional formatting has got nothing to do with it !! CF allows you
> to change the appearance of the cell (bold, italic, underline, colours
[quoted text clipped - 31 lines]
>> --
>> Message posted viahttp://www.officekb.com
BNT1 - 14 Oct 2007 17:12 GMT
thanks to you all

have used the custom validation and formula, then copied sheet

regards

>> However, you can save a lot of time by grouping all the sheets
>> together (right-click on a sheet tab, or click on the first sheet,
[quoted text clipped - 24 lines]
>>> --
>>> Message posted viahttp://www.officekb.com
T. Valko - 14 Oct 2007 18:36 GMT
You're welcome. Thanks for the feedback!

Signature

Biff
Microsoft Excel MVP

> thanks to you all
>
[quoted text clipped - 30 lines]
>>>> --
>>>> Message posted viahttp://www.officekb.com

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.