+ Reply to Thread
Results 1 to 6 of 6

Unable to Find the slope together with Vlookup

  1. #1
    Registered User
    Join Date
    04-26-2011
    Location
    Rotterdam
    MS-Off Ver
    Excel 2007
    Posts
    12

    Question Unable to Find the slope together with Vlookup

    Hi Guys,

    I have the following problem.
    I Need to calculate the slope to find my beta.
    The 'known y's' are the market returns that can be found on the MSCI index worksheet. They depend from which I need the data from. I used therefore a Vlookup function to link the appropriate date (to be found on sheet1 at c8 until C9) with the appropriate returns on the MSCI index.
    The 'known X's' are the stockreturns from the past year. I need them from every column from C62 until C 314.

    I therefore ended up with the Following formula to get the slope: =Slope(VLOOKUP(C8,'MSCI index'!A4:G17223,6,FALSE):(VLOOKUP(C9,'MSCI index'!A4:G17223,6,false)),C62:C314)
    But i always get in Return an error message, although i am 100 procent sure that my Vlookups are correct. Can anyone tell me what im doing wrong? The file is unfortunately too big to send.
    I ve been trying now for the past 2 hours, i would much appreciate your help!

    Best regards,

    Robbie

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Unable to Find the slope together with Vlookup

    You might try using the Evaluate Formula button on the Formula ribbon to check the intermedate stages in the evaluation of your formula. This is a very useful technique for debugging complex formulae.

  3. #3
    Registered User
    Join Date
    04-26-2011
    Location
    Rotterdam
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Unable to Find the slope together with Vlookup

    If I do both Vlookups apart then they give the correct number that belongs to identifier. But it fails when i put the : in between the 2 lookups to reflect my range.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Unable to Find the slope together with Vlookup

    Suggest posting a cut down version of the workbook which replicates the issue.

  5. #5
    Registered User
    Join Date
    04-26-2011
    Location
    Rotterdam
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Unable to Find the slope together with Vlookup

    No idea how to as everything is linked to my dataset. How can i save this as a zipfile?

    its only 11 mb, so email is no problem

  6. #6
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Unable to Find the slope together with Vlookup

    Suggest copy followed by Paste Special - Values to break the link. It will be interesting if the problem continues after this. Obviously only do this on a copy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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