Hi,
I'm trying to figure out some less painful ways of preparing a table so that it is ready for a spatial join to GIS data.
I'm working with a table that has unique entries based on permit number. But each permit number can apply to multiple claims. The claims are all contained in a single column (so for each permit, in a single cell).
What I would like is to separate out all of the claim numbers (I can do this by splitting to new columns) and then to have them as the unique entry (one row for each claim), with all of the relevant data duplicated for each claim that it applies to.
Simplification of existing table (it is much larger than this):
[TABLE="width: 500"]
<tbody>[TR]
[TD]PERMIT[/TD]
[TD]CLAIM[/TD]
[TD]HOLDER[/TD]
[TD]REGION[/TD]
[TD]DATE[/TD]
[TD]TYPE[/TD]
[/TR]
[TR]
[TD]p-1[/TD]
[TD]12 52 76 98[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]p-2[/TD]
[TD]85 32 51 62 66 78 90[/TD]
[TD]DEF[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]p-3
[/TD]
[TD]59[/TD]
[TD]GHI[/TD]
[TD]NW[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]p-4[/TD]
[TD]9 111 884 273 860 349 683 309 797 323 634 683 790 800[/TD]
[TD]JKL[/TD]
[TD]NW[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
</tbody>[/TABLE]
What I'd like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]CLAIM[/TD]
[TD]PERMIT[/TD]
[TD]HOLDER[/TD]
[TD]REGION[/TD]
[TD]DATE[/TD]
[TD]TYPE[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]p-1[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]52[/TD]
[TD]p-1[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]76[/TD]
[TD]p-1[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]98[/TD]
[TD]p-1[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
</tbody>[/TABLE]
So the resulting table will be much larger, having as many rows as there are unique claim numbers in the original table.
I started doing this by turning the claims cell into individual columns, and then copying those and transposing them in a new sheet. Then copying all the other data and pasting them beside each claim. This takes a long time given the size of the table and the number of claims that some permits apply to. Any tips are greatly appreciated.
Thanks
I'm trying to figure out some less painful ways of preparing a table so that it is ready for a spatial join to GIS data.
I'm working with a table that has unique entries based on permit number. But each permit number can apply to multiple claims. The claims are all contained in a single column (so for each permit, in a single cell).
What I would like is to separate out all of the claim numbers (I can do this by splitting to new columns) and then to have them as the unique entry (one row for each claim), with all of the relevant data duplicated for each claim that it applies to.
Simplification of existing table (it is much larger than this):
[TABLE="width: 500"]
<tbody>[TR]
[TD]PERMIT[/TD]
[TD]CLAIM[/TD]
[TD]HOLDER[/TD]
[TD]REGION[/TD]
[TD]DATE[/TD]
[TD]TYPE[/TD]
[/TR]
[TR]
[TD]p-1[/TD]
[TD]12 52 76 98[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]p-2[/TD]
[TD]85 32 51 62 66 78 90[/TD]
[TD]DEF[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]p-3
[/TD]
[TD]59[/TD]
[TD]GHI[/TD]
[TD]NW[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]p-4[/TD]
[TD]9 111 884 273 860 349 683 309 797 323 634 683 790 800[/TD]
[TD]JKL[/TD]
[TD]NW[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
</tbody>[/TABLE]
What I'd like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]CLAIM[/TD]
[TD]PERMIT[/TD]
[TD]HOLDER[/TD]
[TD]REGION[/TD]
[TD]DATE[/TD]
[TD]TYPE[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]p-1[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]52[/TD]
[TD]p-1[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]76[/TD]
[TD]p-1[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]98[/TD]
[TD]p-1[/TD]
[TD]ABC[/TD]
[TD]NE[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
</tbody>[/TABLE]
So the resulting table will be much larger, having as many rows as there are unique claim numbers in the original table.
I started doing this by turning the claims cell into individual columns, and then copying those and transposing them in a new sheet. Then copying all the other data and pasting them beside each claim. This takes a long time given the size of the table and the number of claims that some permits apply to. Any tips are greatly appreciated.
Thanks