身份证的8个相关问题,你能否一次全搞定(含参考答案)

昨天13道日期相关的练习参考答案。

将标准日期转换成9种不同的显示方式,详见说明。

参考答案:

=TEXT(B4,"m/d")

=TEXT(B5,"yymmdd")

=2*TEXT(B6,"yy")&TEXT(B6,"mmdd")

=TEXT(B7,"ymmdd!7!2!0")

=TEXT(B8,"yymmdd")&TEXT(NOW(),"mmdd")

=TEXT(B9,"e年mm月dd日")

=TEXT(B10,"e.mm.dd")

=TEXT(B11,"e/m/d aaaa")

=TEXT(B12,"周aaa")

根据明细,按年、月、年月统计。

参考答案:

=SUMPRODUCT((YEAR($A$2:$A$35)=G3)*$D$2:$D$35)

=SUMPRODUCT((--TEXT($A$2:$A$35,"emm")=G9)*$D$2:$D$35)

=SUMPRODUCT((TEXT($A$2:$A$35,"e年m月")=L$2&$K3)*$D$2:$D$35)

增加点小难度,数字含有文本,按年统计。

参考答案:

=SUMPRODUCT((YEAR($A$2:$A$35)=G3)*1,$D$2:$D$35)

根据身份证,获取省份、地区、出生日期、性别、周岁、生肖、生日提示、星座。自己动手做完,再去文末看参考答案。

省份、地区可以根据地区码获取。

提取码:yudj

复制这段内容后打开百度网盘手机App,操作更方便哦

=VLOOKUP(LEFT(A2,2),地区码!A:B,2,0)

=VLOOKUP(LEFT(A2,6),地区码!A:B,2,0)

=TEXT(MID(A2,7,8),"0-00-00")

=IF(MOD(MID(A2,15,3),2),"男","女")

=DATEDIF(D2,NOW(),"y")

=MID("鼠牛虎兔龙蛇马羊猴鸡狗猪",MOD(TEXT(D2,"[$-130000]e")-4,12)+1,1)

=TEXT(TEXT(D2,"m-d")-TEXT(NOW(),"m-d"),"还有0天生日;;今天生日")

=LOOKUP(--TEXT(D2,"mdd"),{0,"摩羯座";121,"水瓶座";220,"双鱼座";321,"白羊座";421,"金牛座";522,"双子座";622,"巨蟹座";724,"狮子座";824,"处女座";924,"天秤座";1024,"天蝎座";1123,"射手座";1223,"摩羯座"})

作者:卢子,清华畅销书作者,《Excel效率手册 早做完,不加班》系列丛书创始人

(0)

相关推荐