Google表格 - 查询或过滤数据,按ID和最新日期查询
我在过滤一组包含注释历史记录的数据时遇到了麻烦。相同的ID可能会留下几个笔记,但我只想为每个唯一ID剩下的最新注释。
在这里有几列 - 我想拉动A,B,C,E,F,G,H,L,M,N,O,p。 ID在A列中,日期在M中。
我还想排除带有空白(L)的所有行。
我有一个公式在下面的公式,基于研究如何拉出我想要的东西,但是它是在提取最早的日期,而不是最近的日期,但我还没有弄清楚如何做相反的日期 - 并将最近的日期拉动为我需要做。我还尝试使用A查询A Max(M)组的查询,但是我有一个错误。
=ARRAYFORMULA(IFERROR(VLOOKUP(UNIQUE('Data - All'!A2:A),SORT({'Data - All'!A2:C,'Data - All'!E2:H,'Data - All'!L2:L,'Data - All'!M2:M,'Data - All'!N2:P},4,0),{1,2,3,4,5,6,7,8,9,10,11,12,13,14},0)))
我的公式也不会拉动标头,也不排除在音符列为空白的地方。
任何帮助将不胜感激。
谢谢!
I'm having trouble filtering a set of data containing Note history. Several notes may be left for the same ID, but I want to pull only the most recent notes left, for each unique ID.
Here is a sample dataset. There are several columns - I want to pull columns A,B,C,E,F,G,H,L,M,N,O,P. The ID is in Column A and the date is in Column M.
I also want to exclude any rows with blank Notes (Column L).
I have a formula, below, based on research into how to pull what I want, but it's pulling the earliest dates rather than the most recent dates and I haven't figured out how to do the opposite - and pull the most recent dates as I need to do. I also tried to use a QUERY looking at Max(M) group by A, but I got an error.
=ARRAYFORMULA(IFERROR(VLOOKUP(UNIQUE('Data - All'!A2:A),SORT({'Data - All'!A2:C,'Data - All'!E2:H,'Data - All'!L2:L,'Data - All'!M2:M,'Data - All'!N2:P},4,0),{1,2,3,4,5,6,7,8,9,10,11,12,13,14},0)))
My formula also doesn't pull the header and doesn't exclude rows where the Note column is blank.
Any help is greatly appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试:
try:
尝试:
try: