+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    03-17-2010
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Results of my equation and function don't match

    Greetings! I'm a newer VBA programmer, and don't understand why the results of my VBA function don't match the result the same equation in a cell. Any thoughts?

    My equation: =(E8/((1/CD8)*(CI8-(D8^2)*CF8)^0.5))

    My function, where:
    B = CD8
    P = D8
    D = E8
    BSE2 = CI8
    ASE2 = CF8

    Function Zscore (B, P, D, BSE2, ASE2)
    Zscore = D / ((1 / B) * (BSE2 - (P ^ 2) * ASE2) ^ 0.5)
    End Function
    Last edited by NBVC; 03-17-2010 at 12:50 PM.

  2. #2
    Registered User
    Join Date
    03-17-2010
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Results of my equation and function don't match

    Please disregard. I mixed up my BSE2 and ASE2 when I went to use my function. Sometimes you get to staring at something for too long....

    Quote Originally Posted by danafer View Post
    Greetings! I'm a newer VBA programmer, and don't understand why the results of my VBA function don't match the result the same equation in a cell. Any thoughts?

    My equation: =(E8/((1/CD8)*(CI8-(D8^2)*CF8)^0.5))

    My function, where:
    B = CD8
    P = D8
    D = E8
    BSE2 = CI8
    ASE2 = CF8

    Function Zscore (B, P, D, BSE2, ASE2)
    Zscore = D / ((1 / B) * (BSE2 - (P ^ 2) * ASE2) ^ 0.5)
    End Function

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0