Sum portions of a column until a certain value is met

jkm5z6

New Member
Joined
Feb 7, 2013
Messages
3
Here's what I need help with. Any advice would be greatly appreciated.

For Segment 1 (Column D), I need a formula which sums the volumes in column B until the SumTotal Volume in Column E is met. Whichever cell in column B is added last to reach the necessary sum, I need the adjacent cell from column A to be input into the yellow box in Column G. I've done the first two by hand as an example. (e.g. Starting at height 0, it took up to a height of 10 to reach the sum volume of 5000.)

For Segment 2, I need the start height to be 1 greater than the end height from segment 1. (e.g. starting at a height of 11, it took up to a height of 16 to reach a volume of 7500)

Please let me know what formulas to put into the yellow boxes.

I would prefer not to use VBA as I'm unfamiliar with it. Thank you for the help.
A
B
C
D
E
F
G
1
Height
Volume
Segment
Volume
Start Height
End Height
2
0
21
1
5000
0
10
3
1
130
2
7500
11
16
4
2
225
5
3
322
6
4
420
7
5
517
8
6
615
9
7
712
10
8
809
11
9
904
12
10
998
13
11
1093
14
12
1189
15
13
1287
16
14
1386
17
15
1486
18
16
1587
19
17
1691
20
18
1795
21
19
1901
22
20
2007

<TBODY>
</TBODY>
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
does this work?

Excel 2010
DEFGH
1SegmentVolumeStart HeightEnd Height
2150000105673
32750011168028
Sheet1
Cell Formulas
RangeFormula
H2=SUMPRODUCT(--($A$2:$A$22<=10),($B$2:$B$22))
H3=SUMPRODUCT(--($A$2:$A$22>10),--($A$2:$A$22<=16),($B$2:$B$22))
 
Upvote 0
I need the formulas that go into G2 & G3 that yield the 10 & 16 that I manually solved here. Those values need to be found by using the values in E2 & E3.

does this work?
Excel 2010
DEFGH
1SegmentVolumeStart HeightEnd Height
2150000105673
32750011168028

<COLGROUP><COL><COL><COL><COL><COL><COL></COLGROUP><THEAD>
</THEAD><TBODY>
</TBODY>
Sheet1

Worksheet Formulas
CellFormula
H2=SUMPRODUCT(--($A$2:$A$22<=10),($B$2:$B$22))
H3=SUMPRODUCT(--($A$2:$A$22>10),--($A$2:$A$22<=16),($B$2:$B$22))

<THEAD>
</THEAD><TBODY>
</TBODY>

<TBODY>
</TBODY>
 
Upvote 0
I need the formulas that go into G2 & G3 that yield the 10 & 16 that I manually solved here. Those values need to be found by using the values in E2 & E3.

Try:
Excel 2010
ABCDEFGH
1HeightVolumeSegmentVolumeStart HeightEnd Height
2021150000105673
311302750011168028
42225
53322
64420
75517
86615
97712
108809
119904
1210998
13111093
14121189
15131287
16141386
17151486
18161587
19171691
20181795
21191901
22202007
Sheet1
Cell Formulas
RangeFormula
G2{=INDEX($A$1:$A$22,MATCH(TRUE,SUBTOTAL(9,OFFSET($B$1,MATCH(F2,$A$2:$A$22,0),0,ROW($B$1:$B$22)-ROW($B$1)+1))>$E2,0))+F2+1}
Press CTRL+SHIFT+ENTER to enter array formulas.


Credit to Aladin for tips on SUBTOTAL formula.
 
Upvote 0
That did it. thanks for the help

Try:Excel 2010
ABCDEFGH
1HeightVolumeSegmentVolumeStart HeightEnd Height
2021150000105673
311302750011168028
42225
53322
64420
75517
86615
97712
108809
119904
1210998
13111093
14121189
15131287
16141386
17151486
18161587
19171691
20181795
21191901
22202007

<COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP><THEAD>
</THEAD><TBODY>
</TBODY>
Sheet1

Array Formulas
CellFormula
G2{=INDEX($A$1:$A$22,MATCH(TRUE,SUBTOTAL(9,OFFSET($B$1,MATCH(F2,$A$2:$A$22,0),0,ROW($B$1:$B$22)-ROW($B$1)+1))>$E2,0))+F2+1}

<THEAD>
</THEAD><TBODY>
</TBODY>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<TBODY>
</TBODY>



Credit to Aladin for tips on SUBTOTAL formula.
 
Upvote 0
20152016
Event Point Value1111221212212221121212211112122122122211212122
Date27-Jan24-Feb31-Mar28-Apr3-May26-May30-May30-Jun18-Jul25-Jul28-Jul1-Aug8-Aug22-Aug25-Aug29-Sep10-Oct27-Oct7-Nov24-Nov5-Dec8-Dec26-Jan23-Feb29-Mar26-Apr7-May31-May4-Jun10-Jun28-Jun16-Jul23-Jul26-Jul30-Jul6-Aug13-Aug30-Aug27-Sep8-Oct25-Oct5-Nov29-Nov
Last NameFirst NameFull NameJanuary MeetingFebruary MeetingMachr MeetingApril MeetingEvent 1Event 2May MeetingEvent 3June MeetingEvent 4Event 5July MeetingEvent 6Event 7Event 8August MeetingSeptember MeetingEvent 9October MeetingEvent 10November MeetingEvent 11Event 12January MeetingFebruary MeetingMarch MeetingApril MeetingEvent 1May MeetingEvent 2Event 3June MeetingEvent 4Event 5July MeetingEvent 6Event 7Event 8August MeetingSeptember MeetingEvent 9October MeetingEvent 10November MeetingEvent 11Event 12
Last1First1First1 Last1X
Last2First2First2 Last2
Last3First3First3 Last3
Last4First4First4 Last4XXXXXXXXXXXXXXXXXX
Last5First5First5 Last5XXXXXXXXXXXXXX
Last6First6First6 Last6XX
Last7First7First7 Last7X
Last8First8First8 Last8XXX

<tbody>
</tbody>

As you can see from the above table, I am keeping attendance records for a club that I am a member of. An X in a column above indicates that they attended an event and the number in row 2 indicates the number of points that event is worth. Membership is based upon participation. Once a person has gotten 5 points they have achieved membership. In 2015 they are earning their 2016 membership. If they fail to attain 2016 membership in 2015, they can earn points in 2016 toward their 2016 membership (and by very definition they will have gotten their 2017 membership). I have a second sheet below where I have brought over their names and totaled their points for 2015 and 2016 respectively in columns B and C. I then calculate whether they have attained 2016 membership in column D. What I am having difficulty with, is capturing the event that earned their membership (the event once the 5 points was earned), and the date that membership was earned (in columns E and F). Points earned in 2015 and 2016 are not cumulative, meaning that the counters start over at the end of December each year. I am not looking for a VB solution as I am not at all versed in it. I am looking for formulas already available in Excel. Can anyone assist me in developing formulas for columns E and F of the second sheet?


Full Name2015 Points2016 Points2016 MembershipEvent that earned membershipDate Membership was Earned
First1 Last110
First2 Last200
First3 Last300
First4 Last4159Y
First5 Last5710Y
First6 Last611
First7 Last701
First8 Last821

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,381
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top