+ Reply to Thread
Results 1 to 6 of 6

Help on personalized "slope" function

  1. #1
    Registered User
    Join Date
    12-19-2009
    Location
    Rome, Italy
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Help on personalized "slope" function

    I have just found a personalized slope function and I don't understand how it works.

    Can you help me ?

    note: the "PersonalizedSLOPE" function is set in CELL CC187

    PersonalizedSlope(Volume1;Volume2;Cost1;Cost2)
    =ARGUMENT("Volume1";1)
    =ARGUMENT("Volume2";1)
    =ARGUMENT("Cost1";1)
    =ARGUMENT("Cost2";1)
    =RESULT(1)
    =(Cost2/Cost1)^(0,693147180559945/LN(Volume2/Volume1))
    =RETURN(CC187)


    HOUR | REVENUES | PERFORMANCE
    10 | € 88 | € 8,8
    20 | € 123 | € 6,2

    SLOPE: 0,5



    Note: PERFORMANCE is REVENUES/HOUR

    In this case values are

    [PersonalizedSlope(88;123;8,8;6,2)]
    Volume1= 88
    Volume2= 123
    Cost1= 8,8
    Cost2= 6,2


    My problem is that excel 2003 slope funtion return me a different value



    =SLOPE(D6:D7;C6:C7)

    note ( Y value first )

    =SLOPE(8,8:6,2;88:123)

    =0,076


    Why I have a different value ?
    How can I check the personalized slope function ?


    Thank you in advance

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Help on personalized "slope" function

    If that's a function that appears in your workbook, it is a custom function someone wrote in VBA. Post the workbook.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-19-2009
    Location
    Rome, Italy
    MS-Off Ver
    Excel 2003
    Posts
    2

    Red face Re: Help on personalized "slope" function

    Here the file.


    What does this function in your opinion ?

    Probably has nothing to do with the excel slope, but then what is ?

    thank you anyway
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Help on personalized "slope" function

    "Slope" is a defined name in the workbook. I don't have a clue what the formulas are supposed to do; they make no sense.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Help on personalized "slope" function

    These are XLM macros! As in "before VBA"! Haven't seen them in a while. I'm not sure there are even people around here who still know how to work them ....
    Last edited by teylyn; 12-19-2009 at 06:03 PM.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Help on personalized "slope" function

    After some serious digging in the brain box ....

    Here, I deleted some of the duplicate range names and made sure the macro functions have the workbook scope. Now the slope formula returns a result, instead of the error. You can see what the Slope function does in the FORMU sheet.

    It collects the four arguments provided in the function call and then calculates

    =(Cost2/Cost1)^(0.693147180559945/LN(Volume2/Volume1))

    I'm not sure if this is what you want and how it compares to the current built-in Excel slope function, but you can correct the calculation above to suit your needs.

    hth

+ 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