Select 单元格 C,其中 A 列中的值等于 a,B 列中的值等于 b
Select cell C where value in column A equals a and value in column B equals b
我有 2 个 table,第一个包含一个 ID,以及此人被呼叫的最新日期以及与 phone 呼叫相关的评论:
id
latest call
call comments
1
1/1/2021
comments 1
2
1/12/2020
comments 2
3
1/1/2021
comments 3
4
not contacted
我的第二个 table 包含所有 phone 调用:
id
call date
call comments
1
1/1/2021
comments 1
3
1/1/2019
comments
3
1/1/2021
comments 3
1
1/1/2021
comments
2
1/11/2019
comments
2
1/12/2020
comments 2
1
10/1/2020
comments
我最近调用的公式是:
=IF(MAX(IF(table_2_ids_range=table_1_id_cell, table_2_date_range)) > 0, MAX(IF(table_2_ids_range=table_1_id_cell, table_2_date_range)), "Not contacted")
哪个returns最近的通话日期
但是,我不确定如何获得与之关联的评论,我想做一些类似的事情
SELECT cell in column "call comments" WHERE cell in column "id" equals VALUE1 and cell in column "call date" equals VALUE2
我试过了
=IF(AND(table_1_id_cell=table_2_id_range,table_1_date_cell=table_2_date_range),table_2_comments_range,"")
但它只返回一个空字符串
谢谢!
将第二个 table 的每个 ID 和日期合并为第二个 table 的记录 ID。
在第一个 table 中,只需使用 vlookup vlookup(id&date, a:c, 3,0)
我有 2 个 table,第一个包含一个 ID,以及此人被呼叫的最新日期以及与 phone 呼叫相关的评论:
id | latest call | call comments |
---|---|---|
1 | 1/1/2021 | comments 1 |
2 | 1/12/2020 | comments 2 |
3 | 1/1/2021 | comments 3 |
4 | not contacted |
我的第二个 table 包含所有 phone 调用:
id | call date | call comments |
---|---|---|
1 | 1/1/2021 | comments 1 |
3 | 1/1/2019 | comments |
3 | 1/1/2021 | comments 3 |
1 | 1/1/2021 | comments |
2 | 1/11/2019 | comments |
2 | 1/12/2020 | comments 2 |
1 | 10/1/2020 | comments |
我最近调用的公式是:
=IF(MAX(IF(table_2_ids_range=table_1_id_cell, table_2_date_range)) > 0, MAX(IF(table_2_ids_range=table_1_id_cell, table_2_date_range)), "Not contacted")
哪个returns最近的通话日期
但是,我不确定如何获得与之关联的评论,我想做一些类似的事情
SELECT cell in column "call comments" WHERE cell in column "id" equals VALUE1 and cell in column "call date" equals VALUE2
我试过了
=IF(AND(table_1_id_cell=table_2_id_range,table_1_date_cell=table_2_date_range),table_2_comments_range,"")
但它只返回一个空字符串
谢谢!
将第二个 table 的每个 ID 和日期合并为第二个 table 的记录 ID。
在第一个 table 中,只需使用 vlookup vlookup(id&date, a:c, 3,0)