Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Data Import into Excel 2002 | Excel Discussion (Misc queries) | |||
Problem with length of validation list in Excel 2002 | Excel Worksheet Functions | |||
Matching Data in Excel 2002 | Excel Worksheet Functions | |||
Importing xml Data into Excel 2002 | Excel Discussion (Misc queries) | |||
Data Forms in Excel 2002 | Setting up and Configuration of Excel |