I have a vector that has different values in it. In the vector next to it I would like to use multiple =IF(FIND(IF(FIND(),IF(FIND(),..... statements.
Here is an example of my data and how I would like the cells next to it to come out:
COMPLAINT | DESCRIPTION <-- How I would like it to come out
CHF | CHF
COPD (Nos) | COPD
Chest, Pain, Acute | CHEST PAIN
CP | CHEST PAIN
... | ...
What I have written for this is as follows, which does not work:
=IF(FIND("CHF",E3,1),"CHF",IF(FIND("COPD",E3,1),"CHF",0))
I need to expand the above to accept at least 5 different arguments. I tried using this post here but I am not following it right.
EDIT
I expect the function to work something like this:
IF FIND "CHF"
THEN "CHF"
ELSE IF FIND "COPD"
THEN "COPD"
ELSE IF FIND "CP"
THEN "CHEST PAIN"
...
Thank you,