ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   vlookup with two criteria (https://www.excelbanter.com/excel-worksheet-functions/73877-vlookup-two-criteria.html)

hollister22nh

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=516461


davesexcel

vlookup with two criteria
 

Lets say on one spreadsheet I have my actual sales:

Column A Customer Part Sales
=B1&C1 Cisco A $W

=B2&C2 Nortel A $X
=B3&c3 Cisco B $Y
=B4&C4 Nortel B $Z

Column G Colmn H Column I
Cisco A =G1&H1



Cell F1
=VLOOKUP(I1,A1:D4,4,FALSE)

I concatenated the two cells so they will match, works fine,
you can place those reference cells anywhere
=VLOOKUP Cell I1 which is really CiscoA, looks for CiscoA in the table
and will give you the value $W
Dave


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=516461



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com