markthewatercooler2
New Member
- Joined
- Jan 30, 2014
- Messages
- 1
Hey guys,
I've been lurking in the existing threads, but not sure how to approach it yet. Should be straightforward, but I'm not very competent with syntax. Consider this table.
[TABLE="width: 300"]
<tbody>[TR]
[TD]Patient id - 336[/TD]
[TD]Diagnosed[/TD]
[TD]Diabetes Type 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Age[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Insurance number[/TD]
[TD]GP notes text[/TD]
[/TR]
[TR]
[TD]Patient id - 118[/TD]
[TD]Diagnosed[/TD]
[TD]Diabetes Type 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Age[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Insurance number[/TD]
[TD]GP notes text[/TD]
[/TR]
[TR]
[TD]Patient id - 724[/TD]
[TD]Diagnosed[/TD]
[TD]Diabetes Type 2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Age[/TD]
[TD]46[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Insurance number[/TD]
[TD]GP notes text[/TD]
[/TR]
</tbody>[/TABLE]
Etc. Imagine hundreds of records. I would now like to separate Type 1 people into a separate workbook in the following way.
[TABLE="width: 300"]
<tbody>[TR]
[TD]Insurance number[/TD]
[TD]Patient id - 336[/TD]
[TD]GP notes text[/TD]
[/TR]
[TR]
[TD]Insurance number[/TD]
[TD]Patient id - 118[/TD]
[TD]GP notes text[/TD]
[/TR]
</tbody>[/TABLE]
What kind of a loop do I need to use to tell Excel to only take certain cells and keep doing this until the document ends?
I've been lurking in the existing threads, but not sure how to approach it yet. Should be straightforward, but I'm not very competent with syntax. Consider this table.
[TABLE="width: 300"]
<tbody>[TR]
[TD]Patient id - 336[/TD]
[TD]Diagnosed[/TD]
[TD]Diabetes Type 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Age[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Insurance number[/TD]
[TD]GP notes text[/TD]
[/TR]
[TR]
[TD]Patient id - 118[/TD]
[TD]Diagnosed[/TD]
[TD]Diabetes Type 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Age[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Insurance number[/TD]
[TD]GP notes text[/TD]
[/TR]
[TR]
[TD]Patient id - 724[/TD]
[TD]Diagnosed[/TD]
[TD]Diabetes Type 2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Age[/TD]
[TD]46[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Insurance number[/TD]
[TD]GP notes text[/TD]
[/TR]
</tbody>[/TABLE]
Etc. Imagine hundreds of records. I would now like to separate Type 1 people into a separate workbook in the following way.
[TABLE="width: 300"]
<tbody>[TR]
[TD]Insurance number[/TD]
[TD]Patient id - 336[/TD]
[TD]GP notes text[/TD]
[/TR]
[TR]
[TD]Insurance number[/TD]
[TD]Patient id - 118[/TD]
[TD]GP notes text[/TD]
[/TR]
</tbody>[/TABLE]
What kind of a loop do I need to use to tell Excel to only take certain cells and keep doing this until the document ends?