Hi all,
I am looking for a macro that can fill in a number of cells based on a specific value. For instance, a row is populated with 0's & 1's from lets say column A to N which cumalatives to 8. I want to extend this row until column Z by adding "X" to reach a cummulative of 17. That means that (without changing the values from A to N), there are 12 remaning cells until column Z is reached, to to add 9 to the cummulative. However, I want these values to be spread evenly accros the remaining 12 cells, and only integer.
This spread must be with the following patern, rounding up to the closest whole number returns a 1 or a 0:
[TABLE="width: 500"]
<tbody>[TR]
[TD]0.75
[/TD]
[TD]1.5
[/TD]
[TD]2.25
[/TD]
[TD]3
[/TD]
[TD]3.75
[/TD]
[TD]4.5
[/TD]
[TD]5.25
[/TD]
[TD]6
[/TD]
[TD]6.75
[/TD]
[TD]7.5
[/TD]
[TD]8.25
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
For each set from A to Z I wan to do the same. The next set AA to AZ has no values yet, because as stated before, only cells in columns A to N were populated. Again, i want to be able to insert an "X value" that would determine the spread and cumulative of that 'set'.
So finally you would have the possibility to insert an X for A to Z, AA to AZ, BA to BZ and so on.
I am not sure if this is even posible with macros or formulas, but I hope one of you could give me a solution to this!
I am looking for a macro that can fill in a number of cells based on a specific value. For instance, a row is populated with 0's & 1's from lets say column A to N which cumalatives to 8. I want to extend this row until column Z by adding "X" to reach a cummulative of 17. That means that (without changing the values from A to N), there are 12 remaning cells until column Z is reached, to to add 9 to the cummulative. However, I want these values to be spread evenly accros the remaining 12 cells, and only integer.
This spread must be with the following patern, rounding up to the closest whole number returns a 1 or a 0:
[TABLE="width: 500"]
<tbody>[TR]
[TD]0.75
[/TD]
[TD]1.5
[/TD]
[TD]2.25
[/TD]
[TD]3
[/TD]
[TD]3.75
[/TD]
[TD]4.5
[/TD]
[TD]5.25
[/TD]
[TD]6
[/TD]
[TD]6.75
[/TD]
[TD]7.5
[/TD]
[TD]8.25
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
For each set from A to Z I wan to do the same. The next set AA to AZ has no values yet, because as stated before, only cells in columns A to N were populated. Again, i want to be able to insert an "X value" that would determine the spread and cumulative of that 'set'.
So finally you would have the possibility to insert an X for A to Z, AA to AZ, BA to BZ and so on.
I am not sure if this is even posible with macros or formulas, but I hope one of you could give me a solution to this!