google-sheets - Use Unique in a Filter formula
问题描述
I have a list of identifiers and a value for each identifier which is filled automatically.
I want to filter the list so I will only get unique identifiers and their respective value.
e.g. "Dana" can appears 3 times but in the filtered table I only want to see the name (and the value) once.
Ideally I'd like to use something like
=filter(a:b,unique(a:a)
which obviously doesn't work.
As mentioned, the list updates automatically so a formula that needs to be dragged won't do the trick.
Note: It can be solved by extracting uniques from col A
=unique(A:A)
and then an Arrayformula + vLookup
=arrayformula(if(I1:I>0,vlookup(I1:I,A:B,2,0),""))
but I'm curious to see if it can be solved using Filter for more elegance.
Here's an example (including the solution I mentioned): https://docs.google.com/spreadsheets/d/1heKdV3U6mdGYkHCIWkeUyqo6AfhgV7ItSmolibH7ecU/edit?usp=sharing
解决方案
推荐阅读
- android - 在 showTimePicker 中的 TimeOfDay.now() 之前设置初始时间
- spring-security - @EnableWebSecurity 和 @EnableWebFluxSecurity 有什么区别?
- sql - 在 oracle 的 BETWEEN 子句中运行一个查询多个范围
- java - 如何在 java 中读取 YAML 文件?
- android - 如何在 ScrollView 内的 LinearLayout 底部放置按钮
- ruby-on-rails - 您没有 /Library/Ruby/Gems/2.6.0 目录的写入权限
- html - primeng p-table,p-multiselect 过滤器未显示
- java - Selenium 没有显示实际的 html 页面
- c++ - 如何重新分配 wxImage 指针
- android - 如何在android中将模块依赖转换为aar依赖?