excel将简写房号转为几栋几单元几层几号房

求大神出现帮忙解决,单元是要转为大写,如图所示
2024-11-28 03:35:23
推荐回答(2个)
回答(1):

B2="小径海岸城花园"&LEFT(A2,FIND("-",A2)-1)&"号楼"&TEXT(MID(A2,FIND("-",A2)+1,1),"[dbnum1]")&"单元"&INT(LOOKUP(99^9,-RIGHT(A2,ROW($1:$5)))/100)&"层"&RIGHT(LOOKUP(99^9,-RIGHT(A2,ROW($1:$5))),2)&"号房"

二单元不是大写?

回答(2):

公式:
="小径海岸城花园"&LEFT(A2,FIND("-",A2)-1)&"号楼"&TEXT(LEFT(RIGHT(A2,LEN(A2)-FIND("-",A2)),FIND("-",RIGHT(A2,LEN(A2)-FIND("-",A2)))-1),"[DBNum1][$-804]0")&"单元"&LEFT(RIGHT(A2,4),2)&"层"&RIGHT(A2,2)&"号房"