#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VLOOKUP

I am wanting to have a nested VLOOKUP. I have customer name in one column
and part code in another column, then a selling price. I want to lookup the
selling price based on customer and part code. I know how to use VLOOKUP to
get the asnwer but it only uses one column as the look up and I need it based
on both the customer and the part code.

Please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default VLOOKUP

Hi,
your information is in Column A, B and C and then in D1 you enter your
customer and in D2 your code and want to get the price in D3, so here enter

=sumproduct(--(D1=$A$1:$A$1000),(D2=$B$1:$B$1000),$C$1:$C$1000)

change range to fit your needs but remember to keep the same range in the
three parts of the formula

"L. Young" wrote:

I am wanting to have a nested VLOOKUP. I have customer name in one column
and part code in another column, then a selling price. I want to lookup the
selling price based on customer and part code. I know how to use VLOOKUP to
get the asnwer but it only uses one column as the look up and I need it based
on both the customer and the part code.

Please help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default VLOOKUP

This will sum the answers, correct. I might have the same customer with same
item more than once and I only want the first answer it finds not the sum of
the answer. My speadsheet has sales by customer by item by invoice date, so
there is more than one answer to each, but I have it sorting in desending
order so the first answer is the most recent selling price.

Let me know your thoughts. Below is a sample

Customer Item Invoice Date Selling Price
CUSA 123 9/25/09 $1.50
CUSA 123 5/25/09 $1.25
CUSB 123 9/01/09 $1.75

"Eduardo" wrote:

Hi,
your information is in Column A, B and C and then in D1 you enter your
customer and in D2 your code and want to get the price in D3, so here enter

=sumproduct(--(D1=$A$1:$A$1000),(D2=$B$1:$B$1000),$C$1:$C$1000)

change range to fit your needs but remember to keep the same range in the
three parts of the formula

"L. Young" wrote:

I am wanting to have a nested VLOOKUP. I have customer name in one column
and part code in another column, then a selling price. I want to lookup the
selling price based on customer and part code. I know how to use VLOOKUP to
get the asnwer but it only uses one column as the look up and I need it based
on both the customer and the part code.

Please help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default VLOOKUP

Please note that this is an array formula. you press CTRL+SHIFT+ENTER to
enter the formula. If successful in 'Formula Bar' you can notice the curly
braces at both ends like "{=<formula}"

Customer Item Invoice Date Selling Price
CUSA 123 9/25/09 $1.50
CUSA 123 5/25/09 $1.25
CUSB 123 9/01/09 $1.75

=INDEX($D$2:$D$10,MATCH(1,($A$2:$A$10="CUSA")*($B$ 2:$B$10=123),0))

If this post helps click Yes
---------------
Jacob Skaria


"L. Young" wrote:

This will sum the answers, correct. I might have the same customer with same
item more than once and I only want the first answer it finds not the sum of
the answer. My speadsheet has sales by customer by item by invoice date, so
there is more than one answer to each, but I have it sorting in desending
order so the first answer is the most recent selling price.

Let me know your thoughts. Below is a sample

Customer Item Invoice Date Selling Price
CUSA 123 9/25/09 $1.50
CUSA 123 5/25/09 $1.25
CUSB 123 9/01/09 $1.75

"Eduardo" wrote:

Hi,
your information is in Column A, B and C and then in D1 you enter your
customer and in D2 your code and want to get the price in D3, so here enter

=sumproduct(--(D1=$A$1:$A$1000),(D2=$B$1:$B$1000),$C$1:$C$1000)

change range to fit your needs but remember to keep the same range in the
three parts of the formula

"L. Young" wrote:

I am wanting to have a nested VLOOKUP. I have customer name in one column
and part code in another column, then a selling price. I want to lookup the
selling price based on customer and part code. I know how to use VLOOKUP to
get the asnwer but it only uses one column as the look up and I need it based
on both the customer and the part code.

Please help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default VLOOKUP

Perfect. Thank you.

"Jacob Skaria" wrote:

Please note that this is an array formula. you press CTRL+SHIFT+ENTER to
enter the formula. If successful in 'Formula Bar' you can notice the curly
braces at both ends like "{=<formula}"

Customer Item Invoice Date Selling Price
CUSA 123 9/25/09 $1.50
CUSA 123 5/25/09 $1.25
CUSB 123 9/01/09 $1.75

=INDEX($D$2:$D$10,MATCH(1,($A$2:$A$10="CUSA")*($B$ 2:$B$10=123),0))

If this post helps click Yes
---------------
Jacob Skaria


"L. Young" wrote:

This will sum the answers, correct. I might have the same customer with same
item more than once and I only want the first answer it finds not the sum of
the answer. My speadsheet has sales by customer by item by invoice date, so
there is more than one answer to each, but I have it sorting in desending
order so the first answer is the most recent selling price.

Let me know your thoughts. Below is a sample

Customer Item Invoice Date Selling Price
CUSA 123 9/25/09 $1.50
CUSA 123 5/25/09 $1.25
CUSB 123 9/01/09 $1.75

"Eduardo" wrote:

Hi,
your information is in Column A, B and C and then in D1 you enter your
customer and in D2 your code and want to get the price in D3, so here enter

=sumproduct(--(D1=$A$1:$A$1000),(D2=$B$1:$B$1000),$C$1:$C$1000)

change range to fit your needs but remember to keep the same range in the
three parts of the formula

"L. Young" wrote:

I am wanting to have a nested VLOOKUP. I have customer name in one column
and part code in another column, then a selling price. I want to lookup the
selling price based on customer and part code. I know how to use VLOOKUP to
get the asnwer but it only uses one column as the look up and I need it based
on both the customer and the part code.

Please help.

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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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