Excel筛选手机号码运营商公式(筛选移动联通电信)

需求背景:自动判断手机中导出的Excel联系人的运营商

解决方案:

一、确保“手机号码”列(A列)为文本

二、新建“手机号码首三位”列(B列,本列设置为数字格式),公式:=LEFT(A1,3)*1

三、新建“运营商”列(C列),公式:

=LOOKUP(B1,{130,131,132,133,134,135,136,137,138,139,150,151,152,153,155,156,157,158,159,180,185,186,187,188,189},{"联通","联通","联通","电信","移动","移动","移动","移动","移动","移动","移动","移动","联通","电信","联通","联通","移动","移动","移动","电信","联通","联通","移动","移动","电信"})

解决方案(简化版):

一、确保“手机号码”列(A列)为文本

二、新建“运营商”列(B列),公式:

=LOOKUP(LEFT(B2,3)*1,{130,131,132,133,134,135,136,137,138,139,150,151,152,153,155,156,157,158,159,180,185,186,187,188,189},{"联通","联通","联通","电信","移动","移动","移动","移动","移动","移动","移动","移动","联通","电信","联通","联通","移动","移动","移动","电信","联通","联通","移动","移动","电信"})

[via]

评论

Popular Posts

如何提高情商(EQ)

地方门户网站项目可行性分析

快乐来自于做出「舍弃」的能力

2009年即将流行的牛逼语录:经典的我都无语了(转载)

小清新必须死

SolveigMM Video Splitter - 无损视频编辑工具(视频剪辑,合并等)

《挪威的森林》精彩篇章:永远记得我

PSP3000破解问世

不要再Best Regards了!英文Email四大问题

聪明处事72招