Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default vlookup and validating data list

I use Excel 2007, but will need to share this workbook with 2003 users.

On worksheet 1, I want to pick from a list of possible options for info that
goes into column for Subs from the row that matches the Mfg on worksheet 2.

Not all Mfg may have a Sub option, therefore I may want to repeat the Mfg
name.
Both worksheets will have adds and deletes over the course of the year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from the column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name range for
each row.

Any suggestions?
Thanks so much

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Jim is offline
external usenet poster
 
Posts: 615
Default vlookup and validating data list

I'm not sure I understand it all, but your vlookup will return Jupiter if you
change the vlookup from ...,2) to ...,5)

good luck...
Jim

"Donna" wrote:

I use Excel 2007, but will need to share this workbook with 2003 users.

On worksheet 1, I want to pick from a list of possible options for info that
goes into column for Subs from the row that matches the Mfg on worksheet 2.

Not all Mfg may have a Sub option, therefore I may want to repeat the Mfg
name.
Both worksheets will have adds and deletes over the course of the year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from the column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name range for
each row.

Any suggestions?
Thanks so much

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default vlookup and validating data list

True, but I don't always know the column B-H that contains the answer,
therefore, was hoping to create a list for that row to choose from after it
matches col A.

"Jim" wrote:

I'm not sure I understand it all, but your vlookup will return Jupiter if you
change the vlookup from ...,2) to ...,5)

good luck...
Jim

"Donna" wrote:

I use Excel 2007, but will need to share this workbook with 2003 users.

On worksheet 1, I want to pick from a list of possible options for info that
goes into column for Subs from the row that matches the Mfg on worksheet 2.

Not all Mfg may have a Sub option, therefore I may want to repeat the Mfg
name.
Both worksheets will have adds and deletes over the course of the year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from the column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name range for
each row.

Any suggestions?
Thanks so much

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup and validating data list

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the selections:

Stars,Venus,Mars,Saturn,Jupiter


If B2 = Cars then you want a drop down list in C2 with the selections:

Cars,Ford,GM,Toyato


If B2 = States then you want a drop down list in C2 with the selections:

States


If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with 2003 users.

On worksheet 1, I want to pick from a list of possible options for info
that
goes into column for Subs from the row that matches the Mfg on worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to repeat the Mfg
name.
Both worksheets will have adds and deletes over the course of the year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name range
for
each row.

Any suggestions?
Thanks so much



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default vlookup and validating data list

Thanks so much for the reply,. Your assessment is correct, but I've not be
able to get it to work. After last step doing the DataValidation, I get an
error: "The Source currently evaluates to an error. Do you want to
continue? Yes No" When I select Yes, it has the drop down button, but there
is no list.

You made reference to the range of A2:F5 but in the formula it was A2:A5.
Is that correct?

"T. Valko" wrote:

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the selections:

Stars,Venus,Mars,Saturn,Jupiter


If B2 = Cars then you want a drop down list in C2 with the selections:

Cars,Ford,GM,Toyato


If B2 = States then you want a drop down list in C2 with the selections:

States


If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with 2003 users.

On worksheet 1, I want to pick from a list of possible options for info
that
goes into column for Subs from the row that matches the Mfg on worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to repeat the Mfg
name.
Both worksheets will have adds and deletes over the course of the year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name range
for
each row.

Any suggestions?
Thanks so much






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup and validating data list

Here's a small sample file that demonstrates this:

xdropdown.xls 14kb

http://cjoint.com/?cCtoxeKAzM


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
Thanks so much for the reply,. Your assessment is correct, but I've not
be
able to get it to work. After last step doing the DataValidation, I get
an
error: "The Source currently evaluates to an error. Do you want to
continue? Yes No" When I select Yes, it has the drop down button, but
there
is no list.

You made reference to the range of A2:F5 but in the formula it was A2:A5.
Is that correct?

"T. Valko" wrote:

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the selections:

Stars,Venus,Mars,Saturn,Jupiter


If B2 = Cars then you want a drop down list in C2 with the selections:

Cars,Ford,GM,Toyato


If B2 = States then you want a drop down list in C2 with the selections:

States


If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with 2003 users.

On worksheet 1, I want to pick from a list of possible options for info
that
goes into column for Subs from the row that matches the Mfg on
worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to repeat the
Mfg
name.
Both worksheets will have adds and deletes over the course of the year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name
range
for
each row.

Any suggestions?
Thanks so much






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default vlookup and validating data list

I loved the file, very cool.

Can this also be done vertically rather than horizontally?

Tim.


"T. Valko" wrote:

Here's a small sample file that demonstrates this:

