Reputation: 870
I'm attempting to take a CONCATENATE
d value in a column (A), SPLIT
that value in two and VLOOKUP
two columns in another sheet (same file). The issue I'm running into is if there are not two values to SPLIT
in the CONCATENATE
d cells, I get an error. I can flip my formula to search for two values or one (two values JOIN
ed with :
or a single value), but not both.
This is the latest iteration of my formula that's only showing half of the desired results.
=ArrayFormula(VLOOKUP(IF(FIND(":",A3:A),SPLIT(A3:A,":"),A3:A),{materialsData!C2:C,materialsData!D2:D,materialsData!E2:H},4,))
Here is an example sheet of what I'm trying to do.
Upvotes: 1
Views: 94
Reputation: 1
try:
=ARRAYFORMULA(IFNA(VLOOKUP(A3:A, {IF(materialsData!D2:D<>"",
materialsData!C2:C&":"&materialsData!D2:D, materialsData!C2:C), materialsData!F2:F}, 2, 0)))
Upvotes: 1