Cumulative sum from the bottom row

juju

Board Regular
Joined
Mar 13, 2008
Messages
175
Hello - In excel, I have a column, E, with values. I'd like to find the sum of values from the last non blank row (summing upwards), where the sum is the closest to a predefined defined value, say 2,500. The values in row E, start at row 6, from the top. The column might also have blanks and non numeric values. I'd also like to return the range for the cells with whose sum from the last value upwards matches my predefined number.

I am doing this in excel online only so array formulas wont work.

ps: I haven't been here in years, however it is interesting to note that using chatgpt, I couldn't come up with an answer for this! I remembered the excellent help I have received here in years past and here I am again! Great resource!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Can you attach a sample of your data using the XL2BB tool? I can't visualize your request from what you described.
 
Upvote 0
@Asbestos_Jen Here it is:

Col 1Col 2Col 3
2,6235,979
2,0941,266
7052,669
4,1653,084
4,9189,549
7364,952
9815,905
3,1569,192
3,757936
3,5087,991
4,0386,503
3,7981,201
3,171753
3,4021,890
3,5085,244
4,9859,246


I'd like to find out two things:
  1. For each row value in col 3, starting from the same row in col 1 and summing upwards, which summation value is closest to the row value in col 3? For example, for the value 9,246 in col 3, it will be 4,985 + 3,508 .
  2. What is the range of cells in col 1 for the question above? I will use that range in col 2 for another calculation.

hope this helps! FYI - Col 1 sometimes have blank cell values or "-"
 
Upvote 0
I can't see a way to do this with formulae. You might need a VB solution, but I don't think that works with excel online, and I'm not equipped to help with that. Good luck!
 
Upvote 0
@juju , would you mind sharing your overall objective? What is the 2nd step you're referring to? Maybe there is another way one of the forum members can propose to help you address your problem?
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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