當(dāng)前位置:財(cái)稅問題 >
實(shí)務(wù)
問題已解決
考勤算出勤天數(shù)用什么函數(shù),除了考勤報離職不算內(nèi),其他都拉入工時中



COUNTIF 函數(shù):統(tǒng)計(jì)滿足條件單元格數(shù)量,如 “=COUNTIF (A:A,出勤)” 統(tǒng)計(jì) A 列中 “出勤” 個數(shù)。
SUM 函數(shù):計(jì)算區(qū)域數(shù)字之和,如考勤數(shù)據(jù)用 “1”“0” 表示出勤與否,“=SUM (B:B)” 可算出勤天數(shù)。
IF 函數(shù):按條件判斷返回對應(yīng)內(nèi)容,如 “=IF (C:C=出勤,1,0)” 判斷 C 列是否 “出勤”,是則返回 1,否則 0。
排除離職情況,可用 COUNTIFS 函數(shù),如 “=COUNTIFS (A:A,出勤,D:D,否)” 統(tǒng)計(jì) A 列 “出勤” 且 D 列 “否”(未離職)的天數(shù)。
02/20 14:34
