Hi,
Let's say I have a result of a survey, but the answers got mixed up... some cells moved away form their column:
[TABLE="width: 461"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]Dog[/TD]
[TD]Fish[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]I have a dog - blue [/TD]
[TD]I have a fish - yellow[/TD]
[TD]I have a cat - black[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]I have a cat - grey[/TD]
[TD]I have a dog - red[/TD]
[TD]I have a fish - black[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]I have a cat - red[/TD]
[TD]I have a fish - red[/TD]
[TD]I have a dog - green [/TD]
[/TR]
[TR]
[TD]Anna[/TD]
[TD]I have a fish - blue[/TD]
[TD]I have a dog - yellow[/TD]
[TD]I have a cat - white[/TD]
[/TR]
</tbody>[/TABLE]
I tried to sort this by using FIND, MATCH, INDEX but I seems I cannot make my formula work. For each line, I was trying to find "dog" for example and then display in a new column the content of cell in which "dog" is found. The final result I am looking for is:
[TABLE="width: 459"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]Dog[/TD]
[TD]Fish[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]I have a dog - blue [/TD]
[TD]I have a fish -yellow[/TD]
[TD]I have a cat - black[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]I have a dog - red[/TD]
[TD]I have a fish - black[/TD]
[TD]I have a cat - grey[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]I have a dog - green [/TD]
[TD]I have a fish - red[/TD]
[TD]I have a cat - red[/TD]
[/TR]
[TR]
[TD]Anna[/TD]
[TD]I have a dog - yellow[/TD]
[TD]I have a fish - blue[/TD]
[TD]I have a cat - white[/TD]
[/TR]
</tbody>[/TABLE]
I don't need a formula to sort the whole table at once, I can do column by column/several steps.
Any help please?
Thanks in advance.
Let's say I have a result of a survey, but the answers got mixed up... some cells moved away form their column:
[TABLE="width: 461"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]Dog[/TD]
[TD]Fish[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]I have a dog - blue [/TD]
[TD]I have a fish - yellow[/TD]
[TD]I have a cat - black[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]I have a cat - grey[/TD]
[TD]I have a dog - red[/TD]
[TD]I have a fish - black[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]I have a cat - red[/TD]
[TD]I have a fish - red[/TD]
[TD]I have a dog - green [/TD]
[/TR]
[TR]
[TD]Anna[/TD]
[TD]I have a fish - blue[/TD]
[TD]I have a dog - yellow[/TD]
[TD]I have a cat - white[/TD]
[/TR]
</tbody>[/TABLE]
I tried to sort this by using FIND, MATCH, INDEX but I seems I cannot make my formula work. For each line, I was trying to find "dog" for example and then display in a new column the content of cell in which "dog" is found. The final result I am looking for is:
[TABLE="width: 459"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]Dog[/TD]
[TD]Fish[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]I have a dog - blue [/TD]
[TD]I have a fish -yellow[/TD]
[TD]I have a cat - black[/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]I have a dog - red[/TD]
[TD]I have a fish - black[/TD]
[TD]I have a cat - grey[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]I have a dog - green [/TD]
[TD]I have a fish - red[/TD]
[TD]I have a cat - red[/TD]
[/TR]
[TR]
[TD]Anna[/TD]
[TD]I have a dog - yellow[/TD]
[TD]I have a fish - blue[/TD]
[TD]I have a cat - white[/TD]
[/TR]
</tbody>[/TABLE]
I don't need a formula to sort the whole table at once, I can do column by column/several steps.
Any help please?
Thanks in advance.