다음을 통해 공유


WorksheetFunction.Quartile Method (Excel)

Returns the quartile of a data set. Quartiles often are used in sales and survey data to divide populations into groups. For example, you can use QUARTILE to find the top 25 percent of incomes in a population.

중요

This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality.

For more information about the new functions, see the Quartile_Inc and Quartile_Exc methods.

Syntax

.Quartile(Arg1, Arg2)

A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

필수

Variant

Array - the array or cell range of numeric values for which you want the quartile value.

Arg2

필수

Double

Quart - indicates which value to return.

Return Value

Double

Remarks

If quart equals

QUARTILE returns

0

Minimum value

1

First quartile (25th percentile)

2

Median value (50th percentile)

3

Third quartile (75th percentile)

4

Maximum value

  • If array is empty, QUARTILE returns the #NUM! error value.

  • If quart is not an integer, it is truncated.

  • If quart < 0 or if quart > 4, QUARTILE returns the #NUM! error value.

  • MIN, MEDIAN, and MAX return the same value as QUARTILE when quart is equal to 0 (zero), 2, and 4, respectively.

참고 항목

개념

WorksheetFunction Object

WorksheetFunction Object Members