Sum values in horizontal range in Excel
To sum numbers in horizontal range based on a condition, you can apply the SUMIFS function.
How to sum values in horizontal range in Excel?
Suppose you have an order quantity table as shown in the screenshot below, to sum the total quantity of KTE or KTW sold per day, you can try the following formula.
=SUMIFS(sum_range, criteria_ranges, criteria)
Sum_range: A range that you want to sum values horizontally based on a criterion.
Criteria_range: The range of cells that you want evaluated by the criteria;
Note: Make sure both the sum_range and criteria_range are the same dimensions.
Criteria: The criterion defines which values in the Criteria_range will be summed.
How to use this formula?
Select a cell, enter the formula below and press the Enter key to get the result. Select this result cell and then drag its AutoFill Handle down then right to get the subtotals of other horizontal ranges,
1) In the formula, $C5:$H5 is the sum range which is a mixed reference with columns locked;
2) $C$4:$H$4 is the criteria range which is an absolute reference;
3) J$4 is the cell containing the criteria which is a mix reference with the row locked;
4) You can type the criteria directly into the formula and enclose it in double-quotes.
The Best Office Productivity Tools
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Please leave your comments in English