Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 125
Default validation - conditional format

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

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 8,856
Default validation - conditional format

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

On Oct 10, 7:49 pm, "BNT1 via OfficeKB.com" <u19326@uwe wrote:
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

--
Message posted viahttp://www.officekb.com



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default validation - conditional format

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 DataValidation
Allow: Custom
Formula:

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

OK out

--
Biff
Microsoft Excel MVP


"Pete_UK" wrote in message
ups.com...
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

On Oct 10, 7:49 pm, "BNT1 via OfficeKB.com" <u19326@uwe wrote:
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

--
Message posted viahttp://www.officekb.com





  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 125
Default validation - conditional format

thanks to you all

have used the custom validation and formula, then copied sheet

regards

T. Valko wrote:
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 DataValidation
Allow: Custom
Formula:

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

OK out

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


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200710/1

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default validation - conditional format

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"BNT1 via OfficeKB.com" <u19326@uwe wrote in message
news:79af74b807597@uwe...
thanks to you all

have used the custom validation and formula, then copied sheet

regards

T. Valko wrote:
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 DataValidation
Allow: Custom
Formula:

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

OK out

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


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200710/1





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation in a Conditional Statement JanW Excel Worksheet Functions 2 June 6th 07 02:21 PM
Conditional Validation mojoshenpo Excel Worksheet Functions 3 July 29th 06 08:46 PM
Data Validation or Conditional Format (or combo of) Scott Excel Worksheet Functions 3 November 3rd 05 03:57 PM
Conditional Validation TTomSawyer Excel Worksheet Functions 1 August 12th 05 01:47 AM
Conditional validation :-) Robert Excel Discussion (Misc queries) 1 February 18th 05 08:07 AM


All times are GMT +1. The time now is 04:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"