Index Match function to derive the entire list in a table based on a selected variable/s.

93arpan

New Member
Joined
Aug 21, 2023
Messages
6
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi Everyone,

I'm working on this unique case.

I've a table (raw data) in which I have Column 4 columns named Country, Supplier, Parts, and Net Price.
CountrySupplierPartsNet Price
GermanyIntelPart 12.30
GermanyIntelPart 22.34
GermanySpiraxPart 1.A2.38
GermanyRomossPart A.A2.42
GermanyRomossPart B.A2.46
GermanyRomossPart C.A2.50
GermanyZeissPart D2.54
GermanyGem LtdPart E.A2.58
SpainGem LtdPart 15.00
SpainGem LtdPart 25.04
SpainGem LtdPart 35.08
SpainDiscount WarehousePart 4.A4.20
SpainDiscount WarehousePart 6.A4.24
SpainDiscount WarehousePart A.14.28
SpainDiscount WarehousePart A.64.32

I'm trying to extract the values, in this instance all the Parts, if I select 'Spain' as a country and 'Supplier Discount Warehouse' as the Supplier
CountrySupplierPartsNet Price
SpainDiscount WarehousePart 4.A4.20
Discount WarehousePart 6.A4.24
Discount WarehousePart A.14.28
Discount WarehousePart A.64.32

Is there a way to do this using excel formula (Index, Match, or anything)?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try the FILTER() function?

Book3
ABCD
1CountrySupplierPartsNet Price
2GermanyIntelPart 12.3
3GermanyIntelPart 22.34
4GermanySpiraxPart 1.A2.38
5GermanyRomossPart A.A2.42
6GermanyRomossPart B.A2.46
7GermanyRomossPart C.A2.5
8GermanyZeissPart D2.54
9GermanyGem LtdPart E.A2.58
10SpainGem LtdPart 15
11SpainGem LtdPart 25.04
12SpainGem LtdPart 35.08
13SpainDiscount WarehousePart 4.A4.2
14SpainDiscount WarehousePart 6.A4.24
15SpainDiscount WarehousePart A.14.28
16SpainDiscount WarehousePart A.64.32
17
18CountrySupplierPartsNet Price
19SpainDiscount WarehousePart 4.A4.2
20Part 6.A4.24
21Part A.14.28
22Part A.64.32
Sheet1
Cell Formulas
RangeFormula
C19:D22C19=FILTER(C2:D16,(A2:A16=A19)*(B2:B16=B19))
Dynamic array formulas.
 
Upvote 1
Solution
If you have access to the Filter function, then here's one possibility:
Book1
ABCDEF
1CountrySupplierPartsNet PriceCountrySupplier
2GermanyIntelPart 12.3SpainDiscount Warehouse
3GermanyIntelPart 22.34
4GermanySpiraxPart 1.A2.38
5GermanyRomossPart A.A2.42
6GermanyRomossPart B.A2.46
7GermanyRomossPart C.A2.5
8GermanyZeissPart D2.54
9GermanyGem LtdPart E.A2.58
10SpainGem LtdPart 15
11SpainGem LtdPart 25.04
12SpainGem LtdPart 35.08
13SpainDiscount WarehousePart 4.A4.2
14SpainDiscount WarehousePart 6.A4.24
15SpainDiscount WarehousePart A.14.28
16SpainDiscount WarehousePart A.64.32
17
18CountrySupplierPartsNet Price
19SpainDiscount WarehousePart 4.A4.2
20SpainDiscount WarehousePart 6.A4.24
21SpainDiscount WarehousePart A.14.28
22SpainDiscount WarehousePart A.64.32
23
24CountrySupplierPartsNet Price
25SpainDiscount WarehousePart 4.A4.2
26SpainDiscount WarehousePart 6.A4.24
27SpainDiscount WarehousePart A.14.28
28SpainDiscount WarehousePart A.64.32
Sheet1
Cell Formulas
RangeFormula
A18:D22A18=VSTACK({"Country","Supplier","Parts","Net Price"},FILTER($A$2:$D$16,($A$2:$A$16="Spain")*($B$2:$B$16="Discount Warehouse"),""))
A24:D28A24=VSTACK({"Country","Supplier","Parts","Net Price"},FILTER($A$2:$D$16,($A$2:$A$16=E2)*($B$2:$B$16=F2),""))
Dynamic array formulas.
 
Upvote 1
Thank you very much you're such a legend.
This totally works
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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