Good Afternoon All,
I am trying to automate a task to take data from one column and copy a district identifier to another. The data and the expected outcome are below.
[TABLE="width: 272"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]District[/TD]
[TD]Output[/TD]
[/TR]
[TR]
[TD]Congressional District 1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Congressional District 2[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Congressional District 3[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Congressional District 4[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Congressional District 5[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]State Senate District 21[/TD]
[TD="align: right"]21[/TD]
[/TR]
[TR]
[TD]District 21[/TD]
[TD="align: right"]21[/TD]
[/TR]
[TR]
[TD]District 30A[/TD]
[TD]30A[/TD]
[/TR]
[TR]
[TD]District 30B[/TD]
[TD]30B[/TD]
[/TR]
[TR]
[TD]District 31A[/TD]
[TD]31A[/TD]
[/TR]
[TR]
[TD]5th Judicial Circuit [/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]5th Judicial Circuit [/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Legislative District 21 [/TD]
[TD="align: right"]21[/TD]
[/TR]
</tbody>[/TABLE]
I can easily pull data from the first few rows using Mid, but I have three different scenarios to look at and the amount of data in the sheet is variable.
Any assistance with this is greatly appreciated.
Dan
I am trying to automate a task to take data from one column and copy a district identifier to another. The data and the expected outcome are below.
[TABLE="width: 272"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]District[/TD]
[TD]Output[/TD]
[/TR]
[TR]
[TD]Congressional District 1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Congressional District 2[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Congressional District 3[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Congressional District 4[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Congressional District 5[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]State Senate District 21[/TD]
[TD="align: right"]21[/TD]
[/TR]
[TR]
[TD]District 21[/TD]
[TD="align: right"]21[/TD]
[/TR]
[TR]
[TD]District 30A[/TD]
[TD]30A[/TD]
[/TR]
[TR]
[TD]District 30B[/TD]
[TD]30B[/TD]
[/TR]
[TR]
[TD]District 31A[/TD]
[TD]31A[/TD]
[/TR]
[TR]
[TD]5th Judicial Circuit [/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]5th Judicial Circuit [/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Legislative District 21 [/TD]
[TD="align: right"]21[/TD]
[/TR]
</tbody>[/TABLE]
I can easily pull data from the first few rows using Mid, but I have three different scenarios to look at and the amount of data in the sheet is variable.
Any assistance with this is greatly appreciated.
Dan