Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hollister22nh
 
Posts: n/a
Default vlookup with two criteria


I've read a few threads trying to find my answer but they were too
abstract for me to understand.

Lets say on one spreadsheet I have my actual sales:

Customer Part Sales
Cisco A $W
Nortel A $X
Cisco B $Y
Nortel B $Z

I have a second spread sheet with my forecasted sales

Customer Part Sales
Cisco A $??

What I want to do is have a vlookup of the actual sales figure of Part
A. The problem is, I have two criteria. It not only has to be the
sales for Part A, it has to be only Cisco sales for part A when
multiple customers are buying this same part.

So, how do I do a two criteria Vlookup?

-John


--
hollister22nh
------------------------------------------------------------------------
hollister22nh's Profile: http://www.excelforum.com/member.php...o&userid=31917
View this thread: http://www.excelforum.com/showthread...hreadid=516462

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Eddy Stan
 
Posts: n/a
Default vlookup with two criteria

Hi
There may be better solutions, but i always do this..
Insert a column before forecast sales, and put customer & partno by =a2&b2,
copy down to end.
actual sales sheet, if your forecast sales is next to sales in d column

put at d2, =VLOOKUP(A2&B2,Sheet2!C$1:D$5,2,FALSE)

you will get $??


"hollister22nh" wrote:


I've read a few threads trying to find my answer but they were too
abstract for me to understand.

Lets say on one spreadsheet I have my actual sales:

Customer Part Sales
Cisco A $W
Nortel A $X
Cisco B $Y
Nortel B $Z

I have a second spread sheet with my forecasted sales

Customer Part Sales
Cisco A $??

What I want to do is have a vlookup of the actual sales figure of Part
A. The problem is, I have two criteria. It not only has to be the
sales for Part A, it has to be only Cisco sales for part A when
multiple customers are buying this same part.

So, how do I do a two criteria Vlookup?

-John


--
hollister22nh
------------------------------------------------------------------------
hollister22nh's Profile: http://www.excelforum.com/member.php...o&userid=31917
View this thread: http://www.excelforum.com/showthread...hreadid=516462


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default vlookup with two criteria

Assuming that A2:C5 contains your data, try the following formula which
needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

=INDEX(C2:C5,MATCH(1,(A2:A5=E2)*(B2:B5=F2),0))

....where E2 contains the customer of interest, and F2 contains the part
of interest.

Hope this helps!

In article
,
hollister22nh
wrote:

I've read a few threads trying to find my answer but they were too
abstract for me to understand.

Lets say on one spreadsheet I have my actual sales:

Customer Part Sales
Cisco A $W
Nortel A $X
Cisco B $Y
Nortel B $Z

I have a second spread sheet with my forecasted sales

Customer Part Sales
Cisco A $??

What I want to do is have a vlookup of the actual sales figure of Part
A. The problem is, I have two criteria. It not only has to be the
sales for Part A, it has to be only Cisco sales for part A when
multiple customers are buying this same part.

So, how do I do a two criteria Vlookup?

-John

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 with two criteria hollister22nh Excel Worksheet Functions 1 February 25th 06 02:42 PM
Vlookup with multiple criteria nick Excel Worksheet Functions 8 October 10th 05 03:46 PM
VLookup on two criteria - Not two dimensional Jon C Excel Worksheet Functions 5 September 7th 05 07:17 PM
SUMIF using VLOOKUP as criteria Telly Excel Worksheet Functions 1 February 18th 05 10:17 PM
VlookUp with Multiple Criteria? Arturo Excel Worksheet Functions 3 December 20th 04 06:59 PM


All times are GMT +1. The time now is 01:01 PM.

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"