To explain a little of what it is doing, assume you have
D E
274 EDI ML
First, we use SEARCH({"EDI","EDI","PNC"},D274) which searches for "EDI",
"EDI", and "PNC" in D274 and will return the starting character position or
an error for each item we're searching for (in the form of a 1x3 array). So
we get
1 1 #VALUE
But what we want to know is simply if it found the text or not (regardless
of character starting position and w/o getting the #VALUE), so we can use
Isnumber to differentiate between the numbers and errors returned by search
--(ISNUMBER(SEARCH({"EDI","EDI","PNC"},D274)))
The "--" is the double unary operator. Excel stores TRUE as 1 and FALSE as
0. When you perform a mathematical operation w/TRUE & FALSE, excel converts
them to their underlying values of 1 and 0. The double negative simply
coerces TRUE/FALSE values to 1/0. So you get:
1 1 0
The same is done for cell E274 using
--(ISNUMBER(SEARCH({"EDI","ML","PNC"},F274))). So now we have:
1 1 0
0 1 0
The third argument of Sumproduct is a 1x3 array of 1,2,3. So our array
looks like:
1 1 0
0 1 0
1 2 3
Sumproduct will multiply these three arrays together, then add up the
results. Multipling the three together and adding gets us
0 2 0 = 2
what's left of the formula is
=CHOOSE(2+1,"","Julio","Meza","Angelina")
The first argument of Choose tells it which one of its other arguments to
return. Since Choose does not accept 0 (which sumproduct will return if
there are no matches) you have to add 1 to the results of sumproduct.
Bob Phillips covers sumproduct here
http://xldynamic.com/source/xld.SUMPRODUCT.html
BTW - if you only need to test your data to see if it is equal to "EDI",
search becomes unnecessary. For example, Search would be used to find "edi"
in the word "edible". If your data is only "edi", not some text that you
need to determine if it contains "edi" somewhere, the formula can be
shortened to:
=CHOOSE(SUMPRODUCT(--(D274={"EDI","EDI","PN"}),--(E274={"EDI","ML","EDI"}),{1,2,3})+1,"","Julio","Meza","Angelina")
I only used Search because you had it in your OP, so I only assume it is
needed.
I still don't follow how the results of the Choose function fit in the
formula below. I see that you are doing a 2D lookup, but let's say Choose
returns "Angelina". Where should that go in the formula below? If you want
it to replace C273, try copying the text of the choose function and pasting
it over C273.
INDEX('Cash App Schedule'!$B$2:$O$20,MATCH(C273,'Cash App
Schedule'!$A$2:$A$20,0),MATCH(E273,'Cash App Schedule'!$B$1:$O$1,0))
Or are the results of the Index function supposed to replace one the
arguments in the Choose function?