Range(
"C10"
).FormulaR1C1 =
"=IFNA(VLOOKUP(R[-1]C,'Ort&Plz'!R[-9]C[-2]:R[12874]C[-1],2,0),"
""
")"
mögliche Umsetzung in vba mit Verweisfunktion, nur Ergebnis steht in Zelle
Range(
"C10"
) = WorksheetFunction.VLookup(Range(
"C9"
), Sheets(
"Ort&PLZ"
).Range(
"A1:B12884"
), 0)
mögliche Umsetzung als VBAlösung mit Range.find() Methode, Ergebnis steht in Zelle
Dim
x
As
Range
Set
x = Sheets(
"Ort&PLZ"
).Range(
"A1:A12884"
).Find(what:=Range(
"C9"
), LookIn:=xlValues, lookat:=xlWhole)
If
Not
x
Is
Nothing
Then
Range(
"C10"
) = x.Offset(, 1)