kirandhawan
New Member
- Joined
- Jan 6, 2016
- Messages
- 6
Hi,
Below is a sample table which I need to extract data from:
[TABLE="class: grid, width: 700, align: center"]
<tbody>[TR]
[TD]Event Name[/TD]
[TD]Location[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]04-Feb[/TD]
[TD]05-Feb[/TD]
[TD]06-Feb[/TD]
[TD]07-Feb[/TD]
[TD]08-Feb[/TD]
[TD]09-Feb[/TD]
[TD]10-Feb[/TD]
[TD]11-Feb[/TD]
[/TR]
[TR]
[TD]Event-1[/TD]
[TD]Loc-1[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-2[/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Event-2[/TD]
[TD]Loc-1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-2[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Event-3[/TD]
[TD]Loc-1[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-3[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
From Above table, I need to extract a consolidated data in below format as the "yes" on a specific date may be shifted to some other date in master sheet and I need to automatically extracted data in below format in adjacent worksheet in the same master file:
[TABLE="class: grid, width: 700, align: center"]
<tbody>[TR]
[TD]Event Name[/TD]
[TD]Location[/TD]
[TD]1st From Date[/TD]
[TD]1st To Date[/TD]
[TD]2nd From Date[/TD]
[TD]2nd To Date[/TD]
[TD]3rd From Date[/TD]
[TD]3rd To Date[/TD]
[TD]4th From Date[/TD]
[TD]4th To Date[/TD]
[/TR]
[TR]
[TD]Event-1[/TD]
[TD]Loc-1[/TD]
[TD]04-Feb[/TD]
[TD]05-Feb[/TD]
[TD]08-Feb[/TD]
[TD]09-Feb[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[/TR]
[TR]
[TD]Event-1[/TD]
[TD]Loc-2[/TD]
[TD]05-Feb[/TD]
[TD]06-Feb[/TD]
[TD]10-Feb[/TD]
[TD]11-Feb[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[/TR]
[TR]
[TD]Event-1[/TD]
[TD]Loc-3[/TD]
[TD]07-Feb[/TD]
[TD]07-Feb[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[/TR]
[TR]
[TD]Event-2[/TD]
[TD]Loc-1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Event-2[/TD]
[TD]Loc-2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Event-2[/TD]
[TD]Loc-3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
can someone help me please?
Below is a sample table which I need to extract data from:
[TABLE="class: grid, width: 700, align: center"]
<tbody>[TR]
[TD]Event Name[/TD]
[TD]Location[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[TD]Feb[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]04-Feb[/TD]
[TD]05-Feb[/TD]
[TD]06-Feb[/TD]
[TD]07-Feb[/TD]
[TD]08-Feb[/TD]
[TD]09-Feb[/TD]
[TD]10-Feb[/TD]
[TD]11-Feb[/TD]
[/TR]
[TR]
[TD]Event-1[/TD]
[TD]Loc-1[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-2[/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Event-2[/TD]
[TD]Loc-1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-2[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Event-3[/TD]
[TD]Loc-1[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Loc-3[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
From Above table, I need to extract a consolidated data in below format as the "yes" on a specific date may be shifted to some other date in master sheet and I need to automatically extracted data in below format in adjacent worksheet in the same master file:
[TABLE="class: grid, width: 700, align: center"]
<tbody>[TR]
[TD]Event Name[/TD]
[TD]Location[/TD]
[TD]1st From Date[/TD]
[TD]1st To Date[/TD]
[TD]2nd From Date[/TD]
[TD]2nd To Date[/TD]
[TD]3rd From Date[/TD]
[TD]3rd To Date[/TD]
[TD]4th From Date[/TD]
[TD]4th To Date[/TD]
[/TR]
[TR]
[TD]Event-1[/TD]
[TD]Loc-1[/TD]
[TD]04-Feb[/TD]
[TD]05-Feb[/TD]
[TD]08-Feb[/TD]
[TD]09-Feb[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[/TR]
[TR]
[TD]Event-1[/TD]
[TD]Loc-2[/TD]
[TD]05-Feb[/TD]
[TD]06-Feb[/TD]
[TD]10-Feb[/TD]
[TD]11-Feb[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[/TR]
[TR]
[TD]Event-1[/TD]
[TD]Loc-3[/TD]
[TD]07-Feb[/TD]
[TD]07-Feb[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[TD]Null[/TD]
[/TR]
[TR]
[TD]Event-2[/TD]
[TD]Loc-1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Event-2[/TD]
[TD]Loc-2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Event-2[/TD]
[TD]Loc-3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
can someone help me please?