Search with values from one row in another column and then return value

Corne89

New Member
Joined
Apr 21, 2021
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
Hey guys,
i need help with a topic.
I want, with values from one row, to search for a match in the column of another table. But from all the values in the row, only one needs to be found in the other column. If this is the case, then it should return a specific value, which is the M-ID.

Example:
In sheet "Auswertung" i want to execute the function given above in cell i.e. G5: So when cell E5 is "-" , it should take the values of the row from "Hilfstabelle" (A5) and search for this value(s) in sheet "Import PHI". If there's a match (S12=S12), it should return the ID starting with M. In this case this would be M200 (Position A-11-51-51). If there's no match at all, it should return "-".

Would be cool, if you could help me!! Thank you!

Mappe1 (1).xlsm
ABCDE
1OrtBereichPlatzExt. VPMaster/Single
2LARAA-11-51-31M00073317M
3LARAA-11-51-31S416140010S
4LARAA-11-51-31S416140011S
5LARAA-11-51-31S416140012S
6LARAA-11-51-41M
7LARAA-11-51-51M200
8LARAA-11-51-51S12
9LARAA-11-51-61
10LARAA-11-51-61
11LARAA-11-51-61
12LARAA-11-51-61
13LARAA-11-51-61
14LARAA-11-51-33M000M
15A-11-51-33S10
16A-11-51-100
17
Import PHI



Mappe1 (1).xlsm
ABCDEFGH
1PositionenLagerplatz von Drohne erfasst?Leerer Lagerplatz Drohne?Master-Label (Soll) (PHI)Master-Label (Ist) (Drohne)Single-Label(s) (ist)Master-Label über Single abgeleitetBestand übereinstimmend? (Drohne/PHI)
2A-11-51-31janeinM00073317M00073317S416140010, S416140014 ja
3A-11-51-33janeinM000M5S10, S20 nein
4A-11-51-41nein#N/A--#VALUE!#N/Anein
5A-11-51-51janeinM200-S12#N/A#N/A
6A-11-51-61jaja--#VALUE!#N/Aja
7Gesamtergebnis#VALUE! 
Auswertung
Cell Formulas
RangeFormula
B2:B6B2=IFERROR(IF(VLOOKUP($A2,'Import Drohne'!$A$1:$B$1000,1,FALSE)=0,"nein","ja"),"nein")
C2:C6C2=IF(VLOOKUP($A2,'Import Drohne'!A1:B999,2,FALSE)=0, "ja","nein")
D2:D6D2=IFERROR(INDEX('Import PHI'!$D$1:$D$1000,AGGREGATE(15,6,ROW('Import PHI'!$D$1:$D$1000)/(('Import PHI'!$C$1:$C$1000=$A2)*(LEFT('Import PHI'!$D$1:$D$1000,1)="m")),1)),"-")
E2:E6E2=IFERROR(INDEX('Import Drohne'!$B$1:$B$999,AGGREGATE(15,6,ROW('Import Drohne'!$B$1:$B$999)/(('Import Drohne'!$A$1:$A$999=$A2)*(LEFT('Import Drohne'!$B$1:$B$999,1)="m")),1)),"-")
G2:G6G2=IF(E2="-",VLOOKUP(Hilfstabelle!A2:G2,'Import PHI'!A1:F25,4,FALSE)*IFERROR(INDEX('Import PHI'!$D$1:$D$1000,AGGREGATE(15,6,ROW('Import PHI'!$D$1:$D$1000)/(('Import PHI'!$C$1:$C$1000=$A2)*(LEFT('Import PHI'!$D$1:$D$1000,1)="m")),1)),"-"),"")
F2:F6F2=TXTJN(", ",TRUE,IF(('Import Drohne'!$A$1:$A$999=Auswertung!A2)*("S"=LEFT('Import Drohne'!$B$1:$B$999,1)),'Import Drohne'!$B$1:$B$999,""))
F7F7=TXTJN(", ",TRUE,IF(('Import Drohne'!$A$1:$A$999=Auswertung!A7)*("S"=LEFT('Import Drohne'!$B$1:$B$999,1)),'Import Drohne'!B6:B1004,""))
H2:H6H2=IF(B2="nein","nein",IF(AND(D2=0,E2=0),"",IF(AND(D2="-",E2="-"),"ja",IF(D2=E2,"ja",IF(D2=G2,"ja","nein")))))
H7H7=IF(AND(D7=0,E7=0),"",IF(AND(D7="-",E7="-"),"nein",IF(D7=E7,"ja",IF(D7=G7,"ja","nein"))))
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B:BCell Valuecontains "nein"textNO
H:HCell Valuecontains "nein"textNO
H:HCell Valuecontains "ja"textNO
H1Cell Valuecontains "ja"textNO
H1Cell Valuecontains "ja"textNO
H1Cell Valuecontains "nein"textNO



Mappe1 (1).xlsm
ABCDEFGHI
1
2S416140010 S416140014
3S10 S20
4#VALUE!
5S12
6#VALUE!
7#VALUE!
8
9
10
11
12
13
Hilfstabelle
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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