Hi there people,
I am using excel 2003 and have devised the following formula - through a lot of trial and error :
=IF(ISERROR(SEARCH("*cat*",$K9,1)),IF(ISERROR(SEARCH("*dog*",$K9,1)),IF(ISERROR(SEARCH("*horse*",$K9,1)),IF(ISERROR(SEARCH("*cow*",$K9,1)),IF(ISERROR(SEARCH("*chicken*",$K9,1)),"",".5"),".4"),".3"),".2"),".1")
This is intended to search for the following words and apply the percentage relative to the word:
Cat = 0.1
Dog = 0.2
Horse = 0.3
Cow = 0.4
Chicken = 0.5
My problem is that I need to include another 4 words and percentages, but my formula breaks down if I add any more.
Pig = 0.6
Donkey = 0.7
Elephant = 0.8
Monkey = 0.9
I understand there is a limitation in Excel 2003 with 7 nested "ifs" but if anyone can help me with a solution or other way of doing this, I would be eternally grateful (and my boss will love me!!!)
Formula will be in column P
Text to search will be in Column K – starting on Line 9 (must be able to copy formula down multiple lines)
Thank you
Bookmarks