2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

スプレッドシートのCOUNTIF関数でワイルドカードが使える

Posted at

COUNTIF関数でワイルドカードが使えることを知ったのでメモ
https://support.google.com/docs/answer/3093480

A
1 たこ,いか
2 たこ,えび
3 えび

たこ、いか、えびのカウントを取得するのに以下のように関数を書きます。

=COUNTIF(A1:A3, "*たこ*")
=COUNTIF(A1:A3, "*いか*")
=COUNTIF(A1:A3, "*えび*")

セルの値を使ってもできますね。

A
4 たこ
5 いか
6 えび
=COUNTIF(A1:A3, "*" & A4 & "*")
=COUNTIF(A1:A3, "*" & A5 & "*")
=COUNTIF(A1:A3, "*" & A6 & "*")

うーん、便利。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?