We were so close!. But it appears that the assumed correct answer only works if there are no repeating N. The repeating N gets the same count as the last Y and it throws off the sum.
Please help again...
I have data in two seperate columns. For Example,
Rank........Column B2:B4........Column D2:D4
1...........300.....................Y
2...........200.....................Y
3...........100.....................N
4...........50.......................Y
Column D1 holds a value, say 2
I want to sum the numbers in B2:B4 if the corresponding value in D is Y, but only sum up to the number of in D1. In this case 2.
So the result should be 250
How do I do this sum and stop when another criteria is met.
Also note that I will be repeating this process across several Columns such as D2:D4. B2:B4 will be constant, but I will have E1 value and E2:E4 range, F1 value and F2:F4 range etc...
Bookmarks