当包含在 LOWER(a) 函数中时,无法通过 QUERY 提取多个条件
Cannot pull multiple criteria via QUERY when enclosed in a LOWER(a) function
我正在尝试从名为 DealFinders 的数据范围中获取数据。我有要通过查询提取的列。我需要能够使用一个查询函数,通过带有查询的 lower(##) 函数提取 运行 的多个值。
这是适用于列为 GA、ga、Ga、gA 的状态的代码:
=IFERROR(
QUERY(
DealFinders,
"select A,B,C,D,E,F,G,H,I,J,N,L,M,K,O,P,Q,R
where
lower(L) contains lower('GA') order by R, 0"),
"No Results")
=IFERROR(
QUERY(
DealFinders,
"select A,B,C,D,E,F,G,H,I,J,N,L,M,K,O,P,Q,R
where
" lower(L) contains lower('GA') order by R, 0 " & " AND " & "
lower(L) contains lower('NC') order by R, 0 ""),"No Results")
该查询应显示 GA(乔治亚州)或 NC(北卡罗来纳州)州的所有人员。
试试这样:
=IFERROR(QUERY(DealFinders,
"select A,B,C,D,E,F,G,H,I,J,N,L,M,K,O,P,Q,R
where lower(L) contains 'ga'
or lower(L) contains 'nc' order by R", 0), "No Results")
我正在尝试从名为 DealFinders 的数据范围中获取数据。我有要通过查询提取的列。我需要能够使用一个查询函数,通过带有查询的 lower(##) 函数提取 运行 的多个值。
这是适用于列为 GA、ga、Ga、gA 的状态的代码:
=IFERROR(
QUERY(
DealFinders,
"select A,B,C,D,E,F,G,H,I,J,N,L,M,K,O,P,Q,R
where
lower(L) contains lower('GA') order by R, 0"),
"No Results")
=IFERROR(
QUERY(
DealFinders,
"select A,B,C,D,E,F,G,H,I,J,N,L,M,K,O,P,Q,R
where
" lower(L) contains lower('GA') order by R, 0 " & " AND " & "
lower(L) contains lower('NC') order by R, 0 ""),"No Results")
该查询应显示 GA(乔治亚州)或 NC(北卡罗来纳州)州的所有人员。
试试这样:
=IFERROR(QUERY(DealFinders,
"select A,B,C,D,E,F,G,H,I,J,N,L,M,K,O,P,Q,R
where lower(L) contains 'ga'
or lower(L) contains 'nc' order by R", 0), "No Results")