• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Please help me to simplify formula

IF(ISNUMBER(SEARCH("APOLLO 8",N6)),"Apollo",

IF(ISNUMBER(SEARCH("BFUB 1.6.4",N6)),"Apollo",

IF(ISNUMBER(SEARCH("Fix Team",AB6)),"Defect fix team",

IF(ISNUMBER(SEARCH("IMPL & SUPP",C6)),"Implementation Support",

IF(ISNUMBER(SEARCH("BFUB15-MCP-Interface-Testing-Actinver",C6)),"Implementation Support",

IF(ISNUMBER(SEARCH("NBK-Performance",C6)),"NBK Performance",

IF(ISNUMBER(SEARCH("NBK - Performance",C6)),"NBK Performance",

IF(ISNUMBER(SEARCH("00",C6)),

IF(ISNUMBER(SEARCH("copk",C6)),"SFDC COPK",

IF(ISNUMBER(SEARCH("bcb",C6)),"SFDC BCB",

IF(ISNUMBER(SEARCH("boc",C6)),"SFDC BOC",

IF(ISNUMBER(SEARCH("SBA",C6)),"SFDC SBA",

IF(ISNUMBER(SEARCH("NBOK",C6)),"SFDC NBK",

IF(ISNUMBER(SEARCH("SBSA",C6)),"SFDC SBA",

IF(ISNUMBER(SEARCH("ACTINVER",C6)),"SFDC Actinver",

IF(ISNUMBER(SEARCH("ACT-",C6)),"SFDC Actinver",

IF(ISNUMBER(SEARCH("ACT_",C6)),"SFDC Actinver",

IF(ISNUMBER(SEARCH("crdb",C6)),"SFDC CRDB",

IF(ISNUMBER(SEARCH("NBK",C6)),"SFDC NBK",

"No Client SFDC Issue"

)

)

)

)

)

)

)

)

)

)

)

)

)

)

)))),"")


This value returns false if no value is found

Or can we simplify this formula
 
Manish


You could do something like

Code:
=INDEX(O11:O23,SUMPRODUCT(COUNTIF(N6,"*"&$N$11:$N$23&"*")*(ROW(N11:N23)-Row(N10))))


This is where N11:N23 have a list of the Lookup values

O11:O23 have a list of the associated values to be returned

eg: N11 would have Apollo 8 and O11 would have Apollo etc

Adjust ranges to suit


This extends on the technique discussed at: http://chandoo.org/wp/2012/02/09/formula-forensics-011/
 
That last bit of formula is the problem, should be:

=INDEX(CV2:CV21,SUMPRODUCT(COUNTIF(CU2,"*"&$CU$2:$CU$20&"*")*(ROW(CU2:CU20)-ROW(CU1))))
 
Agrawal


A2: should be

Code:
=INDEX(CV$2:CV$21,SUMPRODUCT(COUNTIF(CU2,"*"&$CU$2:$CU$20&"*")* (ROW($CU$2:$CU$20)-ROW($CU$1))))


Copy down

Just needed a few $ signs to limit the movement of the look up ranges etc
 
Hello Agrawal,


If the below are your requirements:


A cell contains text eg: C6 & you have some text to SEARCH in C6 (consider texts are in CU2:CU21). If any of the text from CU2:CU21 CONTAINS in C6, return the appropriate text from CV2:CV21.


If so, try this formula,


=LOOKUP(9E+300,SEARCH(CU2:CU21,C6)/(CU2:CU21<>""),CV2:CV21)


If multiple texts found in C6, will return the last text's appropriate value.
 
Back
Top