I need to combine different cells if they meet a criteria. I am basically putting up a list of medals and the whole football team gets a medal and it shows up in different lines, so what i want to do is show just one line with the event and all the athletes in one cell rather than different cells.[TABLE="width: 500"]
<tbody>[TR]
[TD]Year
[/TD]
[TD]Event
[/TD]
[TD]Athlete
[/TD]
[TD]Medal
[/TD]
[TD="align: center"]What i want
[/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Mark
[/TD]
[TD]Gold
[/TD]
[TD]Mark, Twain, Shakepeare, Elizabeth, Byron, Hemingway
[/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Twain
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Shakespeare
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Elizabeth
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Byron
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Hemingway
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Archery 100ft
[/TD]
[TD]Ian
[/TD]
[TD]Silver
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Archery 200ft
[/TD]
[TD]Ian
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]100m Track
[/TD]
[TD]Bolt
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So when the events are different it shoudln't combine them.
Regards,
Ritin
<tbody>[TR]
[TD]Year
[/TD]
[TD]Event
[/TD]
[TD]Athlete
[/TD]
[TD]Medal
[/TD]
[TD="align: center"]What i want
[/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Mark
[/TD]
[TD]Gold
[/TD]
[TD]Mark, Twain, Shakepeare, Elizabeth, Byron, Hemingway
[/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Twain
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Shakespeare
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Elizabeth
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Byron
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Football
[/TD]
[TD]Hemingway
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Archery 100ft
[/TD]
[TD]Ian
[/TD]
[TD]Silver
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]Archery 200ft
[/TD]
[TD]Ian
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000
[/TD]
[TD]100m Track
[/TD]
[TD]Bolt
[/TD]
[TD]Gold
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So when the events are different it shoudln't combine them.
Regards,
Ritin
Last edited: