Range - the group of cells the function is to search. Criteria - this value is compared with the data in the Range cells. If a match is found then the cell in the Range is counted. Actual data or the cell reference to the data can be entered for this argument. You can do a COUNTIF on the outcome of some Data or Election result. Example: In column A, enter "Party" and type APC, SDP,NRC and PDP.
SUMIF condition
in cells A2 to A5. Replicate A2:A5 on A6:A9. Column B is Votes Counted and in cells B2:B9 and enter 100,345,546,768,34,987,175 and 40 respectively with total votes at 3000. Repeat A2:A5 on A12:A15 and in cell B12, type this formula. SUMIF($A$2: $B$9,A12,$B$2: $B$9) and drag down to cell B15. Add up this values to confirm that is gives you same 3000. When u v large data, with SUMIF, its just fun.