hi can anyone help with this , or let me know if this is even possible.

Thanks

Format a cell with 3 different rules

If a1=1 , the add b1+c1+d1 in cell e1
If a1=2, then add c1+d1 in cell e1
If a1 =3, then copy d1 to e1