#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default VLOOKUP Function

Dear experts,

I've data in 3 columns. Column A is staff names and Column C is client
names. Please see an example below:

Column A Column C
Peter Spring Co
Peter Tom's Brothers
Joe Brooklyn Investments
Joe World Atlas
Joe Yiu's Restaurant

In another worksheet cells A1 & B1, I want to use for VLOOKUP. In cell A1, I
input "Peter". In cell B1, I input: =VLOOKUP($A$1,'SALES'!A2:C6,3), it
returns "Tom's Brothers" only. What I want is when I input "Peter" in cell
A1, in cell B1, Peter's two clients' names can appear in a drop-down menu for
me to choose. Is it possible? If yes, please teach me how to do it.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default VLOOKUP Function

Assume this table is on sheet1 in the range A2:C6 -

Peter Spring Co
Peter Tom's Brothers
Joe Brooklyn Investments
Joe World Atlas
Joe Yiu's Restaurant


Sheet2 A1 is where you enter the persons name:

Sheet2A1 = Joe

Create this named formula:

Goto the menu InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet1!$A$2,MATCH(Sheet2!$A$1,Sheet1!$A$2: $A$6,0)-1,2,COUNTIF(Sheet1!$A$2:$A$6,Sheet2!$A$1))

OK

Select sheet2 cell B1
Goto the menu DataValidation
Allow: List
Source: =List
OK

Biff

"Freshman" wrote in message
...
Dear experts,

I've data in 3 columns. Column A is staff names and Column C is client
names. Please see an example below:

Column A Column C
Peter Spring Co
Peter Tom's Brothers
Joe Brooklyn Investments
Joe World Atlas
Joe Yiu's Restaurant

In another worksheet cells A1 & B1, I want to use for VLOOKUP. In cell A1,
I
input "Peter". In cell B1, I input: =VLOOKUP($A$1,'SALES'!A2:C6,3), it
returns "Tom's Brothers" only. What I want is when I input "Peter" in cell
A1, in cell B1, Peter's two clients' names can appear in a drop-down menu
for
me to choose. Is it possible? If yes, please teach me how to do it.

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default VLOOKUP Function

Hi Biff

Your working function works nicely. Thanks.

"Biff" wrote:

Assume this table is on sheet1 in the range A2:C6 -

Peter Spring Co
Peter Tom's Brothers
Joe Brooklyn Investments
Joe World Atlas
Joe Yiu's Restaurant


Sheet2 A1 is where you enter the persons name:

Sheet2A1 = Joe

Create this named formula:

Goto the menu InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet1!$A$2,MATCH(Sheet2!$A$1,Sheet1!$A$2: $A$6,0)-1,2,COUNTIF(Sheet1!$A$2:$A$6,Sheet2!$A$1))

OK

Select sheet2 cell B1
Goto the menu DataValidation
Allow: List
Source: =List
OK

Biff

"Freshman" wrote in message
...
Dear experts,

I've data in 3 columns. Column A is staff names and Column C is client
names. Please see an example below:

Column A Column C
Peter Spring Co
Peter Tom's Brothers
Joe Brooklyn Investments
Joe World Atlas
Joe Yiu's Restaurant

In another worksheet cells A1 & B1, I want to use for VLOOKUP. In cell A1,
I
input "Peter". In cell B1, I input: =VLOOKUP($A$1,'SALES'!A2:C6,3), it
returns "Tom's Brothers" only. What I want is when I input "Peter" in cell
A1, in cell B1, Peter's two clients' names can appear in a drop-down menu
for
me to choose. Is it possible? If yes, please teach me how to do it.

Thanks in advance.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default VLOOKUP Function

You're welcome. Thanks for the feedback!

Biff

"Freshman" wrote in message
...
Hi Biff

Your working function works nicely. Thanks.

"Biff" wrote:

Assume this table is on sheet1 in the range A2:C6 -

Peter Spring Co
Peter Tom's Brothers
Joe Brooklyn Investments
Joe World Atlas
Joe Yiu's Restaurant


Sheet2 A1 is where you enter the persons name:

Sheet2A1 = Joe

Create this named formula:

Goto the menu InsertNameDefine
Name: List
Refers to:

=OFFSET(Sheet1!$A$2,MATCH(Sheet2!$A$1,Sheet1!$A$2: $A$6,0)-1,2,COUNTIF(Sheet1!$A$2:$A$6,Sheet2!$A$1))

OK

Select sheet2 cell B1
Goto the menu DataValidation
Allow: List
Source: =List
OK

Biff

"Freshman" wrote in message
...
Dear experts,

I've data in 3 columns. Column A is staff names and Column C is client
names. Please see an example below:

Column A Column C
Peter Spring Co
Peter Tom's Brothers
Joe Brooklyn Investments
Joe World Atlas
Joe Yiu's Restaurant

In another worksheet cells A1 & B1, I want to use for VLOOKUP. In cell
A1,
I
input "Peter". In cell B1, I input: =VLOOKUP($A$1,'SALES'!A2:C6,3), it
returns "Tom's Brothers" only. What I want is when I input "Peter" in
cell
A1, in cell B1, Peter's two clients' names can appear in a drop-down
menu
for
me to choose. Is it possible? If yes, please teach me how to do it.

Thanks in advance.






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
Can we use multiple if with VLookup function Multiple IF's with Vlookup Excel Worksheet Functions 11 August 17th 06 10:28 PM
vlookup Function Help Needed jeffc Excel Worksheet Functions 2 August 14th 06 12:32 PM
Pastable function using VLOOKUP? zatomics Excel Worksheet Functions 1 May 23rd 06 06:17 AM
format cell based on results of vlookup function Edith F Excel Worksheet Functions 1 July 21st 05 07:39 PM
Vlookup w/Date Function cym Excel Worksheet Functions 1 March 25th 05 08:21 PM


All times are GMT +1. The time now is 07:30 AM.

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"