04-16-2020 06:47 AM
04-16-2020 06:47 AM
I have attached a worksheet that illustrates the two problems that I am having. The spreadsheet has comments in cells that shows what I am trying to accomplish. The spreadsheet is just an example of the real life spreadsheet which is several thousands of rows (and more to be added) and 60 columns that need to do this equation. Feel free to add as many columns as needed to solve the problem but the solution needs to be contained in each row.
My Grandson ( the smartest person in my family) couldn't solve the problem and he is my only resource. Any help would be greatly appreciated.
Thanks in Advance
04-16-2020 07:29 AM
Jack, variant of calculations is in next columns:
and drag them down till end of range.
and also drag it down.
04-16-2020 07:56 AM
Thank you so much for your quick response. Let me ask is it possible for the calculation to be at the bottom as an example have the 4 that I had in C14 be located at C19? In addition when I tried your solution for F2 and I dragged down it didn’t result in any totals is just put 0 in the cell.
04-17-2020 06:53 AM
I have one last issue. I don't know the formula to accomplish my example in the E Column Rows 20-63 of the attached worksheet. I thought I was going to be able adapt the other formula to use here but it is beyond my skills. Any help would be greatly appreciated. I have highlighted the area in yellow that contains the issue
04-17-2020 07:17 AM
Jack, sorry, but I didn't catch the logic.
- why first number appears in E26, next series starts at E34, etc
- why it is nothing between E41 and E52
- why zero is in E30, E36 but not in E41, E63?
Perhaps other similar question, for me general logic is not clear.
04-18-2020 02:33 AM
I'd suggest to add helper column D
and next column E will be as
=IF( (IF($B21,1-$E$13,D21+1) <1) + (IF($B21,1-$E$13,D21+1) >$E$15), 0, INDEX($E$2:$E$11,IF($B21,1-$E$13,D21+1)) )
formulas start from row 22, drag them down till end of the range.
I forgot to adjust these formulas for very first row (#21 here), thus to simplify let consider it as helper row in which A21 and B21 are always equal to 1.