Lookup/Vlookup/Hlookup/Index & Match? Need help

DarkSmile

Board Regular
Joined
Feb 22, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Hi,

I need some help finding the right formula. I'm trying the following :

Look if "Name 1" has an x in the right "norm"

For example, look if name 1 has an X in IFS , IFS is located in colum 64 (if it can help) , if it has X return yes or anything (don't care)
Preferable it's a nested formula, so look if Name 1 has an X in all the norms (located in D)

1676386643186.png


MrExcel - File.xlsx
ABCDEFG
1KlantnaamKlantnaam2NormenNormen2ColumnGekwalificeerd?Auditor
2test1test1IFS v7, ACS-018, ACS-019 Fenavian, BePork Slachthuis, BePork Uitsnijderij, Febev + Slachthuis voor varkens, Febev + Uitsnijderij voor varkens, BVI/MPT Slachthuis & Uitsnijderij, Colruyt, Export - China, Export Zuid-Korea Slachthuis, Export Zuid-Korea Uitsnijderij, Export Zuid-Korea VerwerkingIFS v764Name1
3test1ACS-01816Name2
4test1ACS-019 Fenavian17Name3
5test1BePork Slachthuis29Name4
6test1BePork Uitsnijderij30Name5
7test1Febev + Slachthuis voor varkens43Name6
8test1Febev + Uitsnijderij voor varkens45Name7
9test1BVI/MPT Slachthuis & Uitsnijderij33Name8
10test1Colruyt35Name9
11test1Export - China36Name10
12test1Export Zuid-Korea Slachthuis38Name11
13test1Export Zuid-Korea Uitsnijderij39Name12
14test1Export Zuid-Korea Verwerking40Name13
15test1N/AName14
16test1N/AName15
17test1N/AName16
18test1N/AName17
19test1N/AName18
20test1N/AName19
21test1N/AName20
22test1N/AReserve
23test1N/AReserve
24test1N/AReserve
25test1N/AReserve
Planningstabel
Cell Formulas
RangeFormula
D2:D14D2=FILTER('Klant - sector'!G:G,'Klant - sector'!B:B=Planningstabel!A2)
B2B2=A2
C2C2=TEXTJOIN(", ",TRUE,IF(A2=klant_sector[Name],klant_sector[standard],""))
B3B3=A2
B4B4=A2
B5B5=A2
B6B6=A2
B7B7=A2
B8B8=A2
B9B9=A2
B10B10=A2
B11B11=A2
B12B12=A2
B13B13=A2
B14B14=A2
B15B15=A2
B16B16=A2
B17B17=A2
B18B18=A2
B19B19=A2
B20B20=A2
B21B21=A2
B22B22=A2
B23B23=A2
B24B24=A2
B25B25=A2
E2:E25E2=IFERROR(MATCH(D2,Kwalificaties!$1:$1),"N/A")
Dynamic array formulas.
Named Ranges
NameRefers ToCells
'Klant - sector'!ExternalData_1='Klant - sector'!$B$1:$J$14D2


MrExcel - File.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBV
1AuditorACS-003 Déb VianACS-007 RetailACS-023 HorecaACS-025 CollectivACS-026 boul distriACS-041 CrecheACS-044 BtoCACS-002 Ind LaitACS-004 BrasseriesACS-005 glaces-ijsACS-006ACS-009 Tran/col LaitACS-014 Fr et LégACS-017ACS-018ACS-019 FenavianACS-020 MeuneriesACS-022 ChoprabiscoACS-024ACS-026 boul transfoACS-027ACS-029ACS-032ACS-039Bel-P-PlusBelplume SlachthuisBelplume TransportBePork SlachthuisBePork UitsnijderijBePork VleesverwerkerBePork welfareBVI/MPT Slachthuis & UitsnijderijBVI/MPT VleesverwerkerColruytExport - ChinaExport Zuid-Korea KoelhuisExport Zuid-Korea SlachthuisExport Zuid-Korea UitsnijderijExport Zuid-Korea VerwerkingFebev + GroothandelFebev + Slachthuis voor runderenFebev + Slachthuis voor varkensFebev + Uitsnijderij voor runderenFebev + Uitsnijderij voor varkensGRMSISO 22000:2018SPECIFIC STANDARDAOECS Module for Gluten Free FoodsASDA-moduleBLKBRC Agents & BrokersBRC PackagingBRC S&DBRC v9FSMA Module Preventive Controls PreparednessFSSC 22000 v5GFCPHead OfficeIFS BrokerIFS Cash & Carry v2IFS Global Markets FoodIFS LIFS v7IFS Wholesale v2Suppliers FOODAldi AustraliëBarry CallebautCarrefourDelhaize - PIALidlLidl - Animal welfarePuratosTaste & Welfare audits - Belgian Porc Group
2Name1xxxxxxxxxxxxxxxxxx
3Name2xxxxxxxxxxxxxxxxxxxxxxxxxx
4Name3xxxxxxxxxxxxxxxx
5Name4xxxxxxxx
6Name5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
7Name6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
8Name7xxxxxxxxxxxxxxxxxxxxxx
9Name8xxxxxxxxxxxxxxxxxxxxxxxxxx
10Name9xxxxxxxxxxxxxxxxxxxxxx
11Name10xxxxxxxxxxxxxxxxxxxxx
12Name15xxxxxxxxxxxx
13Name16xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
14Name17xxxxxxxxxxxx
15Name18xxxxxxxxxxxxxxxx
16Name19xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Kwalificaties


MrExcel - File.xlsx
ABCDEFGHIJ
1HelperNameStatusdateActiveproductstandardMANUEELSector code 2sector
2test1IFS v7test1customer21/03/2022yesFoodIFS v701 Red and white meat, poultry and meat products , 07 Combined products , B Pasteurisation with the purpose to reduce food safety hazards (and UHT p… , D System, treatments to maintain product integrity and or safety , E Systems, treatments to prevent product contamination , F Any other manipulation, treatment, rocessing not being listed in A,B,C,D,E01Red and white meat, poultry and meat products
3test1ACS-018test1customer25/03/2022yesFoodACS-018
4test1ACS-019 Fenaviantest1customer28/03/2022yesFoodACS-019 Fenavian
5test1BePork Slachthuistest1customer28/03/2022yesFoodBePork Slachthuis
6test1BePork Uitsnijderijtest1customer28/03/2022yesFoodBePork Uitsnijderij
7test1Febev + Slachthuis voor varkenstest1customer28/03/2022yesFoodFebev + Slachthuis voor varkens
8test1Febev + Uitsnijderij voor varkenstest1customer28/03/2022yesFoodFebev + Uitsnijderij voor varkens
9test1BVI/MPT Slachthuis & Uitsnijderijtest1customer29/03/2022yesFoodBVI/MPT Slachthuis & Uitsnijderij
10test1Colruyttest1customer29/03/2022yesFoodColruyt
11test1Export - Chinatest1customer29/03/2022yesFoodExport - China
12test1Export Zuid-Korea Slachthuistest1customer29/03/2022yesFoodExport Zuid-Korea Slachthuis
13test1Export Zuid-Korea Uitsnijderijtest1customer30/03/2022yesFoodExport Zuid-Korea Uitsnijderij
14test1Export Zuid-Korea Verwerkingtest1customer30/03/2022yesFoodExport Zuid-Korea Verwerking
Klant - sector
Cell Formulas
RangeFormula
A2:A14A2=CONCATENATE([@Name]&[@standard])



Sorry for bad explanation

Thank you
David
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Not sure i fully understand but try the below as a start, thought it might be a good use of index/ match/ match

Excel Formula:
=IF(INDEX(Kwalificaties!$A$1:$BV$16,MATCH(G2,Kwalificaties!$A$1:$A$16,0),MATCH(D2,Kwalificaties!$A$1:$BV$1,0))="x","Yes","No")
 
Upvote 0
Not sure i fully understand but try the below as a start, thought it might be a good use of index/ match/ match

Excel Formula:
=IF(INDEX(Kwalificaties!$A$1:$BV$16,MATCH(G2,Kwalificaties!$A$1:$A$16,0),MATCH(D2,Kwalificaties!$A$1:$BV$1,0))="x","Yes","No")
Hi, Yes this is what I need, I just need to adjust in now so it checks all "normen" :

I tried this, but not working "to many arguments"

Excel Formula:
=IF(INDEX(Kwalificaties!$A$1:$BV$16,MATCH(G2,Kwalificaties!$A$1:$A$16,0),MATCH(D2,Kwalificaties!$A$1:$BV$1,0))="x",INDEX(Kwalificaties!$A$1:$BV$16,MATCH(G2,Kwalificaties!$A$1:$A$16,0),MATCH(D3,Kwalificaties!$A$1:$BV$1,0))="x",INDEX(Kwalificaties!$A$1:$BV$16,MATCH(G2,Kwalificaties!$A$1:$A$16,0),MATCH(D4,Kwalificaties!$A$1:$BV$1,0))="x","Yes","No")

Screenshot_2.png
 
Upvote 0
Will it not find lots of X's that way?

What happens if there was an X in all of them? None of them? Some of them?
 
Upvote 0
Will it not find lots of X's that way?

What happens if there was an X in all of them? None of them? Some of them?
So yeah, it needs to check for multiple criteria and then return a yes or no.
So it will find multiple X's but in different columns:

Example;
Check if name1 has an x in all of those "normen" and return a yes or no
1676463849776.png


So for example, I will just check the first 4, (but in reallity it needs to check all)

1676464019338.png


Name1 has no X in ACS-018 and BePork Slachthuis, the formula should return a NO ; (OR if possible it needs to return "partially").
 

Attachments

  • 1676463941598.png
    1676463941598.png
    4.8 KB · Views: 2
Upvote 0
I changed all of your X's in sheet 'Kwalificaties' to 1's to make things easier. I then created the formula below (I am not the best with the new functions) to calculate the result. I added the IFERROR at the front as some of the names don't exist in 'Kwalificaties':
15.02.xlsm
ABCDEFG
1KlantnaamKlantnaam2NormenNormen2ColumnGekwalificeerd?Auditor
2test1test1NoneName1
3test1NoneName2
4test1PartialName3
5test1PartialName4
6test1AllName5
7test1AllName6
8test1NoneName7
9test1PartialName8
10test1PartialName9
11test1PartialName10
12test1NoneName11
13test1NoneName12
14test1NoneName13
15test1NoneName14
16test1PartialName15
17test1AllName16
18test1PartialName17
19test1PartialName18
20test1AllName19
21test1NoneName20
22test1NoneReserve
23test1NoneReserve
24test1NoneReserve
25test1NoneReserve
Planningstabel
Cell Formulas
RangeFormula
F2:F25F2=IFERROR(LET(x,FILTER('Klant - sector'!$G$1:$G$14,'Klant - sector'!$B$1:$B$14=Planningstabel!$A$2),r,SUM(INDEX(Kwalificaties!$A$1:$BV$16,MATCH(G2,Kwalificaties!$A$1:$A$16,0),MATCH(x,Kwalificaties!$A$1:$BV$1,0))),IF(r=COUNTA(x),"All",IF(r>0,"Partial","None"))),"None")


Keep in mind that i changed some of the data in 'Kwalificaties' so the results above will not be as your original data would have created.
 
Upvote 0
You could also update the last "None" in the formula to be "Not Found" as it is there when the listed name is not found on the 'Kwalificaties' sheet.
 
Upvote 0
So I changed all the X's in sheet Kwalificaties to a 1, like you said right?
But i'm not getting the same results as you ?

Cell Formulas
RangeFormula
B2B2=A2
C2C2=TEXTJOIN(", ",TRUE,IF(A2=klant_sector[Name],klant_sector[standard],""))
B3B3=A2
B4B4=A2
B5B5=A2
B6B6=A2
B7B7=A2
B8B8=A2
B9B9=A2
B10B10=A2
B11B11=A2
B12B12=A2
B13B13=A2
B14B14=A2
B15B15=A2
B16B16=A2
B17B17=A2
B18B18=A2
B19B19=A2
B20B20=A2
B21B21=A2
B22B22=A2
B23B23=A2
B24B24=A2
B25B25=A2
F2:F25F2=IFERROR(LET(x,FILTER('Klant - sector'!$G$1:$G$14,'Klant - sector'!$B$1:$B$14=Planningstabel!$A$2),r,SUM(INDEX(Kwalificaties!$A$1:$BV$16,MATCH(G2,Kwalificaties!$A$1:$A$16,0),MATCH(x,Kwalificaties!$A$1:$BV$1,0))),IF(r=COUNTA(x),"All",IF(r>0,"Partial","None"))),"None")
Named Ranges
NameRefers ToCells
Kwalificaties!_FilterDatabase=Kwalificaties!$A$1:$BV$16F2:F25
'Klant - sector'!ExternalData_1='Klant - sector'!$B$1:$J$14F2:F25


Test - File.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBV
1AuditorACS-003 Déb VianACS-007 RetailACS-023 HorecaACS-025 CollectivACS-026 boul distriACS-041 CrecheACS-044 BtoCACS-002 Ind LaitACS-004 BrasseriesACS-005 glaces-ijsACS-006ACS-009 Tran/col LaitACS-014 Fr et LégACS-017ACS-018ACS-019 FenavianACS-020 MeuneriesACS-022 ChoprabiscoACS-024ACS-026 boul transfoACS-027ACS-029ACS-032ACS-039Bel-P-PlusBelplume SlachthuisBelplume TransportBePork SlachthuisBePork UitsnijderijBePork VleesverwerkerBePork welfareBVI/MPT Slachthuis & UitsnijderijBVI/MPT VleesverwerkerColruytE1port - ChinaE1port Zuid-Korea KoelhuisE1port Zuid-Korea SlachthuisE1port Zuid-Korea UitsnijderijE1port Zuid-Korea VerwerkingFebev + GroothandelFebev + Slachthuis voor runderenFebev + Slachthuis voor varkensFebev + Uitsnijderij voor runderenFebev + Uitsnijderij voor varkensGRMSISO 22000:2018SPECIFIC STANDARDAOECS Module for Gluten Free FoodsASDA-moduleBLKBRC Agents & BrokersBRC PackagingBRC S&DBRC v9FSMA Module Preventive Controls PreparednessFSSC 22000 v5GFCPHead OfficeIFS BrokerIFS Cash & Carry v2IFS Global Markets FoodIFS LIFS v7IFS Wholesale v2Suppliers FOODAldi AustraliëBarry CallebautCarrefourDelhaize - PIALidlLidl - Animal welfarePuratosTaste & Welfare audits - Belgian Porc Group
2Name1111111111111111111
3Name211111111111111111111111111
4Name31111111111111111
5Name411111111
6Name51111111111111111111111111111111
7Name6111111111111111111111111111111111
8Name71111111111111111111111
9Name811111111111111111111111111
10Name91111111111111111111111
11Name10111111111111111111111
12Name15111111111111
13Name161111111111111111111111111111111111
14Name17111111111111
15Name181111111111111111
16Name191111111111111111111111111111111111
Kwalificaties
 
Upvote 0
I see you have excel versions 2016 & 365 listed, which are you using to view this?
 
Upvote 0

Forum statistics

Threads
1,215,198
Messages
6,123,593
Members
449,109
Latest member
Sebas8956

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