How to use the SUMIF and AVERAGEIF formulas. SUMIF formula sums all the cells from one column that fulfils a pre-defined condition. AVERAGEIF formula finds the average among all the cells from one column that fulfils a pre-defined condition. We also introduce SUMIFS and AVERAGEIFS formulas. These formulas calculate the total or the average (respectively) of all the cells from one column that fulfil multiple pre-defined conditions OR multiple columns that fulfil one pre-defined condition.