I have a list of stocks in one column and I am trying to categorize them.
Cells:
AAPL, INTC, QCOM
AAPL, QCOM
CHKP
These are 3 separate cells in the same column. I have a database of few hundred rows in this column to categorize.
I want to categorize each cell as either QCOM or CHKP depending on which ticker is included in the cell.
So far i'v beening writing a function of:
=if(search("QCOM",A2,1)>=1,"QCOM",IF(search("CHKP",A2,1)>=1,"CHKP","notfound"))
the issue is that when it is a QCOM cell, it works fine but when it is a CHKP cell, the first search function results in a #value error and thereby ending the function so it never gets to the second part (the false value of the first IF statement which activates the second IF statement)
any commentary and advice would be much appreciated.
Bookmarks