likexl
New Member
- Joined
- May 7, 2011
- Messages
- 18
Hello,
How one can achive solution in the following situation:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]ID
[/TD]
[TD]STATUS
[/TD]
[TD]DAY1
[/TD]
[TD]DAY2
[/TD]
[TD]Day3
[/TD]
[TD]Day4
[/TD]
[TD]DAy5
[/TD]
[/TR]
[TR]
[TD]H1
[/TD]
[TD]PASSIVE
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]H2
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]500
[/TD]
[/TR]
[TR]
[TD]H1
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]500
[/TD]
[TD][/TD]
[TD]200
[/TD]
[/TR]
[TR]
[TD]H3
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]200
[/TD]
[TD][/TD]
[TD][/TD]
[TD]500
[/TD]
[/TR]
[TR]
[TD]H4
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]200
[/TD]
[TD]500
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
After executing vba code following is expected:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]ID
[/TD]
[TD]STATUS
[/TD]
[TD]DAY1
[/TD]
[TD]DAY2
[/TD]
[TD]Day3
[/TD]
[TD]Day4
[/TD]
[TD]DAy5
[/TD]
[/TR]
[TR]
[TD]H1
[/TD]
[TD]PASSIVE
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]H2
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]500
[/TD]
[/TR]
[TR]
[TD]H1
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]500
[/TD]
[TD]500
[/TD]
[TD]200
[/TD]
[/TR]
[TR]
[TD]H3
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]200
[/TD]
[TD]200
[/TD]
[TD]200
[/TD]
[TD]500
[/TD]
[/TR]
[TR]
[TD]H4
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]200
[/TD]
[TD]500
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Id can be duplicate, but id active will be unique.
Value in the empty cell filled will based on previous.
Thanks.
How one can achive solution in the following situation:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]ID
[/TD]
[TD]STATUS
[/TD]
[TD]DAY1
[/TD]
[TD]DAY2
[/TD]
[TD]Day3
[/TD]
[TD]Day4
[/TD]
[TD]DAy5
[/TD]
[/TR]
[TR]
[TD]H1
[/TD]
[TD]PASSIVE
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]H2
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]500
[/TD]
[/TR]
[TR]
[TD]H1
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]500
[/TD]
[TD][/TD]
[TD]200
[/TD]
[/TR]
[TR]
[TD]H3
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]200
[/TD]
[TD][/TD]
[TD][/TD]
[TD]500
[/TD]
[/TR]
[TR]
[TD]H4
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]200
[/TD]
[TD]500
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
After executing vba code following is expected:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]ID
[/TD]
[TD]STATUS
[/TD]
[TD]DAY1
[/TD]
[TD]DAY2
[/TD]
[TD]Day3
[/TD]
[TD]Day4
[/TD]
[TD]DAy5
[/TD]
[/TR]
[TR]
[TD]H1
[/TD]
[TD]PASSIVE
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]H2
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]500
[/TD]
[/TR]
[TR]
[TD]H1
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]500
[/TD]
[TD]500
[/TD]
[TD]200
[/TD]
[/TR]
[TR]
[TD]H3
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]200
[/TD]
[TD]200
[/TD]
[TD]200
[/TD]
[TD]500
[/TD]
[/TR]
[TR]
[TD]H4
[/TD]
[TD]ACTIVE
[/TD]
[TD]100
[/TD]
[TD]200
[/TD]
[TD]500
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Id can be duplicate, but id active will be unique.
Value in the empty cell filled will based on previous.
Thanks.