R
Rad
Hi,
I am looking for an advice on this challenging algorithm.
I have a column in ms excel sheet and has the numbers from 1 – 30, and I
need to use vba code to allow the user to be able to change a number at a
time. Then as soon as it is changed, the column numbers need the change
so
there is no duplicate numbers in the column. In other words, the column
numbers 1- 30 must have only a number of each.
Any advice will be appreciated.
I thought about swapping, but the number next to the changed number must
be
reduced by a number until the number that has been changed from is
reached.
Here is an example:
Original Changed Changed Again
1 1 1
2 2 2
3 3 10
4 4 3
5 9 9
6 5 4
7 6 5
8 7 6
9 8 7
10 10 8
I am looking for an advice on this challenging algorithm.
I have a column in ms excel sheet and has the numbers from 1 – 30, and I
need to use vba code to allow the user to be able to change a number at a
time. Then as soon as it is changed, the column numbers need the change
so
there is no duplicate numbers in the column. In other words, the column
numbers 1- 30 must have only a number of each.
Any advice will be appreciated.
I thought about swapping, but the number next to the changed number must
be
reduced by a number until the number that has been changed from is
reached.
Here is an example:
Original Changed Changed Again
1 1 1
2 2 2
3 3 10
4 4 3
5 9 9
6 5 4
7 6 5
8 7 6
9 8 7
10 10 8