你这个确实精简很多,我后面重新弄了一个表来专门转换房号使用,因为专门一个表就没用LET函数。用的比较古老的办法,因为有的同事的版本不支持新函数,我这个看起来有点头晕=IFNA(IF(LEN(F3)<=6,TEXTBEFORE(F3,"-")&"#"&"/"&IFS(LEFT(RIGHT(F3,3),1)="1","1F",LEFT(RIGHT(F3,3),1)="2","2F",LEFT(RIGHT(F3,3),1)="3","3F",LEFT(RIGHT(F3,3),1)="4","4F",LEFT(RIGHT(F3,3),1)="5","5F",LEFT(RIGHT(F3,3),1)="6","6F",LEFT(RIGHT(F3,3),1)="7","7F",LEFT(RIGHT(F3,3),1)="8","8F")&"/"&RIGHT(F3,3),TEXTBEFORE(F3,"-")&"#"&IFS(MID(F3,FIND("-",F3)+1,1)="1","一单元",MID(F3,FIND("-",F3)+1,1)="2","二单元",MID(F3,FIND("-",F3)+1,1)="3","三单元")&"/"&IFS(LEFT(RIGHT(F3,3),1)="1","1F",LEFT(RIGHT(F3,3),1)="2","2F",LEFT(RIGHT(F3,3),1)="3","3F",LEFT(RIGHT(F3,3),1)="4","4F",LEFT(RIGHT(F3,3),1)="5","5F",LEFT(RIGHT(F3,3),1)="6","6F",LEFT(RIGHT(F3,3),1)="7","7F",LEFT(RIGHT(F3,3),1)="8","8F")&"/"&RIGHT(F3,3)),"") |