Much appreciated. That worked perfectly. If you wouldn't mind explaining a bit of the logistics behind why that formula works, I would love to hear an explanation or if you can point me to a resource. That said, thanks again for your help.
9.99E+307
is the largest number that Excel can store. This "Big number" is used to look up the last number in a range.
The following example searches for the largest number in the range C12:C15.
In this case the largest number is 4, then the LOOKUP function returns "d"
<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:120.71px;" /><col style="width:26.61px;" /><col style="width:26.61px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >B</td><td >C</td><td >D</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >12</td><td >d</td><td style="text-align:right; ">1</td><td >a</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >13</td><td > </td><td style="text-align:right; ">2</td><td >b</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >14</td><td > </td><td style="text-align:right; ">3</td><td >c</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >15</td><td > </td><td style="text-align:right; ">4</td><td >d</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >B12</td><td >=LOOKUP(9.99E+307,C12:C15,D12:D15)</td></tr></table></td></tr></table>
Then
SEARCH(E$2:E$4,A2)
The SEARCH function searches the texts of each phrase in the range E2:E4 within the text of cell A2.
SEARCH returns the number of characters in which a text string is found.
LOOKUP(9.99E+307,SEARCH(E$2:E$4,A2),E$2:E$4)
LOOKUP(9.99E+307,SEARCH({"paid check","Letter delivered","length text"}
,A2),E$2:E$4)
LOOKUP(9.99E+307,SEARCH({"paid check","Letter delivered","length text"}
,bank item paid check #130
),E$2:E$4)
LOOKUP(9.99E+307,{11,#¡VALUE!,#¡VALUE!
,E$2:E$4)
LOOKUP(9.99E+307,{11,#¡VALUE!,#¡VALUE!}
,{"paid check","Letter delivered","length text"}
)
The largest number is 11
Then result is "paid check"
If the value is not found then return
{#¡VALUE!,#¡VALUE!,#¡VALUE!}
And that's what the error function is for
=IFERROR(LOOKUP(9.99E+307,SEARCH(E$2:E$4,A2),E$2:E$4),"")
=IFERROR({#¡VALUE!,#¡VALUE!,#¡VALUE!}
,"")
=""
I hope this helps you.
[TABLE="width: 191"]
<colgroup><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]