How to sum a column until a condition is met in adjacent column in Excel?
As bellow screenshot shown, you want to sum numbers in column B until reaching a certain value D in adjacent column of column A. Here you will sum number 2+2+3+4 in column B in Excel. This tutorial will introduce method for you to achieve it step by step.
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
The following formula will help you sum a column until a condition is met in adjacent column in Excel. Please do as follows.
1. Select a blank cell for placing the summing result, then enter formula =SUM(B1:INDEX($B$1:$B$6,MATCH(D2,$A$1:$A$6,0))) into the Formula Bar, and then press the Enter key to get the result. See screenshot:
Note: In the formula, $B$1:$B$6 is the range you need to sum, D2 is the summing condition, and $A$1:$A$6 is the adjacent column which contains the summing condition. Please change them as you need.