Tip Printed from ExcelTip.com
Summarize data according to criteria from the data table using Sumif formula, Offset formula and Combo Box in Microsoft Excel


The SUMIF formula summarizes data according to criteria. The OFFSET formula enables us to change the reference. The combination of the two formulas and the addition of a Combo Box allow you to easily summarize data according to criteria from the data table.

Example
Task: Summarize the Profit and Loss by P&L items (see P&L screen shot, column B) for the month of January 2001 or any other month that you choose.

Step 1: Specify a name for column B in the worksheet. Step 2: The SUMIF formula Problem Step 3: The OFFSET formula Step 4: Combining the OFFSET and SUMIF formulas Step 5: Combo box (read more how to add Combo Box)