Hi everyone, I have been searching for a formula that would do the following, extract unique values from a frequency chart..Please excuse me I am new to this form and limited knowledge of excel. (I am not a spreadsheet master..lol)
example of the chart:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]gas[/TD]
[TD]205[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]trv[/TD]
[TD]205[/TD]
[TD]302[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]gas[/TD]
[TD]320[/TD]
[TD]205[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]gas[/TD]
[TD]320[/TD]
[TD]205[/TD]
[TD]450[/TD]
[TD]302[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]gas[/TD]
[TD]220[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This what I want the end result to be.
[TABLE="class: grid, width: 30"]
<tbody>[TR]
[TD]code[/TD]
[TD]qty[/TD]
[TD][/TD]
[TD]code[/TD]
[TD]qty[/TD]
[/TR]
[TR]
[TD]gas[/TD]
[TD]4[/TD]
[TD][/TD]
[TD]450[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]205[/TD]
[TD]4[/TD]
[TD][/TD]
[TD]220[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]320[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]trv[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]302[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I know I can use the count formula in qty column, my problem is finding a formula that would extract the unique values from the data set in code column..I know this is complex because I have been searching everywhere for it. I can find one that would go in rows or columns but not in both direction..keep in mind I am using excel 2007 has to work dynamically and be compatible with other spreadsheets such as google spreadsheets if possible...I personally thank you in advance for your help,
Chris.
example of the chart:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]gas[/TD]
[TD]205[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]trv[/TD]
[TD]205[/TD]
[TD]302[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]gas[/TD]
[TD]320[/TD]
[TD]205[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]gas[/TD]
[TD]320[/TD]
[TD]205[/TD]
[TD]450[/TD]
[TD]302[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]gas[/TD]
[TD]220[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This what I want the end result to be.
[TABLE="class: grid, width: 30"]
<tbody>[TR]
[TD]code[/TD]
[TD]qty[/TD]
[TD][/TD]
[TD]code[/TD]
[TD]qty[/TD]
[/TR]
[TR]
[TD]gas[/TD]
[TD]4[/TD]
[TD][/TD]
[TD]450[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]205[/TD]
[TD]4[/TD]
[TD][/TD]
[TD]220[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]320[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]trv[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]302[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I know I can use the count formula in qty column, my problem is finding a formula that would extract the unique values from the data set in code column..I know this is complex because I have been searching everywhere for it. I can find one that would go in rows or columns but not in both direction..keep in mind I am using excel 2007 has to work dynamically and be compatible with other spreadsheets such as google spreadsheets if possible...I personally thank you in advance for your help,
Chris.