从两个非顾问列中选择唯一值

发布于 2025-02-08 00:49:53 字数 326 浏览 3 评论 0 原文

请参阅随附的样本:

列a,b,b,d和e是我的源列。我想在每个日期中从列B和E中选择唯一值,以中的一个动态表(列G,H和I列)。如h和i列所示,每个列的唯一值将彼此相邻。

我尝试使用以下公式:= unique(filter(a2:e,{1,1,1,0,1,1}})),但是,这返回了两个单独的日期列。

Please see the attached sample: https://docs.google.com/spreadsheets/d/1m625-WxG9VBv5AG-VR9-pf4bUCcG8AMCrb_z3jMYCqo/edit#gid=0

Columns A,B,D and E are my source columns. I want to pick unique values from columns B and E for each date into a dynamic table (Columns G, H and I). As shown in columns H and I, unique values from each column are to be adjacent to each other.

I have tried using the following formula: =unique(filter(A2:E,{1,1,0,1,1})) However, this returns two separate columns for dates.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

残月升风 2025-02-15 00:49:53

尝试:

=ARRAYFORMULA(UNIQUE(QUERY({
 A2:B, IFERROR(B2:B/0, B1), ROW(B2:B); 
 D2:E, IFERROR(E2:E/0, E1), ROW(B2:B)}, 
 "select Col1,max(Col2) 
  where Col2 is not null 
  group by Col1,Col4 
  pivot Col3 
  order by Col1 desc")))

alt

try:

=ARRAYFORMULA(UNIQUE(QUERY({
 A2:B, IFERROR(B2:B/0, B1), ROW(B2:B); 
 D2:E, IFERROR(E2:E/0, E1), ROW(B2:B)}, 
 "select Col1,max(Col2) 
  where Col2 is not null 
  group by Col1,Col4 
  pivot Col3 
  order by Col1 desc")))

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文