試用期到期時(shí)間提醒 =IF(AND(A2-TODAY()<=10,A2-TODAY()>0),"還有"&A2-TODAY()&"天到期","") 說明:1、在A2單元格(視具體表格而定, 替換A2)內(nèi)輸入日期格式的試用期到期時(shí)間; 勞動(dòng)合同到期時(shí)間提醒 =IF(AND(A2-TODAY()<=60,A2-TODAY()>0),"還有"&A2-TODAY()&"天到期","") 說明:1、在A2單元格(視具體表格而定, 替換A2)內(nèi)輸入日期格式的合同到期時(shí)間; 由身份證號碼自動(dòng)生成年齡 =IF(LEN(A2)>15,YEAR(NOW())-MID(A2,7,4),YEAR(NOW())-(MID(A2,7,2)+1900)) 說明:1、在A2單元格(視具體表格而定,替換A2)內(nèi)輸入身份證號碼; 由身份證號碼自動(dòng)生成性別 =IF($(A2)=0," ",IF(LEN($(A2))=18,IF(MOD(VALUE(MID($(A2),17,1)),2)=1,"男","女"),IF(MOD(VALUE(MID($(A2),15,1)),2)=1,"男","女"))) 說明:1、在A2單元格(視具體表格而定,替換A2)內(nèi)輸入身份證號碼; 由入職時(shí)間自動(dòng)生成工齡 =IF(MONTH(NOW())>MONTH(A2),YEAR(NOW())-YEAR(A2),YEAR(NOW())-YEAR(A2)-1)&"年零"&IF(MONTH(NOW())>MONTH(A2),MONTH(NOW())-MONTH(A2),MONTH(NOW())+12-MONTH(A2))&"個(gè)月" 說明:1、在A2單元格(視具體表格而定,替換A2)內(nèi)輸入日期格式的入職時(shí)間; |
|