Filter all unique items like Google Docs

半城伤御伤魂 提交于 2019-12-06 04:05:56

Use the Unique records only feature in Advanced Filter.

Under the DATA tab there is this: "Remove Duplicates". It'll do what you want.

Brian M

There isn't an equivalent to =unique() in Excel, and I hate having to work without it.

Without =unique() trying to find all of the unique values in a large array of data is impossible. Take a dozen columns of a hundred+ entries and see what the unique values are across the whole mess and pop them nicely into a new columns. I can't figure out how to do it in Excel, but in Gdocs it's simple:

=unique(transpose(split(ArrayFormula(concatenate(A:M&",")),",")))

Using Filters, or PivotTables, or whatever, just doesn't cut it, and I haven't been able to find any hacked together ridiculous excel formula to do anything similar.

This is not a pretty answer, but it works. Paste this as an array formula into cell B2:

=LOOKUP(2, 1/((COUNTIF(B$1:B1, A:A)=0)*(A:A<>"")), A:A)

With the column that needs to be filtered in A:A Then drag / copy it down as far as is required.

See it online in Google Spreadsheets


Caveats:

  • Does not retain original order (resulting order is in fact the reverse)
  • Does not automatically expand to cover all cells
  • Not fast, not pretty, not transparent

Footnotes:

  • It is trivial to use IFERROR() to filter out the #N/A errors, but I've not done this to keep the answer concise
  • In the same vein the header of the column A is currently also returned. This can be fixed by changing A:A to A$2:$25 in all 3 locations
  • Original question was for Excel 2013, all of this should work there, but I wrote and tested it in Excel 2016
  • I would love to hear suggestions on how to make the formula automatically expand down as far as required.
ashi200

filter your data in spreadsheets

This might prove to be of some help to you.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!