Hi,
[pre]
[/pre]
Column A is simple serial nos.
I am wondering there is any way that if i randomly select any no of cells ( i.e. 1-4 or 1-6 or 1-3 ) & then run a macro then a single cell move upwards with minimum row value of column A ( i.e if i select row 1-5 then move to row 1, if i select row 3-6 then it move to row 3)
rows move upwards obeying these conditions,
they are
1) if row B value is true then move upward.(take values as cell color )
2)if there are multiple B value true then if there is C value is true then it move upwards.
3)if there is no B value true & there is C value true then it move upwards.
4)if no B & C values true then rows remain same as their A values i.e. serial nos.
[pre]
Code:
A B C D
1
2
3
4
5
6
Column A is simple serial nos.
I am wondering there is any way that if i randomly select any no of cells ( i.e. 1-4 or 1-6 or 1-3 ) & then run a macro then a single cell move upwards with minimum row value of column A ( i.e if i select row 1-5 then move to row 1, if i select row 3-6 then it move to row 3)
rows move upwards obeying these conditions,
they are
1) if row B value is true then move upward.(take values as cell color )
2)if there are multiple B value true then if there is C value is true then it move upwards.
3)if there is no B value true & there is C value true then it move upwards.
4)if no B & C values true then rows remain same as their A values i.e. serial nos.