之前提及,MR CHAN TAI MAN, JACKY 要轉為Mr Chan Tai-man,Jacky,開頭要加「MR」,但用了下列公式:
假設G行是會員性別,「郵遞收件人」公式為:
=SUBSTITUTE(IF(G3="男","Mr ",IF(G3="女","Ms ",""))&UPPER(LEFT(A3,FIND(" ", A3)))&PROPER(MID(A3,FIND(" ", A3)+1,IF(ISNUMBER(FIND(" ", A3,FIND(" ", A3)+1)),FIND(" ", A3,FIND(" ", A3)+1)-FIND(" ", A3)-1,LEN(A3)-FIND(" ", A3))))&IF(LEN(A3)-LEN(SUBSTITUTE(A3," ",""))>=2,
未能運算,答案表示左右括號沒有配合,怎樣解決?謝!
第二題問題:
邀請嘉賓名單例: A2= DR NGAN TAI MING, SAM , 改為A2=Dr NGAN Tai-ming,sam
B2=UPPER(LEFT(B2,FIND(" ", B2)))&PROPER(MID(B2,FIND(" ", B2)+1,IF(ISNUMBER(FIND(" ", B2,FIND(" ", B2)+1)),FIND(" ", B2,FIND(" ", B2)+1)-FIND(" ", B2)-1,LEN(B2)-FIND(" ", B2))))&IF(LEN(B2)-LEN(SUBSTITUTE(B2," ",""))>=2,"-"&LOWER(RIGHT(B2,LEN(B2)-FIND(" ", B2,FIND(" ", B2)+1))),"")
未能運用,「DR」沒有變「Dr」我做錯了,對嗎?請指正。謝!
第三題問題:
工作表1
A1=會員姓名:
A2=CHAN TAI MAN
C1=通訊地址(項目名稱)
C2=Rm 500 Kwan HXXX House KXXX Hing Estate KXXi CXXXX NT
C3=屯X青X徑6號好X大廈1X樓E室
現在要在C3=地址開頭加「寄:」屯X青X徑6號好X大廈1X樓E室及
C2=地址開頭加「To: 」Mr Chan Tai-man
Rm 500 Kwan HXXX House KXXX Hing Estate KXXi CXXXX NT
怎樣解決,怎樣設定公式,請教教,因我已經輸入了過3000會員地址,謝!