xdropdown.xls 14kb

http://cjoint.com/?cCtoxeKAzM


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
Thanks so much for the reply,. Your assessment is correct, but I've not
be
able to get it to work. After last step doing the DataValidation, I get
an
error: "The Source currently evaluates to an error. Do you want to
continue? Yes No" When I select Yes, it has the drop down button, but
there
is no list.

You made reference to the range of A2:F5 but in the formula it was A2:A5.
Is that correct?

"T. Valko" wrote:

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the selections:

Stars,Venus,Mars,Saturn,Jupiter

If B2 = Cars then you want a drop down list in C2 with the selections:

Cars,Ford,GM,Toyato

If B2 = States then you want a drop down list in C2 with the selections:

States

If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with 2003 users.

On worksheet 1, I want to pick from a list of possible options for info
that
goes into column for Subs from the row that matches the Mfg on
worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to repeat the
Mfg
name.
Both worksheets will have adds and deletes over the course of the year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name
range
for
each row.

Any suggestions?
Thanks so much







  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup and validating data list

Can this also be done vertically rather than horizontally?

Sure.

Assume this data on Sheet2 A2: D7 -

Stars,Color,Cars,States
Venus,Blue,Ford
Mars,Black,GM
Saturn,Red,Toyato
Jupiter,Green
Yellow

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,Sheet2!$2:$ 2,0)-1,COUNTA(OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,She et2!$2:$2,0)-1,100)))

DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I loved the file, very cool.

Can this also be done vertically rather than horizontally?

Tim.


"T. Valko" wrote:

Here's a small sample file that demonstrates this:

xdropdown.xls 14kb

http://cjoint.com/?cCtoxeKAzM


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
Thanks so much for the reply,. Your assessment is correct, but I've
not
be
able to get it to work. After last step doing the DataValidation, I
get
an
error: "The Source currently evaluates to an error. Do you want to
continue? Yes No" When I select Yes, it has the drop down button, but
there
is no list.

You made reference to the range of A2:F5 but in the formula it was
A2:A5.
Is that correct?

"T. Valko" wrote:

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the
selections:

Stars,Venus,Mars,Saturn,Jupiter

If B2 = Cars then you want a drop down list in C2 with the selections:

Cars,Ford,GM,Toyato

If B2 = States then you want a drop down list in C2 with the
selections:

States

If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with 2003
users.

On worksheet 1, I want to pick from a list of possible options for
info
that
goes into column for Subs from the row that matches the Mfg on
worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to repeat
the
Mfg
name.
Both worksheets will have adds and deletes over the course of the
year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from
the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name
range
for
each row.

Any suggestions?
Thanks so much









  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default vlookup and validating data list

I was able to get the list to work, but the validation only works with the
first column. Any sugestions? I tried it in a small scale and it worked
fine. could there be something different with the workbooks?

=OFFSET(Tables!$B$1,,MATCH('Tracking
Form'!$F$1,Tables!$1:$1,0)-1,COUNTA(OFFSET(Tables!$B$1,,MATCH('Tracking
Form'!$F$1,Tables!$1:$1,0)-1,100)))

Tim


"T. Valko" wrote:

Can this also be done vertically rather than horizontally?


Sure.

Assume this data on Sheet2 A2: D7 -

Stars,Color,Cars,States
Venus,Blue,Ford
Mars,Black,GM
Saturn,Red,Toyato
Jupiter,Green
Yellow

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,Sheet2!$2:$ 2,0)-1,COUNTA(OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,She et2!$2:$2,0)-1,100)))

DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I loved the file, very cool.

Can this also be done vertically rather than horizontally?

Tim.


"T. Valko" wrote:

Here's a small sample file that demonstrates this:

xdropdown.xls 14kb

http://cjoint.com/?cCtoxeKAzM


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
Thanks so much for the reply,. Your assessment is correct, but I've
not
be
able to get it to work. After last step doing the DataValidation, I
get
an
error: "The Source currently evaluates to an error. Do you want to
continue? Yes No" When I select Yes, it has the drop down button, but
there
is no list.

You made reference to the range of A2:F5 but in the formula it was
A2:A5.
Is that correct?

"T. Valko" wrote:

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the
selections:

Stars,Venus,Mars,Saturn,Jupiter

If B2 = Cars then you want a drop down list in C2 with the selections:

Cars,Ford,GM,Toyato

If B2 = States then you want a drop down list in C2 with the
selections:

States

If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with 2003
users.

On worksheet 1, I want to pick from a list of possible options for
info
that
goes into column for Subs from the row that matches the Mfg on
worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to repeat
the
Mfg
name.
Both worksheets will have adds and deletes over the course of the
year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from
the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a name
range
for
each row.

