#1   Report Post  
Posted to microsoft.public.excel.misc
NWO NWO is offline
external usenet poster
 
Posts: 60
Default Validation lists...

Hi.

I have a list of Countries, and for each COuntry, I have some items. There
are many entires for each Country. What I'm trying to do is have 2 drop down
boxes - one for the Country, and then on for the items listed for that
country. I merely want to populate the COuntry cell with the name of the
country from the COuntry drop down, and populate the item cell with an item
selected for that selected country. Now I've tried the solution shown in the
Excel Hacks book, but the itesm part of the solution continues to give me an
error in the folowing formula:

=OFFSET(INDIRECT(ADDRESS(MATCH(Val1Cell,Country,0) +1,2,,,"Lists")),0,0,COUNTIF(Country,Val1Cell),1)

Any assistance is appreciated.

NWO.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Validation lists...

I'd start with Debra Dalgleish's site:
http://contextures.com/xlDataVal02.html

NWO wrote:

Hi.

I have a list of Countries, and for each COuntry, I have some items. There
are many entires for each Country. What I'm trying to do is have 2 drop down
boxes - one for the Country, and then on for the items listed for that
country. I merely want to populate the COuntry cell with the name of the
country from the COuntry drop down, and populate the item cell with an item
selected for that selected country. Now I've tried the solution shown in the
Excel Hacks book, but the itesm part of the solution continues to give me an
error in the folowing formula:

=OFFSET(INDIRECT(ADDRESS(MATCH(Val1Cell,Country,0) +1,2,,,"Lists")),0,0,COUNTIF(Country,Val1Cell),1)

Any assistance is appreciated.

NWO.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
NWO NWO is offline
external usenet poster
 
Posts: 60
Default Validation lists...

Thnaks. Example is still too confusing and does not work. I have one lkist
- countries, and another list, items for each country. I want a drop down to
first select COuntry, and then a second drop down to chocse form a list for
that country only.

NWO

"Dave Peterson" wrote:

I'd start with Debra Dalgleish's site:
http://contextures.com/xlDataVal02.html

NWO wrote:

Hi.

I have a list of Countries, and for each COuntry, I have some items. There
are many entires for each Country. What I'm trying to do is have 2 drop down
boxes - one for the Country, and then on for the items listed for that
country. I merely want to populate the COuntry cell with the name of the
country from the COuntry drop down, and populate the item cell with an item
selected for that selected country. Now I've tried the solution shown in the
Excel Hacks book, but the itesm part of the solution continues to give me an
error in the folowing formula:

=OFFSET(INDIRECT(ADDRESS(MATCH(Val1Cell,Country,0) +1,2,,,"Lists")),0,0,COUNTIF(Country,Val1Cell),1)

Any assistance is appreciated.

NWO.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Validation lists...

The example has worked for hundreds (probably 1000's) of people.

What part are you having trouble with?

NWO wrote:

Thnaks. Example is still too confusing and does not work. I have one lkist
- countries, and another list, items for each country. I want a drop down to
first select COuntry, and then a second drop down to chocse form a list for
that country only.

NWO

"Dave Peterson" wrote:

I'd start with Debra Dalgleish's site:
http://contextures.com/xlDataVal02.html

NWO wrote:

Hi.

I have a list of Countries, and for each COuntry, I have some items. There
are many entires for each Country. What I'm trying to do is have 2 drop down
boxes - one for the Country, and then on for the items listed for that
country. I merely want to populate the COuntry cell with the name of the
country from the COuntry drop down, and populate the item cell with an item
selected for that selected country. Now I've tried the solution shown in the
Excel Hacks book, but the itesm part of the solution continues to give me an
error in the folowing formula:

=OFFSET(INDIRECT(ADDRESS(MATCH(Val1Cell,Country,0) +1,2,,,"Lists")),0,0,COUNTIF(Country,Val1Cell),1)

Any assistance is appreciated.

NWO.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Validation lists...

=OFFSET(INDIRECT(ADDRESS(MATCH(Val1Cell,Country,0 )+1,2,,,"Lists")),0,0,COUNTIF(Country,Val1Cell),1)

See if this helps:

...........A............B
1.....US..........US1
2.....US..........US2
3.....Canada...Can1
4.....Canada...Can2
5.....Mexico...Mex1
6.....Mexico...Mex2
7.....Mexico...Mex3

X1 = drop down of countries
Y1 = drop down of items for the specific country

As the source for the drop down in Y1:

=OFFSET(B1,MATCH(X1,A1:A10,0)-1,,COUNTIF(A1:A10,X1))


--
Biff
Microsoft Excel MVP


"NWO" wrote in message
...
Thnaks. Example is still too confusing and does not work. I have one
lkist
- countries, and another list, items for each country. I want a drop down
to
first select COuntry, and then a second drop down to chocse form a list
for
that country only.

NWO

"Dave Peterson" wrote:

I'd start with Debra Dalgleish's site:
http://contextures.com/xlDataVal02.html

NWO wrote:

Hi.

I have a list of Countries, and for each COuntry, I have some items.
There
are many entires for each Country. What I'm trying to do is have 2
drop down
boxes - one for the Country, and then on for the items listed for that
country. I merely want to populate the COuntry cell with the name of
the
country from the COuntry drop down, and populate the item cell with an
item
selected for that selected country. Now I've tried the solution shown
in the
Excel Hacks book, but the itesm part of the solution continues to give
me an
error in the folowing formula:

=OFFSET(INDIRECT(ADDRESS(MATCH(Val1Cell,Country,0) +1,2,,,"Lists")),0,0,COUNTIF(Country,Val1Cell),1)

Any assistance is appreciated.

NWO.


--

Dave Peterson



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 lists Max Excel Worksheet Functions 6 November 30th 08 10:10 AM
How to clear validation lists based on other validation lists Ben Excel Discussion (Misc queries) 1 March 12th 07 07:11 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM
Validation lists Renee Major Excel Discussion (Misc queries) 1 April 25th 06 12:02 AM
lists and validation andrewm Excel Worksheet Functions 3 June 23rd 05 07:22 PM


All times are GMT +1. The time now is 12:33 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"