Overview
- I’m a sales manager for a makeup company and have summarized for each sales transaction the following information: salesperson, date of sale, units sold (or returned), total price received (or paid out for returns). How can I answer the following questions?
- What was the total dollar amount of merchandise sold by each salesperson?
- How many units were returned?
- What was the total dollar volume sold in 2005 or later?
- How many units of lip gloss were sold?
- How much revenue did lip gloss sales bring in?
- What dollar amount of sales were not made by Jen?
If you want to sum all the entries in one column (or row) that match criteria-that depend on another column (or row), the SUMIF function gets the job done. The syntax of the SUMIF function is SUMIF(range, criteria, [sum range]).
- Range is the range of cells that you want to evaluate with a criterion.
- Criteria is a number, date, or expression that determines whether a given cell in the sum range is added.
- Sum range is the range of cells that are added. If sum range is omitted, it is assumed to be the same as range.
The rules for criteria you can use with the SUMIF function are identical to the rules used with the COUNTIF function. For information about the COUNTIF function, see post The COUNTIF, COUNT, COUNTA, and COUNTBLANK Functions.
Read the rest of this post »