I have the following formula
=IF(ISNUMBER(SEARCH("verizon",A2)),"verizon",IF(ISNUMBER(SEARCH("sprint",A2)),"sprint",IF(ISNUMBER(SEARCH("tmobile",A2)),"tmobile","")))
Instead of searching the entire text of A2, is there a way to say search first 5 letters because some text strings look like Verizon-Users-Sprint-Profile but that should really be verizon. And the format is not always text-text-, sometimes its text text or text : text so it varies.
=IF(ISNUMBER(SEARCH("verizon",A2)),"verizon",IF(ISNUMBER(SEARCH("sprint",A2)),"sprint",IF(ISNUMBER(SEARCH("tmobile",A2)),"tmobile","")))
Instead of searching the entire text of A2, is there a way to say search first 5 letters because some text strings look like Verizon-Users-Sprint-Profile but that should really be verizon. And the format is not always text-text-, sometimes its text text or text : text so it varies.