excel 個數

Step 1 計算「單個條件」男性員工與女性員工分別數量,以及「雙重條件」30歲以上男性員工及30歲以上女性員工數量

Step 2 使用COUNTIF函數,輸入公式「=COUNTIF(搜尋範圍,條件)」,以範例來說就是「=COUNTIF(性別範圍,”男”)」,如果是女生,就將條件改成”女”

Step 3 如有多重條件,使用COUNTIFS函數,輸入公式「=COUNTIFS(搜尋範圍,條件,搜尋範圍2,條件2….)」,以範例來說就是「=COUNTIFS(性別範圍,”女”,年齡範圍,”>30″)」,如果是男生,就將條件改成”男”
總結:單個條件使用COUNTIF函數,多個條件使用COUNTIFS函數
【教學】Excel 如何計算男女員工人數?符合多個條件的個數?