@hiroshi0410

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

クエリ関数について教えていただけますでしょうか。

=QUERY({S12:AG306;BA12:BO149;AJ12:AX24;BR12:CF25},"where Col5 is not null")

クエリ関数での質問ですが、ここから昇順をかける場合はどうしたらよいでしょうか?
出力先のデータでフィルタをかけるとデータが消えてしまいます・・・

0 likes

1Answer

「order by」句を利用することで並び替えができると思います。

=query(A:D,"where D is not null order by D asc",1)

image.png

2Like

Comments

  1. @hiroshi0410

    Questioner

    ご回答ありがとうございます。
    =QUERY({T20:AH314;BB20:BP157;AK20:AY32;BS20:CG33},"where Col5 is not null order by D asc",1)だとエラーがででしまいます。
    引用数値の統一がないとエラーになるんでしょうか?
  2. ソートする列の指定が間違っていないでしょうか?
    エラーの原因はデータ範囲内にD列がないからだと思います。
  3. @hiroshi0410

    Questioner

    =QUERY(IMPORTRANGE("ID","シート名!D6:R500")},"where Col5 is not null order by E asc",1)
    インポートレンジで引用してチャレンジしましたが・・・範囲内にE列は入っておりますがエラーとなってしまいます。

  4. 複数範囲の結合やIMPORTRANGEでは列名指定ができないのかもしれません。
    「Col1」のような列番号で指定するとうまくいかないでしょうか?
  5. @hiroshi0410

    Questioner

    ありがとうございます!

Your answer might help someone💌