Any suggestions?
Thanks so much










  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup and validating data list

Not sure what you mean by:

the validation only works with the first column


--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I was able to get the list to work, but the validation only works with the
first column. Any sugestions? I tried it in a small scale and it worked
fine. could there be something different with the workbooks?

=OFFSET(Tables!$B$1,,MATCH('Tracking
Form'!$F$1,Tables!$1:$1,0)-1,COUNTA(OFFSET(Tables!$B$1,,MATCH('Tracking
Form'!$F$1,Tables!$1:$1,0)-1,100)))

Tim


"T. Valko" wrote:

Can this also be done vertically rather than horizontally?


Sure.

Assume this data on Sheet2 A2: D7 -

Stars,Color,Cars,States
Venus,Blue,Ford
Mars,Black,GM
Saturn,Red,Toyato
Jupiter,Green
Yellow

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,Sheet2!$2:$ 2,0)-1,COUNTA(OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,She et2!$2:$2,0)-1,100)))

DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I loved the file, very cool.

Can this also be done vertically rather than horizontally?

Tim.


"T. Valko" wrote:

Here's a small sample file that demonstrates this:

xdropdown.xls 14kb

http://cjoint.com/?cCtoxeKAzM


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
Thanks so much for the reply,. Your assessment is correct, but I've
not
be
able to get it to work. After last step doing the DataValidation,
I
get
an
error: "The Source currently evaluates to an error. Do you want to
continue? Yes No" When I select Yes, it has the drop down button,
but
there
is no list.

You made reference to the range of A2:F5 but in the formula it was
A2:A5.
Is that correct?

"T. Valko" wrote:

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the
selections:

Stars,Venus,Mars,Saturn,Jupiter

If B2 = Cars then you want a drop down list in C2 with the
selections:

Cars,Ford,GM,Toyato

If B2 = States then you want a drop down list in C2 with the
selections:

States

If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with 2003
users.

On worksheet 1, I want to pick from a list of possible options
for
info
that
goes into column for Subs from the row that matches the Mfg on
worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to repeat
the
Mfg
name.
Both worksheets will have adds and deletes over the course of the
year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green
Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from
the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a
name
range
for
each row.

Any suggestions?
Thanks so much














  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default vlookup and validating data list

I was able to enter data that was not in the second column when that column
was picked. - I did some reading and found that I had blank spaces in the
second column. I unchecked the blank cells box and it works fine.

Thanks for your help

Tim

"T. Valko" wrote:

Not sure what you mean by:

the validation only works with the first column


--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I was able to get the list to work, but the validation only works with the
first column. Any sugestions? I tried it in a small scale and it worked
fine. could there be something different with the workbooks?

=OFFSET(Tables!$B$1,,MATCH('Tracking
Form'!$F$1,Tables!$1:$1,0)-1,COUNTA(OFFSET(Tables!$B$1,,MATCH('Tracking
Form'!$F$1,Tables!$1:$1,0)-1,100)))

Tim


"T. Valko" wrote:

Can this also be done vertically rather than horizontally?

Sure.

Assume this data on Sheet2 A2: D7 -

Stars,Color,Cars,States
Venus,Blue,Ford
Mars,Black,GM
Saturn,Red,Toyato
Jupiter,Green
Yellow

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,Sheet2!$2:$ 2,0)-1,COUNTA(OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,She et2!$2:$2,0)-1,100)))

DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I loved the file, very cool.

Can this also be done vertically rather than horizontally?

Tim.


"T. Valko" wrote:

Here's a small sample file that demonstrates this:

xdropdown.xls 14kb

http://cjoint.com/?cCtoxeKAzM


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
Thanks so much for the reply,. Your assessment is correct, but I've
not
be
able to get it to work. After last step doing the DataValidation,
I
get
an
error: "The Source currently evaluates to an error. Do you want to
continue? Yes No" When I select Yes, it has the drop down button,
but
there
is no list.

You made reference to the range of A2:F5 but in the formula it was
A2:A5.
Is that correct?

"T. Valko" wrote:

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the
selections:

Stars,Venus,Mars,Saturn,Jupiter

If B2 = Cars then you want a drop down list in C2 with the
selections:

Cars,Ford,GM,Toyato

If B2 = States then you want a drop down list in C2 with the
selections:

States

If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with 2003
users.

On worksheet 1, I want to pick from a list of possible options
for
info
that
goes into column for Subs from the row that matches the Mfg on
worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to repeat
the
Mfg
name.
Both worksheets will have adds and deletes over the course of the
year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green
Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value from
the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a
name
range
for
each row.

