Skip to content
Apr 19 / Administrator



Writes numeric value to a cube cell


CellPutN(numVal, Cube, Dim1Element, Dim2Element [,?DimNElement]);


numVal - numeric value to write to cube
Cube - The name of the cube from which you want to retrieve a value.
Dim1Element, Dim2Element [,?DimNElement] - Dimension elements which define that cell.
Important - Remember that these dimension elements should be in the same order as in the cube. So if a cube has Products, Months and Calculation dimensions in order; function should first use element from Products, then from Months and then from Calculation dimension

Return Type:



CellPutN(15, 'Sales', 'ProductName1', 'Jan', 'Quantity');

One Comment

leave a comment
  1. Code Snippets / Apr 28 2012

    Code to accumulate the cube values:

    oldVal = CellGetN(‘Sales’, ‘Product1′, ‘Actual Version’, ‘Jan’);
    newVal = NVALUE + oldVal;

    CellPutN(newVal, ‘Sales’, ‘Product1′, ‘Actual Version’, ‘Jan’);

Leave a Comment

Thank you for Downloading.

Please input valid email id so that we can send you download link.

Email id Required.

We respect your privacy and never share your email id with anybody.