Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Data Validation - lists if certain column is certain value

Hi,

I've got a simple register/task allocation spreadsheet and I want Data
Validation on the "task" cell to operate in the following manner:

If "present" cell is "NO" then only allow certain values (Sick, AWOL, etc)
If "present" cell is "YES" then allow any value

Any ideas? I've played around with custom functions to try and achieve this
without any luck :-(

George
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Data Validation - lists if certain column is certain value

Insert Name Define

Name: List1
Refersto: =IF(Sheet1!$A$1="NO",Sheet1!$J$1:$J$3,Sheet1!$I$1)

where I1 is truly blank and J1:J3 contains the choices for an abscence.

then in data validation after selecting the list option, in the textbox put

=List1

--
Regards,
Tom Ogilvy


"George" wrote:

Hi,

I've got a simple register/task allocation spreadsheet and I want Data
Validation on the "task" cell to operate in the following manner:

If "present" cell is "NO" then only allow certain values (Sick, AWOL, etc)
If "present" cell is "YES" then allow any value

Any ideas? I've played around with custom functions to try and achieve this
without any luck :-(

George

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Data Validation - lists if certain column is certain value

Thanks Tom - I haven't tried this out although I can see the reasoning behind
this and reckon it would work a treat.

What happens if I have multiple tabs with the "present" column on them? In
the List1 definition I can see "Sheet1" - what do I need to change if I want
to be able to apply this list to multiple sheets (the present column is in
the same place on each of these sheets)...

George

"Tom Ogilvy" wrote:

Insert Name Define

Name: List1
Refersto: =IF(Sheet1!$A$1="NO",Sheet1!$J$1:$J$3,Sheet1!$I$1)

where I1 is truly blank and J1:J3 contains the choices for an abscence.

then in data validation after selecting the list option, in the textbox put

=List1

--
Regards,
Tom Ogilvy


"George" wrote:

Hi,

I've got a simple register/task allocation spreadsheet and I want Data
Validation on the "task" cell to operate in the following manner:

If "present" cell is "NO" then only allow certain values (Sick, AWOL, etc)
If "present" cell is "YES" then allow any value

Any ideas? I've played around with custom functions to try and achieve this
without any luck :-(

George

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
Data validation lists help? RMcA Excel Worksheet Functions 6 January 29th 08 07:11 PM
Data validation and lists KatJ Excel Programming 1 January 21st 07 11:26 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM
Data Validation (2 lists) Ed Excel Discussion (Misc queries) 6 June 30th 06 01:03 AM
data validation lists [email protected] Excel Discussion (Misc queries) 5 June 25th 05 07:44 PM


All times are GMT +1. The time now is 07:04 AM.

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

About Us

"It's about Microsoft Excel"