VLOOKUPS - One item with two descriptions

agerrard

Active Member
Joined
Apr 4, 2005
Messages
406
Hi All,

Im running Excel 2003. My problem is to do with the below. I want my vlookup to search by the item description (so in this case product 1). Normally it would be fine to do this, but for this product it has 2 supplier values associated to it (the product was made by supplier a last year, but now its made by supplier b).

I want my vlookup to return the values in the 2nd row (so i want it to take "supplier b" and the value in year 2 of $11,832) i dont care about the values in year 1.

So is there a way to do this? I cant change the way that the data is coded in the raw data file so i have to try this way instead.

Hope this makes sense.

Cheers!
Vlookup Example.xls
ABCD
4ItemSupplierYear1Year2
5Product1SupplierA$9,389.04$-
6SupplierB$-$11,832.27
Sheet1
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi agerrard:

How about posting a few more rows of your data, so we can clearly see how your data is laid out ... and then let us take it from there
 
Upvote 0
OK here is a little bit more of the example:

Basically i have hundreds of products and i need to match each product by supplier (as well as other variables)...
Vlookup Example.xls
ABCD
4ItemSupplierYear1Year2
5Product1SupplierA$9,389.04$-
6SupplierB$-$11,832.27
7Product2SupplierC$622.19$765.75
8Product3SupplierD$-$756.22
9Product4SupplierA$-$741.95
10Product5SupplierD$793.43$655.31
11SupplierB$82.67$-
12Product6SupplierE$408.34$620.38
Sheet1
 
Upvote 0
thanks for your question.

the max is always 2 there are never more than 3 suppliers associated with a product over the year.
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,438
Members
448,897
Latest member
dukenia71

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top