papichulo2nite
New Member
Hello All,
I have seen some awesome solutions on here but have not been able to find my scenario.
I need to sum the values in a column until they reach a maximum number less than the given value (1348), report that max value (1325), and then do it again starting where the last one left off(1250) until the end of the column (700).
Here is the example:
PSF Max PSF= 1348
1000 x
325 x Sum x's = 1325
300 xx
275 xx
250 xx
225 xx Sum xx's = 1250
200 xx
175 xxx
150 xxx
125 xxx Sum xxx's = 700
100 xxx
75 xxx
50 xxx
25 xxx
0 xxx
Hope the question is clear. I know this can be done without VB and that is what I need. I have played with MMult and found another post with the following:
=MIN(IF(SUBTOTAL(9,OFFSET($A$1,0,0,1,COLUMN($A$1:$F$1)))>=A2,SUBTOTAL(9,OFFSET($A$1,0,0,1,COLUMN($A$1:$F$1)))))
which worked for summing a row but I could not get it to work out for what I was trying to do
I have seen some awesome solutions on here but have not been able to find my scenario.
I need to sum the values in a column until they reach a maximum number less than the given value (1348), report that max value (1325), and then do it again starting where the last one left off(1250) until the end of the column (700).
Here is the example:
PSF Max PSF= 1348
1000 x
325 x Sum x's = 1325
300 xx
275 xx
250 xx
225 xx Sum xx's = 1250
200 xx
175 xxx
150 xxx
125 xxx Sum xxx's = 700
100 xxx
75 xxx
50 xxx
25 xxx
0 xxx
Hope the question is clear. I know this can be done without VB and that is what I need. I have played with MMult and found another post with the following:
=MIN(IF(SUBTOTAL(9,OFFSET($A$1,0,0,1,COLUMN($A$1:$F$1)))>=A2,SUBTOTAL(9,OFFSET($A$1,0,0,1,COLUMN($A$1:$F$1)))))
which worked for summing a row but I could not get it to work out for what I was trying to do