Extract Specific Data from one sheet to another

simonmiller

New Member
Joined
Dec 31, 2010
Messages
19
Hi All,

I have a price list from a supplier with 2000+ items. I only sell approx

I have the list of items and SKu that i have listed. I want a “easy” want to extract only the items from the supplier price list matching the items i have on my listed items i sell.

Does this make sence?

Supplier Price list:
SkuDiscriptionPrice
Sku1Items 11.00
Sku2Items 22.00
Sku3Items 33.00


My List
SkuDiscriptionPrice
Sku1Items 10.05
Sku3Items 31.05

New extraction
I want my new list to take the data from My list look for the corosponding sku in suppliers price list and extract only those lines.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
With power query;

Merge your list with the suppliers list with an inner join
 
Upvote 0
what version of excel you have

you can do with a helper column using countif()

in a helper column - something like - i'm sure it can be done without the helper column , but really need to know your excel version

EDIT
see below - for one formula, no helper column needed
=FILTER(A2:C4,COUNTIF(H2:H5,A2:A4))


=COUNTIF($H$2:$H$3,A2) where H2:H3 is you list of wanted SKU

then use the FILTER function - if you have a later version of excel

all on 1 sheet - just to show easily with xl2bb - but can be on different sheets

Book3
ABCDEFGH
1SkuDiscriptionPricehelpermy sku
2Sku1Items 111sku1
3Sku2Items 220sku3
4Sku3Items 331
5
6
7MY List
8Sku1Items 11
9Sku3Items 33
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=COUNTIF($H$2:$H$3,A2)
A8:C9A8=FILTER(A2:C4,E2:E4=1)
Dynamic array formulas.


no helper column needed, row 12,13,14 below

Book3
ABCDEFGH
1SkuDiscriptionPricehelpermy sku
2Sku1Items 111sku1
3Sku2Items 220sku3
4Sku3Items 331
5
6
7MY List
8Sku1Items 11
9Sku3Items 33
10
11
12one formula no helper
13Sku1Items 11
14Sku3Items 33
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=COUNTIF($H$2:$H$3,A2)
A8:C9A8=FILTER(A2:C4,E2:E4=1)
A13:C14A13=FILTER(A2:C4,COUNTIF(H2:H5,A2:A4))
Dynamic array formulas.
 
Last edited:
Upvote 0
Here is the Power Query way to do it

Power Query:
let
    T1 = Excel.CurrentWorkbook(){[Name="Supplier"]}[Content],
    #"Promoted Headers" = Table.PromoteHeaders(T1, [PromoteAllScalars=true]),
    T2 = Excel.CurrentWorkbook(){[Name="MyList"]}[Content],
    #"Promoted Headers1" = Table.PromoteHeaders(T2, [PromoteAllScalars=true]),
    MQ = Table.NestedJoin(#"Promoted Headers", {"Sku"}, #"Promoted Headers1", {"Sku"}, "Table2", JoinKind.LeftOuter),
    #"Expanded Table2" = Table.ExpandTableColumn(MQ, "Table2", {"Price"}, {"Table2.Price"}),
    #"Filtered Rows" = Table.SelectRows(#"Expanded Table2", each ([Table2.Price] <> null))
in
    #"Filtered Rows"

Book1
JKLMNOP
1SkuDiscriptionPriceSkuDiscriptionPrice
2Sku1Items 11Sku1Items 10.05
3Sku2Items 22Sku3Items 31.05
4Sku3Items 33
5
6SkuDiscriptionPriceTable2.Price
7Sku1Items 110.05
8Sku3Items 331.05
Sheet1
 
Upvote 0
With an inner join you have the correct output directly
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,920
Latest member
jaspers

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