Forum Discussion

Js13ar's avatar
Js13ar
Copper Contributor
Aug 05, 2021
Solved

IF a cell starts with a letter then "value"

Hi,    I have a bunch of customer names that are assigned to an employee depending on what letter the customer name begins. So if the name begins with A-F or S-Z then it is assigned to Employee 1. ...
  • HansVogelaar's avatar
    Aug 05, 2021

    Js13ar 

    Try this:

    =IF(OR(E2={"BLUE","YELLOW","GREEN","RED","BROWN"}), "Employee 3", IF(AND(LEFT(E2)>="H", LEFT(E2)<="R"), "Employee 2", "Employee 1"))

    or

    =IF(E2="", "", IF(OR(E2={"BLUE","YELLOW","GREEN","RED","BROWN"}), "Employee 3", IF(AND(LEFT(E2)>="H", LEFT(E2)<="R"), "Employee 2", "Employee 1")))

Resources