Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Matching two different colums, VLOOKUP?

Hi. I need to match 2 different variables (text), in this case a product
brand and a product category.
I know how to use vlookup to match 1 variable, but what formula do I use to
match 2 different values.

Example
Category Brand nbr of skus
Printer HP 3
Printer Canon 4
Printer Brother 2

I want to return number of SKUs if both category & brand matches.

/Freddie

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Matching two different colums, VLOOKUP?

Hi,
let's say your information is in colum,n A,B and C and in D1 you enter your
category, in E1 the brand and in F1 you want to get the Sku, so here enter

=SUMPRODUCT(--(A:A=D1),--(B:B=E1),C:C)

if you are not using excel 2007 use

=SUMPRODUCT(--($A$1:$A$1000=D1),--($B$1:$B$1000=E1),$C$1:$C$1000)

if this helps please click yes, thanks

"Freddie" wrote:

Hi. I need to match 2 different variables (text), in this case a product
brand and a product category.
I know how to use vlookup to match 1 variable, but what formula do I use to
match 2 different values.

Example
Category Brand nbr of skus
Printer HP 3
Printer Canon 4
Printer Brother 2

I want to return number of SKUs if both category & brand matches.

/Freddie

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Matching two different colums, VLOOKUP?

Try

=SUMPRODUCT((A2:A20="Printer")*(B2:B20="Canon")*(C 2:C20))

Mike

"Freddie" wrote:

Hi. I need to match 2 different variables (text), in this case a product
brand and a product category.
I know how to use vlookup to match 1 variable, but what formula do I use to
match 2 different values.

Example
Category Brand nbr of skus
Printer HP 3
Printer Canon 4
Printer Brother 2

I want to return number of SKUs if both category & brand matches.

/Freddie

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Matching two different colums, VLOOKUP?

I don't seem to gewt any of these formulas to work.

Anyother ideas?

"Mike H" wrote:

Try

=SUMPRODUCT((A2:A20="Printer")*(B2:B20="Canon")*(C 2:C20))

Mike

"Freddie" wrote:

Hi. I need to match 2 different variables (text), in this case a product
brand and a product category.
I know how to use vlookup to match 1 variable, but what formula do I use to
match 2 different values.

Example
Category Brand nbr of skus
Printer HP 3
Printer Canon 4
Printer Brother 2

I want to return number of SKUs if both category & brand matches.

/Freddie

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Matching two different colums, VLOOKUP?

Hi Freddie,
The formula is working for me be sure that the description you enter in
cells D1 and E1 is exactly the same as in columns A and B, check for blanks

"Freddie" wrote:

I don't seem to gewt any of these formulas to work.

Anyother ideas?

"Mike H" wrote:

Try

=SUMPRODUCT((A2:A20="Printer")*(B2:B20="Canon")*(C 2:C20))

Mike

"Freddie" wrote:

Hi. I need to match 2 different variables (text), in this case a product
brand and a product category.
I know how to use vlookup to match 1 variable, but what formula do I use to
match 2 different values.

Example
Category Brand nbr of skus
Printer HP 3
Printer Canon 4
Printer Brother 2

I want to return number of SKUs if both category & brand matches.

/Freddie

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 and sum of colums willem Excel Discussion (Misc queries) 5 February 10th 09 09:17 PM
Vlookup Fixed reference but move on colums Ref# Neil Excel Worksheet Functions 3 August 14th 08 05:02 PM
VLOOKUP for multiple colums MagicBill Excel Worksheet Functions 10 July 25th 08 07:20 PM
Get matching values and formulas from ajoining colums of dropdown Pete Elbert Excel Discussion (Misc queries) 1 March 18th 06 05:49 AM
match to colums vlookup JavyD Excel Discussion (Misc queries) 1 August 12th 05 02:07 AM


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