Hello all -
What I want to accomplish is to group the City A's in rows 5 & 6 to 2 & 3 by finding the first instance of a string in the text column and then finding the remaining ones in the rest of the range and moving the entire row(s) up. Once it groups CITY A, then it will search for CITY B, group all of them, then CITY C, etc.
There can be up to several unique text values in a list and up to 600-700 rows of total data.
I hope I have explained it well enough. Thank you in advance for you consideration in helping me with this one!
Before:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID (col F)
[/TD]
[TD]TEXT (col N)
[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]CITY B[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CITY C[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]CITY A[/TD]
[/TR]
</tbody>[/TABLE]
After:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]TEXT[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]CITY B[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CITY C[/TD]
[/TR]
</tbody>[/TABLE]
What I want to accomplish is to group the City A's in rows 5 & 6 to 2 & 3 by finding the first instance of a string in the text column and then finding the remaining ones in the rest of the range and moving the entire row(s) up. Once it groups CITY A, then it will search for CITY B, group all of them, then CITY C, etc.
There can be up to several unique text values in a list and up to 600-700 rows of total data.
I hope I have explained it well enough. Thank you in advance for you consideration in helping me with this one!
Before:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID (col F)
[/TD]
[TD]TEXT (col N)
[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]CITY B[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CITY C[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]CITY A[/TD]
[/TR]
</tbody>[/TABLE]
After:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]TEXT[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]CITY A[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]CITY B[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CITY C[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: