pingpong777
New Member
- Joined
- Apr 6, 2015
- Messages
- 42
Hi. I have a data set that is annual values for various colors. For each of these colors, in any year the value will be 0 or greater. For each year, I would like to have a cell list all the colors that are non-zero for that year. For instance, for the table below (apologies for formatting), 2002 would read "rust, orange, navy, cyan", 2003 would read "rust, purple, pink", and so on. Is there an elegant way to do this in a single cell for each year, or am I stuck building a 2-3 step process?
[TABLE="width: 384"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64, align: right"]2002[/TD]
[TD="width: 64, align: right"]2003[/TD]
[TD="width: 64, align: right"]2004[/TD]
[TD="width: 64, align: right"]2005[/TD]
[TD="width: 64, align: right"]2006[/TD]
[/TR]
[TR]
[TD]rust[/TD]
[TD="class: xl64, align: right"]1[/TD]
[TD="class: xl63, align: right"]1[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]4[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD="class: xl65, align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]purple[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]pink[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]navy[/TD]
[TD="class: xl65, align: right"]6[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]cyan[/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 384"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64, align: right"]2002[/TD]
[TD="width: 64, align: right"]2003[/TD]
[TD="width: 64, align: right"]2004[/TD]
[TD="width: 64, align: right"]2005[/TD]
[TD="width: 64, align: right"]2006[/TD]
[/TR]
[TR]
[TD]rust[/TD]
[TD="class: xl64, align: right"]1[/TD]
[TD="class: xl63, align: right"]1[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]4[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD="class: xl65, align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]purple[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]pink[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]navy[/TD]
[TD="class: xl65, align: right"]6[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]cyan[/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: