Hi there,
Can somone help me in defining the logic for a task i would like to do in excel on a regular basis?
here is how my excel data looks like:[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Task #[/TD]
[TD]Level 1[/TD]
[TD]Level 2[/TD]
[TD]Level 3[/TD]
[TD]Level 4[/TD]
[/TR]
[TR]
[TD]123456789[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]987654321[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Macro should be doing the following steps:
Any help is greatly appreciated!
thanks.
Can somone help me in defining the logic for a task i would like to do in excel on a regular basis?
here is how my excel data looks like:[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Task #[/TD]
[TD]Level 1[/TD]
[TD]Level 2[/TD]
[TD]Level 3[/TD]
[TD]Level 4[/TD]
[/TR]
[TR]
[TD]123456789[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]987654321[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Macro should be doing the following steps:
- go to each task#, look for non empty cell value starting from the farthest end (column header Level 4). only for that row
- when found a value, it (farthest non empty, Level#only) should be replaced with numberic value 1.
- now delete all the other values in rest of the columns Level1,2,3 (to the left of non empty cell) if there is any value at all upto column Level 1. But not task # cell value.
- now steps 1 through 3 has to be looped for multiple rows (as many as task#s present).
Any help is greatly appreciated!
thanks.