Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Selecting range for Data Validation list

I have a spreadsheet that is drawing from an Access database.

The user has a main choice, then for some of the main choices there are sub
selections. If there are only a couple, I can write an if to select the
different ranges on the Data Validation dialog box. But I'd like more
indpendence. When the database is tied I download tables. So if the main
choice has a sub selection, I have the letters that are the suffixes to the
range names with the various sub menus.

Here's an example of what I'd like to do:

MenuSuffix="WC"
=IF(MenuSuffix="",Range("A1"),"Index" & MenuSuffix)

Just how do I turn "Index" & MenuSuffix into the range value?

Don <www.donwiss.com (e-mail link at home page bottom).
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Selecting range for Data Validation list

Debra Dalgleish shows how to create dependent lists:
http://contextures.com/xlDataVal02.html

Don Wiss wrote:

I have a spreadsheet that is drawing from an Access database.

The user has a main choice, then for some of the main choices there are sub
selections. If there are only a couple, I can write an if to select the
different ranges on the Data Validation dialog box. But I'd like more
indpendence. When the database is tied I download tables. So if the main
choice has a sub selection, I have the letters that are the suffixes to the
range names with the various sub menus.

Here's an example of what I'd like to do:

MenuSuffix="WC"
=IF(MenuSuffix="",Range("A1"),"Index" & MenuSuffix)

Just how do I turn "Index" & MenuSuffix into the range value?

Don <www.donwiss.com (e-mail link at home page bottom).


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Selecting range for Data Validation list

On Sat, 25 Nov 2006, Dave Peterson wrote:

Don Wiss wrote:
Just how do I turn "Index" & MenuSuffix into the range value?


Debra Dalgleish shows how to create dependent lists:
http://contextures.com/xlDataVal02.html


Thanks Dave. I had once seen that page before. I found the process
confusing. But with a simple improvement to the tables backing these lists,
I came up with:

On my main input I have a column with this copied down:
=IF(V12="",A$3,INDIRECT(V12))

Then on my comparison sheet with two input cells I found I could use names:
=IF(SubMenu1="",A2,INDIRECT(SubMenu1))
=IF(SubMenu2="",A2,INDIRECT(SubMenu2))

Don <www.donwiss.com (e-mail link at home page bottom).
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 list using filtered range michaelberrier Excel Discussion (Misc queries) 3 March 2nd 11 12:13 AM
Data Validation - List - Setting Range from a macro dhstein Excel Discussion (Misc queries) 5 May 14th 09 01:11 PM
Automating Address Information based on selecting data via a validation list BrownsFan Excel Worksheet Functions 2 January 11th 07 10:09 PM
Help! Selecting item on data validation list switches windows Kevlar Excel Discussion (Misc queries) 0 February 28th 06 10:35 PM
data validation list selected from a range Native Excel Discussion (Misc queries) 11 January 20th 06 01:11 AM


All times are GMT +1. The time now is 09:55 AM.

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"