• Essbase formulas total zero

    Author
    Topic
    #459466

    My Excel is totaling calculation to a 0.
    I want it to display 0.0

    The formulas are like below:
    =EssCell(end,”IT-“&B37,FT,curyr,month) – I am using Essbase with Excel.

    Displaying 0.0 is possible if I will alter the formula to a
    =Values(EssCell(end,”IT-“&B37,FT,curyr,month))
    However in order to do this I have to go and alter hundreds of cells one by one.

    Is there way to fomat the cell to show 0.0

    I have used Format>Cell>Number with 1 decimal – it does work for every value except when it is a zero.
    I had tried Custom but it works on selected 10% of the cells.

    Please, advise,
    thanks.

    Viewing 1 reply thread
    Author
    Replies
    • #1158603

      You’ll probably have more success if you ask this in one of the forums dedicated to EssBase.

    • #1158650

      Assuming that you wish to format an Excel range of cell(s).

        [*]Select the cell(s)
        [*]Key in Ctrl + 1
        [*]In the Format Cells window:
        [*]Select the Number tab
        [*]Select the Custom category
        [*]Enter “0.0” (without the quotes), in the Type box
        [*]Click “OK”

      [/list]

      • #1158685

        Hans,
        All Essbase forums I’ve tried are dead since 2002! 🙂

        wdwells,
        thanks for this solution. It works on cells that are not using Essbase formula.
        With Essbase – no go. I did use Value but it took me a day to add to half of cells.
        Another half will wait…thanks to all very much!

        • #1158691

          Post edited to comply with suggestions made by Hans.

          wdwells,
          thanks for this solution. It works on cells that are not using Essbase formula.
          With Essbase – no go. I did use Value but it took me a day to add to half of cells.
          Another half will wait…thanks to all very much!

          Try selecting the problematic range and then running the following code:[codebox]Public Sub ReworkFormula()
          Dim myfrm As String
          Dim rng As Range
          Dim ctr As Long
          Set rng = Selection
          With rng
          For ctr = 1 To .Cells.Count
          myfrm = .Cells(ctr).Formula
          If Left(myfrm, 9) = “=EssCell(” Then
          myfrm = Mid(myfrm, 2)
          .Cells(ctr).Formula = “=Value(” & myfrm & “)”
          End If
          Next
          End With
          End Sub
          [/codebox]

          • #1158710

            Shouldn’t it be

            .Cells(ctr).Formula = “=VALUE(” & myfrm & “)”

            By the way,

            myfrm = Right(myfrm, Len(myfrm) – 1)

            can be simplified to

            myfrm = Mid(myfrm, 2)

            • #1158713

              Shouldn’t it be

              .Cells(ctr).Formula = “=VALUE(” & myfrm & “)”

              By the way,

              myfrm = Right(myfrm, Len(myfrm) – 1)

              can be simplified to

              myfrm = Mid(myfrm, 2)

              Thank you Hans, on the first point, I blindly copied the formula from MS_fan’s oiginal post; on the second, I have habitually used this inelegant approach (bad habit).

              I will correct the code now.

    Viewing 1 reply thread
    Reply To: Essbase formulas total zero

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: