为什么此查询语句不在 Google 工作表上显示 "text" 格式的 phone 数字?
Why is this Query statement not displaying "text" formatted phone numbers" on Google Sheets?
此公式返回正确的所有内容,但 phone 数字前面有一个撇号。如果我碰巧删除了撇号,它会显示数字,但由于开头可能有一个 0,所以它必须以文本形式出现。
公式如下:
=iferror(QUERY('Form Responses'!$A:$P; "select N, B, C, D, E, F, G, H, I, J, K, L, A where N >= 1 and todate(A)=date '"&TEXT(B3;"yyyy-mm-dd")&"' order by N Asc");"Pick a date")
数据如下:
...这是现在的结果:
下面是 link 示例:
https://docs.google.com/spreadsheets/d/1vxCwfcXRrpuvmkhpRsFrKQSq5aMjkdqlUYY-6_UknuE/edit?usp=sharing
感谢您的 time/help - 一如既往!
尝试:
=INDEX(SUBSTITUTE(IFERROR(QUERY(
{'Form Responses'!A4:P\ TEXT('Form Responses'!E4:E; "\×0")};
"select Col14,Col2,Col3,Col4,Col17,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col1
where Col14 >= 1
and todate(Col1) = date '"&TEXT(B3; "yyyy-mm-dd")&"'
order by Col14 asc"); "Pick a date"); "×"; ))
更新:
尝试:
=ARRAYFORMULA(TEXT(SUBSTITUTE(IFERROR(QUERY(
{'Form Responses'!A4:P\ TEXT('Form Responses'!E4:E; "\×0")};
"select Col14,Col2,Col3,Col4,Col17,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col1
where Col14 >= 1
and todate(Col1) = date '"&TEXT(B3; "yyyy-mm-dd")&"'
order by Col14 asc"); "Pick a date"); "×"; );
{"@"\"@"\"@"\"@"\"[=11=]#"\"@"\"@"\"@"\"@"\"@"\"@"\"@"\"mm/dd/yyyy"}))
此公式返回正确的所有内容,但 phone 数字前面有一个撇号。如果我碰巧删除了撇号,它会显示数字,但由于开头可能有一个 0,所以它必须以文本形式出现。
公式如下:
=iferror(QUERY('Form Responses'!$A:$P; "select N, B, C, D, E, F, G, H, I, J, K, L, A where N >= 1 and todate(A)=date '"&TEXT(B3;"yyyy-mm-dd")&"' order by N Asc");"Pick a date")
数据如下:
...这是现在的结果:
下面是 link 示例: https://docs.google.com/spreadsheets/d/1vxCwfcXRrpuvmkhpRsFrKQSq5aMjkdqlUYY-6_UknuE/edit?usp=sharing
感谢您的 time/help - 一如既往!
尝试:
=INDEX(SUBSTITUTE(IFERROR(QUERY(
{'Form Responses'!A4:P\ TEXT('Form Responses'!E4:E; "\×0")};
"select Col14,Col2,Col3,Col4,Col17,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col1
where Col14 >= 1
and todate(Col1) = date '"&TEXT(B3; "yyyy-mm-dd")&"'
order by Col14 asc"); "Pick a date"); "×"; ))
更新:
尝试:
=ARRAYFORMULA(TEXT(SUBSTITUTE(IFERROR(QUERY(
{'Form Responses'!A4:P\ TEXT('Form Responses'!E4:E; "\×0")};
"select Col14,Col2,Col3,Col4,Col17,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col1
where Col14 >= 1
and todate(Col1) = date '"&TEXT(B3; "yyyy-mm-dd")&"'
order by Col14 asc"); "Pick a date"); "×"; );
{"@"\"@"\"@"\"@"\"[=11=]#"\"@"\"@"\"@"\"@"\"@"\"@"\"@"\"mm/dd/yyyy"}))