回覆列表
  • 1 # 小綿羊丶咩咩乀

      方法:  用IF函式:在A2欄輸入手機號,在C2欄輸入該公式=IF(AND(MID(A2,8,1)=MID(A2,9,1),MID(A2,10,1)=MID(A2,11,1)),"AABB",IF(MID(A2,8,3)="000","000A",IF(RIGHT(A2,1)=MID(A2,10,1),"AA",IF(AND(MID(A2,8,1)=MID(A2,10,1),MID(A2,9,1)=MID(A2,11,1)),"ABAB",IF(AND((MID(A2,10,1)-MID(A2,9,1))=1,MID(A2,11,1)-MID(A2,10,1)=1),"ABC",IF(AND(MID(A2,8,1)=MID(A2,11,1),MID(A2,9,1)=MID(A2,10,1)),"ABBA","")))))) 詳見附檔舉例 補充尾數為8的也是靚號的公式=IF(AND(MID(A2,8,1)=MID(A2,9,1),MID(A2,10,1)=MID(A2,11,1)),"AABB",IF(MID(A2,8,3)="000","000A",IF(RIGHT(A2,1)=MID(A2,10,1),"AA",IF(AND(MID(A2,8,1)=MID(A2,10,1),MID(A2,9,1)=MID(A2,11,1)),"ABAB",IF(AND((MID(A2,10,1)-MID(A2,9,1))=1,MID(A2,11,1)-MID(A2,10,1)=1),"ABC",IF(AND(MID(A2,8,1)=MID(A2,11,1),MID(A2,9,1)=MID(A2,10,1)),"ABBA",IF(RIGHT(A2,1)="8","8","")))))))附件:IF.xls

  • 中秋節和大豐收的關聯?
  • 酸奶花樣吃法?