Index/Match using two columns

bjornc

New Member
Joined
Aug 3, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

i have this rather large data set that contains 80k rows.

The first column is Supplier ID# number, the second column is our internal SKU# pn, and the last column is the MPN# (manufacturing pn). Each SKU# has multiple Suppliers, so you can assume that eg. SKU# 2468037is supplied by Supplier# 02580, X, Y... Z.

Supplier#SKU#MPN#
387569718122
0258024680374031481
021472279467EFAS-RF-16-400-450-17
0354486026127683
011102035805
387569716736
03798982132950810
036413000104
011102034315700618925
1001386058882600-040-900-000
1208132575024317
03357251132453406120
00742218796222330

I need to make a list that looks something like this:

Capture.PNG


I have tried: "=INDEX($C$4:$C$61;MATCH($E5;$A$4:$A$61;0);MATCH(F$3;$B$4:$B$61;0))" with no success.

I managed to use an array formula which required me to use CTRL+SHIFT+ENTER, but i was not able to copy it into all the cells.

I am using Excel 2016. My computer is deeply locked into all kinds of secure stuff, i'm not able to install anything.

Thanks for the help in advance.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Before start if it has 80k rows why is your index only showing C4:C61?
 
Upvote 0
I copied the mere essentials because it was slowing down my computer. Here you can see the bottom of the original, i only need the first three columns.Capture.PNG
 
Upvote 0
I have a feeling you may be misunderstanding all this. How are you going to fill in all the supplier sku numbers and your sku numbers in the table you want? You will then get thousands of errors as you wouldnt ever expect a match unless every supplier supplies every sku.
 
Upvote 0
I have a feeling you may be misunderstanding all this. How are you going to fill in all the supplier sku numbers and your sku numbers in the table you want? You will then get thousands of errors as you wouldnt ever expect a match unless every supplier supplies every sku.
I know there will be missing data yes. But not to the extent you believe. If I can map each suppliers corresponding MPN to our SKU. Then I can map their price and place orders where they are the cheapest.

Is there a solution? I tried to wrangle the dataset into Pivot but was unable to return the MPN. Can this be done?
 
Upvote 0
Maybe something like this?
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Book1
ABCDEFGHIJKLMNO
1Supplier#SKU#MPN#
2387569718122Supplier#3875625802147354411103875637983641111010013
3258024680374031481SKU# / MPN#
421472279467EFAS-RF-16-400-450-1797181220    0    
53544860261276832468037 4031481        
6111020358052279467  EFAS-RF-16-400-450-17       
73875697167368602612   7683      
837989821329508102035805    0   0 
93641300010497167360    0    
10111020343157006189259821329      50810   
111001386058882600-040-900-0003000104       0  
1212081325750243172034315    700618925   700618925 
1333572511324534061208605888         2600-040-900-000
147422187962223303257502          
152511324          
162187962          
Sheet1
Cell Formulas
RangeFormula
F4:O16F4=IFERROR(INDEX($C$2:$C$14,MATCH(F$2&"/"&$E4,$A$2:$A$14&"/"&$B$2:$B$14,0)),"")
 
Upvote 0
You could use a pivot table yes. Put the prices in the table and you could use it to see min prices based on sku. Put SKU#, Supplier# then MPN# in the rows and price in the values. Use 'min of' rather than sum.
 
Upvote 0
And dont use a formula for this. Your computer may melt. There are 80k x 80k formulas required.
 
Upvote 0
Heres one i made of your supplied data.
 

Attachments

  • snip.PNG
    snip.PNG
    29.7 KB · Views: 10
Upvote 0
Maybe something like this?
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Book1
ABCDEFGHIJKLMNO
1Supplier#SKU#MPN#
2387569718122Supplier#3875625802147354411103875637983641111010013
3258024680374031481SKU# / MPN#
421472279467EFAS-RF-16-400-450-1797181220    0    
53544860261276832468037 4031481        
6111020358052279467  EFAS-RF-16-400-450-17       
73875697167368602612   7683      
837989821329508102035805    0   0 
93641300010497167360    0    
10111020343157006189259821329      50810   
111001386058882600-040-900-0003000104       0  
1212081325750243172034315    700618925   700618925 
1333572511324534061208605888         2600-040-900-000
147422187962223303257502          
152511324          
162187962          
Sheet1
Cell Formulas
RangeFormula
F4:O16F4=IFERROR(INDEX($C$2:$C$14,MATCH(F$2&"/"&$E4,$A$2:$A$14&"/"&$B$2:$B$14,0)),"")
This is the solution i want. And it's the solution i managed to produce earlier, the main problem being that i was not able to copy the array formula down in any manner, so i had to copy paste each cell and then press CTRL+SHIFT+ENTER... How'd you manage to populate the matrix?
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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