WorksheetFunction.CountIfs メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定された範囲に含まれるセルのうち、複数の検索条件に一致するセルの個数を返します。
public double CountIfs (Microsoft.Office.Interop.Excel.Range Arg1, object Arg2, object Arg3, object Arg4, object Arg5, object Arg6, object Arg7, object Arg8, object Arg9, object Arg10, object Arg11, object Arg12, object Arg13, object Arg14, object Arg15, object Arg16, object Arg17, object Arg18, object Arg19, object Arg20, object Arg21, object Arg22, object Arg23, object Arg24, object Arg25, object Arg26, object Arg27, object Arg28, object Arg29, object Arg30);
Public Function CountIfs (Arg1 As Range, Arg2 As Object, Optional Arg3 As Object, Optional Arg4 As Object, Optional Arg5 As Object, Optional Arg6 As Object, Optional Arg7 As Object, Optional Arg8 As Object, Optional Arg9 As Object, Optional Arg10 As Object, Optional Arg11 As Object, Optional Arg12 As Object, Optional Arg13 As Object, Optional Arg14 As Object, Optional Arg15 As Object, Optional Arg16 As Object, Optional Arg17 As Object, Optional Arg18 As Object, Optional Arg19 As Object, Optional Arg20 As Object, Optional Arg21 As Object, Optional Arg22 As Object, Optional Arg23 As Object, Optional Arg24 As Object, Optional Arg25 As Object, Optional Arg26 As Object, Optional Arg27 As Object, Optional Arg28 As Object, Optional Arg29 As Object, Optional Arg30 As Object) As Double
パラメーター
- Arg1
- Range
対応する条件による評価の対象となる範囲を指定します。
- Arg2
- Object
計算の対象となるセルを定義する条件を数値、式、セル参照、または文字列で指定します。 たとえば、抽出条件は 32、"32"、"32"、">apples"、または B4 として表すことができます。
- Arg3
- Object
- Arg4
- Object
- Arg5
- Object
- Arg6
- Object
- Arg7
- Object
- Arg8
- Object
- Arg9
- Object
- Arg10
- Object
- Arg11
- Object
- Arg12
- Object
- Arg13
- Object
- Arg14
- Object
- Arg15
- Object
- Arg16
- Object
- Arg17
- Object
- Arg18
- Object
- Arg19
- Object
- Arg20
- Object
- Arg21
- Object
- Arg22
- Object
- Arg23
- Object
- Arg24
- Object
- Arg25
- Object
- Arg26
- Object
- Arg27
- Object
- Arg28
- Object
- Arg29
- Object
- Arg30
- Object
戻り値
注釈
セルに対して指定されたすべての検索条件が TRUE の場合にのみ、範囲内の各セルの個数を計算します。
引数のセルが空のセルの場合、 CountIfs はそれを 0 値として扱います。
You can use the wildcard characters, question mark (?) and asterisk (*), in criteria. ワイルドカード文字の疑問符は任意の 1 文字を表し、アスタリスクは任意の文字列を表します。 ワイルドカード文字ではなく、通常の文字として疑問符やアスタリスクを検索する場合は、その文字の前に、"~*" のように半角のティルダ (~) を付けます。