These two complex equations are excellent examples of conditional functions in practice. All cells that satisfy specified requirements are added by SUMIF, and all such cells are counted by COUNTIF. Consider the scenario where you want to determine the number of bottles of champagne you will need for a client event by counting all cells. As seen in the screenshot below, COUNTIF is an advanced method that you may employ.