Arrgh-
I've been using the following snippet to create a list of unique values in a column. It works great as long as the list of unique values and the column being parsed are on the same table. I'm having the darndeest time doing this where the list is on one table in a workbook and the column of mixed values in another table in the same workbook. Here's the formula where both columns are on the same page:
{=IF(ISNA(OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B1),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)),"",OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B1),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1))}
The above goes in the second cell down (B2) where B1 would be the first value in the mixed column, (eg B1=A1)
...and here's the one I've been putzing with between pages:
=IF(ISNA(OFFSET(data!D2:D100,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE(data!D2:D100)=A$3:A3),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)),"",OFFSET(data!D2:D100,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE(data!D2:D100)=A$3:A3),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1))
...where "data" is the name of the table with the mixed column.
Last edited by portsample; 06-30-2011 at 07:44 PM.
Try placing the table in the same sheet first, and applying the formula so that it works as you described... then cut and paste that table to the data sheet. The formula should automatically adjust the ranges to include the sheetname.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Why not Advanced Filter unique entries?
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
I'm having a problem making a list of unique items in a column.
The column is on one page of a workbook (D2:D14) and the list is on another page. It works fine when the list is from A1:A13, however when I cut and paste down 2 cells to A3:A15. The function has problems.
Here is the function:
{=OFFSET(data!$D$2,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE(data!$D$2:$D$14)=A$1:A1),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)}
I've spent some time tinkering w/it and can't seem to make progress...is anyone familiar w/the above issue?
I've attached a copy of the workbook for review. Thanks.
Try this adjustment in the Indirect functions:
=OFFSET(data!$D$2,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE(data!$D$2:$D$14)=A$1:A1),ROW(INDIRECT(ROW(A$1)&":"&ROW()-1))/ROW(INDIRECT(ROW(A$1)&":"&ROW()-1))),0)-1,0,1,1)
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks