Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Data Validation in Excel 2002

Hi

I want to limit the content of a cell based on what is entered in another
cell. For example if I enter "John" in cell A1 then in A2 I only want to be
able to choose from "Smith" or "Jones". But if I enter "Mary" into cell A1
then in cell A2 I only want to be able to choose "Jackson", "Bush" or
"McKenzie".

Is there a way I can do this in Excel 2002 (XP) using a macro or some sort
of VBA code?

Hope someone out there can help. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default Data Validation in Excel 2002

You could use dependent data validation lists:

http://www.contextures.com/xlDataVal02.html

geoff_francis_cox wrote:
Hi

I want to limit the content of a cell based on what is entered in another
cell. For example if I enter "John" in cell A1 then in A2 I only want to be
able to choose from "Smith" or "Jones". But if I enter "Mary" into cell A1
then in cell A2 I only want to be able to choose "Jackson", "Bush" or
"McKenzie".

Is there a way I can do this in Excel 2002 (XP) using a macro or some sort
of VBA code?

Hope someone out there can help. Thanks in advance.



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Data Validation in Excel 2002

Debra

That's brilliant and so easy (when you know how).

Thank you so much.

Geoff


"Debra Dalgleish" wrote:

You could use dependent data validation lists:

http://www.contextures.com/xlDataVal02.html

geoff_francis_cox wrote:
Hi

I want to limit the content of a cell based on what is entered in another
cell. For example if I enter "John" in cell A1 then in A2 I only want to be
able to choose from "Smith" or "Jones". But if I enter "Mary" into cell A1
then in cell A2 I only want to be able to choose "Jackson", "Bush" or
"McKenzie".

Is there a way I can do this in Excel 2002 (XP) using a macro or some sort
of VBA code?

Hope someone out there can help. Thanks in advance.



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com


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 Import into Excel 2002 [email protected] Excel Discussion (Misc queries) 1 July 11th 07 04:52 PM
Problem with length of validation list in Excel 2002 Vladimir Excel Worksheet Functions 4 December 15th 06 04:33 AM
Matching Data in Excel 2002 Mr. Low Excel Worksheet Functions 4 October 21st 06 09:31 AM
Importing xml Data into Excel 2002 CMichaelAPCC Excel Discussion (Misc queries) 0 June 9th 05 03:14 PM
Data Forms in Excel 2002 kez Setting up and Configuration of Excel 1 December 8th 04 10:17 PM


All times are GMT +1. The time now is 02:16 PM.

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"