madhuchelliah
Board Regular
- Joined
- Nov 22, 2017
- Messages
- 226
- Office Version
- 2019
- Platform
- Windows
Hey Guys, I need your help to solve my issue. In my sales report I column i have to find my completed tasks. Typically to identify tasks in I column, it will start with cell contains Completed Task and ends in cells contains *****. Some time some cells contains ***** alone which is incomplete task(See the example below). Now the macros should find the Completed Task and ***** combinations to mark with start and end in G column. Please heads up. Thank you.
Scenario:
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]I
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]DDDDDDD[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WWWWW*****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Today Completed Task[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]XXXXXXX[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]YYYYYYY[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]ZZZZ[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]XXXXXX *****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]VVVVVV[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BBBBB*****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Yesterday Completed Task[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]RRRRRRRR[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WWWWW[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]VVVVVV*****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Requirement:
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]I
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]DDDDDDD[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WWWWW*****[/TD]
[/TR]
[TR]
[TD]Start[/TD]
[TD][/TD]
[TD]Today Completed Task[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]XXXXXXX[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]YYYYYYY[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]ZZZZ[/TD]
[/TR]
[TR]
[TD]End[/TD]
[TD][/TD]
[TD]XXXXXX *****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]VVVVVV[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BBBBB*****[/TD]
[/TR]
[TR]
[TD]Start[/TD]
[TD][/TD]
[TD]Yesterday Completed Task[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]RRRRRRRR[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WWWWW[/TD]
[/TR]
[TR]
[TD]End[/TD]
[TD][/TD]
[TD]VVVVVV*****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Scenario:
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]I
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]DDDDDDD[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WWWWW*****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Today Completed Task[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]XXXXXXX[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]YYYYYYY[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]ZZZZ[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]XXXXXX *****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]VVVVVV[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BBBBB*****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Yesterday Completed Task[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]RRRRRRRR[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WWWWW[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]VVVVVV*****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Requirement:
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]I
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]DDDDDDD[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WWWWW*****[/TD]
[/TR]
[TR]
[TD]Start[/TD]
[TD][/TD]
[TD]Today Completed Task[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]XXXXXXX[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]YYYYYYY[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]ZZZZ[/TD]
[/TR]
[TR]
[TD]End[/TD]
[TD][/TD]
[TD]XXXXXX *****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]VVVVVV[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BBBBB*****[/TD]
[/TR]
[TR]
[TD]Start[/TD]
[TD][/TD]
[TD]Yesterday Completed Task[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]RRRRRRRR[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]WWWWW[/TD]
[/TR]
[TR]
[TD]End[/TD]
[TD][/TD]
[TD]VVVVVV*****[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]