Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Wed, 4 Jun 2008 11:40:00 -0700, EarlyBirdie
wrote: OK, thanks everyone for your responses. So since using ISLOGICAL will not provide the desired solution, let me provide more detail to what I am attempting to do. Cells in column A will contain text or contain nothing. In column B's cells, I want to have a formula that checks the adjacent column A cell to see if its text contains any of five specified six-character strings that may be present anywhere in the text (there will not be more than one of the values in each cell) and then display the six-character text that may be found or indicate that none of the searched-for strings are present. I tried some ISERROR combinations but can't find a suitable solution. List your desired strings in a range, and NAME the range "List" (or use the actual cell reference). Then try this formula to mimic your first example: =IF(SUMPRODUCT(-ISNUMBER(FIND(List,A1)))=0,"No Claim","Claim") Or, to display the actual code specified six-character string: =INDEX(List,MATCH(TRUE,ISNUMBER(FIND(List,A1)),0)) entered as an **array formula** by holding down <ctrl<shift while you hit <enter. Formula #2 will give an error if there is no match, so perhaps, to combine the two: =IF(SUMPRODUCT(-ISNUMBER(FIND(List,A1)))=0,"No Claim", INDEX(List,MATCH(TRUE,ISNUMBER(FIND(List,A1)),0))) also entered as an **array formula** --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
Nested IF Function, Date Comparing, and NetworkDays Function | Excel Worksheet Functions |