发布网友 发布时间:2022-05-11 20:18
共1个回答
热心网友 时间:2023-07-21 21:33
求只提取/左边大写字母A到Z,且A1单元格内没有/则提取全部A到Z大写字母的公式
B1单元格输入=IF(C1=0,"",IF(ISNUMBER(FIND("/",A1)),IF(C1<=LEN(A1),IF(ISNUMBER(MATCH(CODE(MID(LEFT(A1,FIND("/",A1)),C1,1)),ROW($A$65:$A$90),0)),B1&MID(LEFT(A1,FIND("/",A1)),C1,1),B1),B1),IF(C1<=LEN(A1),IF(ISNUMBER(MATCH(CODE(MID(A1,C1,1)),ROW($A$65:$A$90),0)),B1&MID(A1,C1,1),B1),B1)))
求只提取/右边大写字母A到Z,且A1单元格内没有/则提取全部A到Z大写字母的公式
B2单元格输入=IF(C1=0,"",IF(ISNUMBER(FIND("/",A1)),IF(C1<=LEN(A1),IF(ISNUMBER(MATCH(CODE(MID(RIGHT(A1,LEN(A1)-FIND("/",A1)),C1,1)),ROW($A$65:$A$90),0)),B2&MID(RIGHT(A1,LEN(A1)-FIND("/",A1)),C1,1),B2),B2),IF(C1<=LEN(A1),IF(ISNUMBER(MATCH(CODE(MID(A1,C1,1)),ROW($A$65:$A$90),0)),B2&MID(A1,C1,1),B2),B2)))
备注:如图以上公式均为迭代公式,需在excel选项中勾选迭代公式,需在C1单元格输入=C1+1
效果如图: