Hello,
I posted a similar question on here last week regarding how to sum up a varying amount of rows based on a user's input. Here is the post:
Hello,
I am trying to figure out a way to sum a varying amount of rows in excel based on a user input. I will post the images of my spreadsheet below to allow for a better visual representation. In the far left column, are values from 1 to 20. You will then notice in the near left column, the "Properties" column and another three values, just to the right of it. The second row and near right column of the table counts the total number of values that have been placed in the far left column, obviously it is currently 20 values that I have called "conditions". The third row and near right column number, is used as a user input. In this case the user wants the total number of conditions consolidated down to five total conditions. Finally, the fourth row and near right column number calculates the total number of conditions that need to be placed into "bins", a simple division calculation (total conditions/new conditions). So, depending on what the number that the fourth row and near right column contains, will be the amount of conditions that are summed together.
For both tables that I have placed below, assume the top row, far left column is cell A1. For the first table below, because the number of conditions per bin is four, I need four rows per summation. In this case, I would need sum(A2:A5), sum(A6:A9), sum(A10:A13), sum(A14:A17), and sum(A18:A21) to be performed. I have also highlighted the numbers that will correspond to each bin in different colors to allow for a better understanding.
[TABLE="class: cms_table_grid, width: 500, align: center"]
<tbody>[TR]
[TD]#[/TD]
[TD]Properties[/TD]
[TD][/TD]
[TD]New Sum[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Total Conditions[/TD]
[TD]20[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]New amount of conditions[/TD]
[TD]5[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Number of conditions per bin[/TD]
[TD]4[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In the next table below, the difference is that the user now wants only four conditions, so now there will be five conditions per bin. In this case, sum(A2:A6), sum(A7:A11), sum(A12:A16), and sum(A17:A21) will need to be performed. I have highlighted the values in different colors to represent the summations visually.
[TABLE="class: cms_table_grid, width: 500, align: center"]
<tbody>[TR]
[/TR]
[TR]
[TD]#[/TD]
[TD]Properties[/TD]
[TD][/TD]
[TD]New Sum[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Total Conditions[/TD]
[TD]20[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]New amount of conditions[/TD]
[TD]4[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Number of conditions per bin[/TD]
[TD]5[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]20
[/TD]
[/TR]
</tbody>[/TABLE]
My question is, is there a function or <acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-bottom-style: dotted; border-bottom-color: rgb(0, 0, 0); cursor: help; color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">VBA</acronym> coding out there that would allow me to perform these operations with only the user input. In other words, so that I do not have to manually perform all of those sum functions for each row. Please let me know. Thanks!
I eventually got the answer of:
=SUM(OFFSET($A$2,(ROWS($1:1)-1)*$C$4,0,$C$4,1))
A2 is the first cell to sum
C4 contains the number of cells for each sum (4 in your example)
Which proved to be correct. To expand upon this question, however, how would I be able to do the following. Again, assume the top left cell is A1.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]#[/TD]
[TD]Properties[/TD]
[TD][/TD]
[TD]New Sum[/TD]
[TD]#[/TD]
[TD]Properties[/TD]
[TD][/TD]
[TD]New Sum[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Total Conditions for column A[/TD]
[TD]10[/TD]
[TD]=sum(A2:A6)[/TD]
[TD][/TD]
[TD]Total Conditions for column E[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]New amount of conditions[/TD]
[TD]2[/TD]
[TD]=sum(A7:A11)[/TD]
[TD][/TD]
[TD]New amount of conditions[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Number of conditions per bin[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Number of conditions per bin[/TD]
[TD]2[/TD]
[TD]=sum(E12:E13)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=sum(E14:E15)[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=sum(E16:E17)[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=sum(E18:E19)[/TD]
[/TR]
[TR]
[TD]7[/TD]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][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
To explain the above visual, I would like the numerical data in column A to be summed up the same way. In this case, the summing calculations are taking place in column D for the numerical data in column A. I would like the numerical data in column E, however, to be summed up in its respective way, in this case in column H and placed one row below the last summing calculation that is taking place in column D. In other words, in this case the last summing calculation for column A is taking place in cell D3. With this, I want the first summing calculation for column E to take place in cell H4. Is there an excel function that can be used for this operation, and/or how can I potentially adjust the previous formula that has been given to me? Please let me know. Thanks.
I posted a similar question on here last week regarding how to sum up a varying amount of rows based on a user's input. Here is the post:
Hello,
I am trying to figure out a way to sum a varying amount of rows in excel based on a user input. I will post the images of my spreadsheet below to allow for a better visual representation. In the far left column, are values from 1 to 20. You will then notice in the near left column, the "Properties" column and another three values, just to the right of it. The second row and near right column of the table counts the total number of values that have been placed in the far left column, obviously it is currently 20 values that I have called "conditions". The third row and near right column number, is used as a user input. In this case the user wants the total number of conditions consolidated down to five total conditions. Finally, the fourth row and near right column number calculates the total number of conditions that need to be placed into "bins", a simple division calculation (total conditions/new conditions). So, depending on what the number that the fourth row and near right column contains, will be the amount of conditions that are summed together.
For both tables that I have placed below, assume the top row, far left column is cell A1. For the first table below, because the number of conditions per bin is four, I need four rows per summation. In this case, I would need sum(A2:A5), sum(A6:A9), sum(A10:A13), sum(A14:A17), and sum(A18:A21) to be performed. I have also highlighted the numbers that will correspond to each bin in different colors to allow for a better understanding.
[TABLE="class: cms_table_grid, width: 500, align: center"]
<tbody>[TR]
[TD]#[/TD]
[TD]Properties[/TD]
[TD][/TD]
[TD]New Sum[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Total Conditions[/TD]
[TD]20[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]2[/T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[TD][/TD]
[/TR]
</tbody>[/TABLE]
In the next table below, the difference is that the user now wants only four conditions, so now there will be five conditions per bin. In this case, sum(A2:A6), sum(A7:A11), sum(A12:A16), and sum(A17:A21) will need to be performed. I have highlighted the values in different colors to represent the summations visually.
[TABLE="class: cms_table_grid, width: 500, align: center"]
<tbody>[TR]
[/TR]
[TR]
[TD]#[/TD]
[TD]Properties[/TD]
[TD][/TD]
[TD]New Sum[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Total Conditions[/TD]
[TD]20[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]New amount of conditions[/TD]
[TD]4[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Number of conditions per bin[/TD]
[TD]5[/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]=?[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]20
[/TD]
[/TR]
</tbody>[/TABLE]
My question is, is there a function or <acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-bottom-style: dotted; border-bottom-color: rgb(0, 0, 0); cursor: help; color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">VBA</acronym> coding out there that would allow me to perform these operations with only the user input. In other words, so that I do not have to manually perform all of those sum functions for each row. Please let me know. Thanks!
I eventually got the answer of:
=SUM(OFFSET($A$2,(ROWS($1:1)-1)*$C$4,0,$C$4,1))
A2 is the first cell to sum
C4 contains the number of cells for each sum (4 in your example)
Which proved to be correct. To expand upon this question, however, how would I be able to do the following. Again, assume the top left cell is A1.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]#[/TD]
[TD]Properties[/TD]
[TD][/TD]
[TD]New Sum[/TD]
[TD]#[/TD]
[TD]Properties[/TD]
[TD][/TD]
[TD]New Sum[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Total Conditions for column A[/TD]
[TD]10[/TD]
[TD]=sum(A2:A6)[/TD]
[TD][/TD]
[TD]Total Conditions for column E[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]New amount of conditions[/TD]
[TD]2[/TD]
[TD]=sum(A7:A11)[/TD]
[TD][/TD]
[TD]New amount of conditions[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Number of conditions per bin[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Number of conditions per bin[/TD]
[TD]2[/TD]
[TD]=sum(E12:E13)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=sum(E14:E15)[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=sum(E16:E17)[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=sum(E18:E19)[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=sum(E20:E21)[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]16[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]17[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
To explain the above visual, I would like the numerical data in column A to be summed up the same way. In this case, the summing calculations are taking place in column D for the numerical data in column A. I would like the numerical data in column E, however, to be summed up in its respective way, in this case in column H and placed one row below the last summing calculation that is taking place in column D. In other words, in this case the last summing calculation for column A is taking place in cell D3. With this, I want the first summing calculation for column E to take place in cell H4. Is there an excel function that can be used for this operation, and/or how can I potentially adjust the previous formula that has been given to me? Please let me know. Thanks.