用4个excel函数将excel“配电-CQP001公园配电室-2023-7-3” 这段字符串分别分隔为“配电”、“CQPO01”、“公园配电室”、“2023-7-3”,不能加减字符数量寻找
1. 使用LEFT函数:
```
=LEFT(A1,FIND("-",A1)-1)
```
2. 使用MID函数:
```
=MID(A1,FIND("-",A1)+1,FIND("-",A1,FIND("-",A1)+1)-FIND("-",A1)-1)
```
3. 使用RIGHT函数:
```
=RIGHT(A1,LEN(A1)-FIND("-",A1))
```
4. 使用SUBSTITUTE函数:
```
=SUBSTITUTE(A1,"配电","")
=SUBSTITUTE(A1,"公园配电室","")
=SUBSTITUTE(A1,"2023","")
=SUBSTITUTE(A1,"7","")
=SUBSTITUTE(A1,"3","")
```
```
=LEFT(A1,FIND("-",A1)-1)
```
2. 使用MID函数:
```
=MID(A1,FIND("-",A1)+1,FIND("-",A1,FIND("-",A1)+1)-FIND("-",A1)-1)
```
3. 使用RIGHT函数:
```
=RIGHT(A1,LEN(A1)-FIND("-",A1))
```
4. 使用SUBSTITUTE函数:
```
=SUBSTITUTE(A1,"配电","")
=SUBSTITUTE(A1,"公园配电室","")
=SUBSTITUTE(A1,"2023","")
=SUBSTITUTE(A1,"7","")
=SUBSTITUTE(A1,"3","")
```