Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default vlookup with 2 sets of criteria

I'm trying to do a vlookup with 2 sets of criteria. For example: I want to
look up a customer region ( North, South, Central, West) in column A and the
customer number in column D, if they both match then bring back the sales $
in column F.

My issue is that the customer numbers sell into multiple regions across the
country so they are listed multiple times down the column and there are
clearly multiple customer numbers under each region.

Thank you for your help!!!

David
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default vlookup with 2 sets of criteria

You could concatenate the Region and Customer Number in a helper
column to give you a unique combination, but vlookup will only return
the first match it finds - I think you want to sum all the sales
figures for a particular Region and Customer Number. If this is the
case, then try this:

Use a cell to enter the Region (eg J2) and another cell to enter the
customer number (eg K2) and enter this formula in L2:

=SUMPRODUCT((A$2:A$100=J2)*(D$2:D$100=K2)*(F$2:F$1 00))

This will sum all the sales from column F which match the Region in J2
and the Customer Number in K2. I've assumed your data covers from row
2 to row 100 - adjust as necessary.

If you want to enter other Regions in column J and other Customer
Numbers in column K, you can copy this formula down column L to cater
for this.

Hope this helps.

Pete

On Jun 8, 2:03 pm, laf2day wrote:
I'm trying to do a vlookup with 2 sets of criteria. For example: I want to
look up a customer region ( North, South, Central, West) in column A and the
customer number in column D, if they both match then bring back the sales $
in column F.

My issue is that the customer numbers sell into multiple regions across the
country so they are listed multiple times down the column and there are
clearly multiple customer numbers under each region.

Thank you for your help!!!

David



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 524
Default vlookup with 2 sets of criteria

Fri, 8 Jun 2007 06:03:02 -0700 from laf2day
:
I'm trying to do a vlookup with 2 sets of criteria. For example: I want to
look up a customer region ( North, South, Central, West) in column A and the
customer number in column D, if they both match then bring back the sales $
in column F.


I may be wrong, but I don't think you can do this with VLOOKUP.
Instead you have to use a database function with a criterion matrix
of two columns.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
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
SUMIF with two sets of criteria luvthavodka Excel Discussion (Misc queries) 5 May 29th 06 08:02 PM
VLOOKUP in large Data sets of more than 16384 rows Bluewolf Excel Worksheet Functions 11 April 3rd 06 09:39 PM
for SUMIF function, how do I use 2 sets of range & criteria Bob Excel Worksheet Functions 6 January 10th 06 07:48 PM
Count rows that match 3 sets of criteria? EricE Excel Worksheet Functions 3 December 29th 05 04:26 PM
Using Vlookup to look at different names sets of data.... Sepp! Excel Worksheet Functions 1 January 31st 05 07:16 PM


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