CUBESETCOUNT function

套用到
Microsoft 365 Excel Mac 版 Microsoft 365 Excel Excel 2024 Mac 版 Excel 2024 Excel 2021 Mac 版 Excel 2021 Excel 2019 Excel 2016 iPad 版 Excel Excel Web 應用程式 iPhone 版 Excel Android 版 Excel 平板電腦 Android 版 Excel 手機

This article describes the formula syntax and usage of the CUBESETCOUNT function in Microsoft Excel.

Description

Returns the number of items in a set.

Syntax

CUBESETCOUNT(set)

The CUBESETCOUNT function syntax has the following argument:

  • Set Required. A text string of a Microsoft Excel expression that evaluates to a set defined by the CUBESET function. Set can also be the CUBESET function, or a reference to a cell that contains the CUBESET function.

Remark

When the CUBESETCOUNT function evaluates, it temporarily displays a "#GETTING_DATA…" message in the cell before all of the data is retrieved.

Examples

=CUBESETCOUNT(A3)

=CUBESETCOUNT(CUBESET("Sales","[Product].[All Products].Children","Products",1,"[Measures].[Sales Amount]"))