If Cell Starts with Text String… Formula

后端 未结 3 1626
悲哀的现实
悲哀的现实 2021-02-12 12:05

I have formula that checks if the cell starts with text \"A\" returns Pick up \"B\" for Collect and C for Prepaid.

But it doesn\'t seems to be working properly

B

3条回答
  •  天命终不由人
    2021-02-12 12:36

    As of Excel 2019 you could do this. The "Error" at the end is the default.

    SWITCH(LEFT(A1,1), "A", "Pick Up", "B", "Collect", "C", "Prepaid", "Error")
    

    Microsoft Excel Switch Documentation

提交回复
热议问题