过滤所有独特的项目,例如Google文档 [英] Filter all unique items like Google Docs
本文介绍了过滤所有独特的项目,例如Google文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一种快速/简便的方法来过滤Excel 2013列中类似于Google文档唯一"功能的所有唯一项?
Is there a quick/easy way to filter all unique items in an Excel 2013 column similar to the Google Docs "Unique" function?
推荐答案
这不是一个很好的答案,但它可以工作. 将此作为数组公式粘贴到单元格 B2 :
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)
需要在 A:A 中过滤的列 然后将其向下拖动/复制到所需的距离.
With the column that needs to be filtered in A:A Then drag / copy it down as far as is required.
注意事项:
- 不保留原始顺序(结果顺序实际上相反)
- 不会自动展开以覆盖所有单元格
- 不快,不漂亮,不透明
脚注:
- 使用 IFERROR()过滤掉#N/A 错误是很简单的,但是我没有这样做以保持答案的简洁性.
- 以同样的方式,当前还返回列 A 的标题.可以通过在所有3个位置将 A:A 更改为 A $ 2:$ 25 来解决此问题
- 最初的问题是针对Excel 2013的,所有这些应该都在那工作,但是我在Excel 2016中编写并测试了它
- 我很想听听有关如何使公式自动扩展到所需范围的建议.
- 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.
这篇关于过滤所有独特的项目,例如Google文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文