Any suggestions?
Thanks so much













  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup and validating data list

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I was able to enter data that was not in the second column when that column
was picked. - I did some reading and found that I had blank spaces in
the
second column. I unchecked the blank cells box and it works fine.

Thanks for your help

Tim

"T. Valko" wrote:

Not sure what you mean by:

the validation only works with the first column


--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I was able to get the list to work, but the validation only works with
the
first column. Any sugestions? I tried it in a small scale and it
worked
fine. could there be something different with the workbooks?

=OFFSET(Tables!$B$1,,MATCH('Tracking
Form'!$F$1,Tables!$1:$1,0)-1,COUNTA(OFFSET(Tables!$B$1,,MATCH('Tracking
Form'!$F$1,Tables!$1:$1,0)-1,100)))

Tim


"T. Valko" wrote:

Can this also be done vertically rather than horizontally?

Sure.

Assume this data on Sheet2 A2: D7 -

Stars,Color,Cars,States
Venus,Blue,Ford
Mars,Black,GM
Saturn,Red,Toyato
Jupiter,Green
Yellow

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,Sheet2!$2:$ 2,0)-1,COUNTA(OFFSET(Sheet2!$A$2,,MATCH(Sheet1!$B$2,She et2!$2:$2,0)-1,100)))

DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Tim Brown" wrote in message
...
I loved the file, very cool.

Can this also be done vertically rather than horizontally?

Tim.


"T. Valko" wrote:

Here's a small sample file that demonstrates this:

xdropdown.xls 14kb

http://cjoint.com/?cCtoxeKAzM


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
Thanks so much for the reply,. Your assessment is correct, but
I've
not
be
able to get it to work. After last step doing the
DataValidation,
I
get
an
error: "The Source currently evaluates to an error. Do you want
to
continue? Yes No" When I select Yes, it has the drop down
button,
but
there
is no list.

You made reference to the range of A2:F5 but in the formula it
was
A2:A5.
Is that correct?

"T. Valko" wrote:

Let's see if I understand you...

If B2 = Stars then you want a drop down list in C2 with the
selections:

Stars,Venus,Mars,Saturn,Jupiter

If B2 = Cars then you want a drop down list in C2 with the
selections:

Cars,Ford,GM,Toyato

If B2 = States then you want a drop down list in C2 with the
selections:

States

If that's the case...

With this data on Sheet2 in the range A2:F5 -

Stars,Venus,Mars,Saturn,Jupiter
Color,Blue,Black,Red,Green,Yellow
Cars,Ford,GM,Toyato
States

Create this named formula:

InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A$2:$A$5,0)-1,,,COUNTA(OFFSET(Sheet2!$A$2,MATCH($B$2,Sheet2!$A $2:$A$5,0)-1,,,100)))

Then on Sheet1 select cell C2
DataValidation
Allow: List
Source: =List


--
Biff
Microsoft Excel MVP


"Donna" wrote in message
...
I use Excel 2007, but will need to share this workbook with
2003
users.

On worksheet 1, I want to pick from a list of possible options
for
info
that
goes into column for Subs from the row that matches the Mfg on
worksheet
2.

Not all Mfg may have a Sub option, therefore I may want to
repeat
the
Mfg
name.
Both worksheets will have adds and deletes over the course of
the
year.

Worksheet 1

Parts Mfg Sub
123 Stars ??
234 Color ??
345 Cars ??
888 Color ??
777 Color ??
557 Cars ??
735 States ??

Worksheet 2
Mfg Sub
Stars Venus Mars Saturn Jupiter
Color Blue Black Red Green
Yellow
Cars Ford GM Toyato
States

I tried the vlookup statement, but it only returns the value
from
the
column
that I define in the formula in worksheet 1 C2

=VLOOKUP(B2,'Worksheet 2'!A$2:H1066,2)

Answer would be Venus, but I would like for it to be Jupiter.

Because worksheet 2 is so large, it would be hard to create a
name
range
for
each row.

Any suggestions?
Thanks so much















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
Modifying a validating list [email protected] Excel Discussion (Misc queries) 1 January 25th 07 12:34 AM
validating a list of multiple columns grumpy Excel Worksheet Functions 1 December 19th 06 06:27 AM
Connecting of two data validating with each other Akhil Excel Worksheet Functions 1 August 10th 06 09:01 PM
validating data in a combobox Jono Excel Worksheet Functions 0 March 13th 06 05:51 PM
Validating data pasted into worksheet Tom F. Excel Discussion (Misc queries) 3 July 20th 05 06:05 PM


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