📜  谷歌表格数据验证自定义公式过滤器 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:52.890000             🧑  作者: Mango

代码示例1
-- Google Sheets: Using filter()
--   in custom formula in data validation

=query(filter('sheet1'!$A$2:$A, 'sheet1'$A$2:$A < 4),
       "select Col1 where Col1 = '" & 'sheet2'!A2 & "'")
       = 'sheet2'!A2

-- Note: The 'sheet2'!A2 must be
--   the first (top-left) cell of the validated range