与名称关联的日期列表

时间:2015-07-16 12:00:12

标签: google-sheets spreadsheet

报告列表中名称的所有日期会有什么好方法?这可以通过一个数组公式来完成吗?

示例(列AB 输入,列CG 将自动生成):

|   A     |   B    |   C    |   D     |    E    |    F    |    G    |
+---------+--------+--------+---------+---------+---------+---------+
| Episode | Stars  | Name   | Date    | Date    | Date    | Date    |
+---------+--------+--------+---------+---------+---------+---------+
| 7/24/15 | Bart   | Bart   | 7/24/15 | 7/18/15 | 8/15/15 | 3/29/15 |
| 8/09/15 | Maggie | Homer  | 1/10/15 |         |         |         |
| 7/24/15 | Marge  | Lisa   | 7/20/15 | 6/04/15 |         |         |
| 7/18/15 | Bart   | Maggie | 8/09/15 |         |         |         | 
| 1/10/15 | Homer  | Marge  | 7/24/15 |         |         |         |
| 8/15/15 | Bart   |        |         |         |         |         |
| 7/20/15 | Lisa   |        |         |         |         |         | 
| 6/04/15 | Lisa   |        |         |         |         |         |
| 3/29/15 | Bart   |        |         |         |         |         |  


   |^^^^^^|
   |      |
   |      |
   | (o)(o)
   @      _)  
    | ,___|  - Thanks Dude!
    |   /
    /___\
   /     \

1 个答案:

答案 0 :(得分:0)

我不认为在单个阵列公式中这很容易实现。但是,作为替代方案,您可以在单元格C2中尝试此公式:

=SORT(UNIQUE(QUERY(FILTER(B$2:B,LEN(B$2:B)))),1,1)

然后在单元格D2中尝试此公式并向下拖动:

=TRANSPOSE(QUERY(A$2:B,"select A where B='"&C2&"'"))

请参阅此示例表以查看其是否有效:https://goo.gl/0u41u5