+ Reply to Thread
Results 1 to 7 of 7

Problem when calling function for simple calculation

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    23

    Problem when calling function for simple calculation

    I am trying to perform a calculation but instead i get either crazy results or no results at all. It is the first function i created, so i guess the mistake is either when declaring it or calling it. How is it fixed? The procedure:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Problem when calling function for simple calculation

    I think we need more to go on, such as an example where you think it is wrong.
    Good luck.

  3. #3
    Registered User
    Join Date
    02-03-2012
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Problem when calling function for simple calculation

    Quote Originally Posted by OnErrorGoto0 View Post
    I think we need more to go on, such as an example where you think it is wrong.
    Hmmm, first i thought it was in the calling procedure. I guess its in the numbers declaration.

    Tried with Long and Double but it didnt work.

    I have range from 0.001 to 2000.000

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Problem when calling function for simple calculation

    If you need decimals, then you need Doubles not Longs. Other than that we need a specific example that you think is wrong.

  5. #5
    Registered User
    Join Date
    02-03-2012
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Problem when calling function for simple calculation

    Quote Originally Posted by OnErrorGoto0 View Post
    If you need decimals, then you need Doubles not Longs. Other than that we need a specific example that you think is wrong.
    Please Login or Register  to view this content.
    Message box says that CO2em is -1 while it had to be 71.887

    Excel and windows decimal symbol problem?

  6. #6
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Problem when calling function for simple calculation

    That code makes no sense. Can you post the complete code? (note that EFCO2 is supposed to be one value, not an array)

  7. #7
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Problem when calling function for simple calculation

    Also crossposted here.

+ Reply to Thread

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.6.0 RC 1