I have been trying to find the best way of solving the problem without success. Any advice from the experts out there 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 (Volume) is met or nearly met. There will be very few circumstances where there is an exact match so the sum calculated needs to be as close as possible to the volume in Column E. 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 them partly by hand and using some formulas based on how a similar problem was solved on another forum an example of the data that should appear. (e.g. Starting at Raw Point 0, it took up to a Raw Point 25 to reach the sum volume of 3.97 which is the number closet to 4. If we had gone to raw Point 26 the total would have been 4.78 which is further away from 4 than 3.97).
For Segment 2, I need the start Raw Point to be 1 greater than the end Raw Point from segment 1. (e.g. starting at a Raw Point of 26, it took up to a Raw Point of 31 to reach a volume of 6.49 which is the number closet to 7). And so on.
Please let me know what are the best formulas to put into the yellow boxes. A very similar problem was solved on another forum - http://www.mrexcel.com/forum/excel-q...value-met.html. I have tried to replicate this but unfortunately this formula seems to fail when it reaches Segment 6 and beyond. Is there something I am doing wrong? Any help or advise with this will be appreciated
Bookmarks