gordonhtfu
New Member
- Joined
- Jan 9, 2014
- Messages
- 9
Here is a sample (simplified) scenario that I am trying to resolve.
Given...
[TABLE="width: 270"]
<COLGROUP><COL style="WIDTH: 54pt" span=5 width=72><TBODY>[TR]
[TD="class: xl76, width: 72, bgcolor: #ffcc99"] [/TD]
[TD="class: xl76, width: 72, bgcolor: #ffcc99"]Tom[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]Peter[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]Sam[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]Susan[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo1[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]1[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]2[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]1[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]3[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo2[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]A[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]A[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]B[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]A[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo3[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]![/TD]
[TD="class: xl77, bgcolor: #ffcc99"]@[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]#[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]$[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo4[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]a[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]b[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]b[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]c[/TD]
[/TR]
</TBODY>[/TABLE]
Trying to make it into this by removing all the duplicates:
[TABLE="width: 270"]
<COLGROUP><COL style="WIDTH: 54pt" span=5 width=72><TBODY>[TR]
[TD="class: xl76, width: 72, bgcolor: #ffcc99"]Combo1[/TD]
[TD="class: xl76, width: 72, bgcolor: #ffcc99"]1[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]2[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]3[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"] [/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo2[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]A[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]B[/TD]
[TD="class: xl77, bgcolor: #ffcc99"] [/TD]
[TD="class: xl77, bgcolor: #ffcc99"] [/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo3[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]![/TD]
[TD="class: xl77, bgcolor: #ffcc99"]@[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]#[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]$[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo4[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]a[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]b[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]c[/TD]
[TD="class: xl77, bgcolor: #ffcc99"] [/TD]
[/TR]
</TBODY>[/TABLE]
Is there any method using formula? I am preferring formula (over macro or advanced filter) because it would dynamically update the result if the value in given table changes.
Given...
[TABLE="width: 270"]
<COLGROUP><COL style="WIDTH: 54pt" span=5 width=72><TBODY>[TR]
[TD="class: xl76, width: 72, bgcolor: #ffcc99"] [/TD]
[TD="class: xl76, width: 72, bgcolor: #ffcc99"]Tom[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]Peter[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]Sam[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]Susan[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo1[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]1[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]2[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]1[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]3[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo2[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]A[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]A[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]B[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]A[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo3[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]![/TD]
[TD="class: xl77, bgcolor: #ffcc99"]@[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]#[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]$[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo4[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]a[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]b[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]b[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]c[/TD]
[/TR]
</TBODY>[/TABLE]
Trying to make it into this by removing all the duplicates:
[TABLE="width: 270"]
<COLGROUP><COL style="WIDTH: 54pt" span=5 width=72><TBODY>[TR]
[TD="class: xl76, width: 72, bgcolor: #ffcc99"]Combo1[/TD]
[TD="class: xl76, width: 72, bgcolor: #ffcc99"]1[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]2[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"]3[/TD]
[TD="class: xl77, width: 72, bgcolor: #ffcc99"] [/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo2[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]A[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]B[/TD]
[TD="class: xl77, bgcolor: #ffcc99"] [/TD]
[TD="class: xl77, bgcolor: #ffcc99"] [/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo3[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]![/TD]
[TD="class: xl77, bgcolor: #ffcc99"]@[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]#[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]$[/TD]
[/TR]
[TR]
[TD="class: xl76, bgcolor: #ffcc99"]Combo4[/TD]
[TD="class: xl76, bgcolor: #ffcc99"]a[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]b[/TD]
[TD="class: xl77, bgcolor: #ffcc99"]c[/TD]
[TD="class: xl77, bgcolor: #ffcc99"] [/TD]
[/TR]
</TBODY>[/TABLE]
Is there any method using formula? I am preferring formula (over macro or advanced filter) because it would dynamically update the result if the value in given table changes.