Question

How do I write a macro in excel for the CAPM formula??

How do I write a macro in excel for the CAPM formula??

Homework Answers

Answer #1

Step 1: Go to File --> Options --> Customise Ribbon --> select 'Developer', to enable macros.

Step 2: Go to Developer tab --> press 'Record Macro'. It will show a dialog box and ask you to enter a name for the macro and where to store it. Suppose you give it the name 'CAPM' and store it in the current workbook. You can give a description if you want. Click OK.

Step 3: In the cell, where CAPM is to be calculated, enter the formula by linking it to the respective cells for risk-free rate, beta and market return. Press 'Enter'. Stop recording macro.

Step 4: For running the macro, press Alt key + Fn key + F8. It will open up a Macro dialog box. Click on your macro name to run it.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
How do I write a formula in a cell for Excel for this statement: "In cell...
How do I write a formula in a cell for Excel for this statement: "In cell B27, determine the hold time failure rate by using the SUM function to total the values in column I and then dividing that sum by the total number of calls overall in cell B6."
How would I write in excel a formula for started at 60 % and increase their...
How would I write in excel a formula for started at 60 % and increase their capacity factor by 16 % a year till they reached a 100% capacity factor. (This meant that the capacity factor for year 2, CF2, would be = CF1*(1+growth_rate), and stop once it hit 100%
how to use the WACC formula for beta with debt and equity? how to use CAPM...
how to use the WACC formula for beta with debt and equity? how to use CAPM to get cost of equity?
How do I calculate capacity- for a brewery- formula?
How do I calculate capacity- for a brewery- formula?
How do I fomulate standard deviation problem in excel
How do I fomulate standard deviation problem in excel
how do you get to that MR formula? The formula I have for my class is...
how do you get to that MR formula? The formula I have for my class is MR = chg in TR/chg in Q
PLEASE PROVIDE EXCEL FORMULA for A-D. I have the answer, I need the formula set up!!!!...
PLEASE PROVIDE EXCEL FORMULA for A-D. I have the answer, I need the formula set up!!!! I will thumbs up!! According to the Mortgage Bankers​ Association, 11% of U.S. mortgages were delinquent in Texas in the second quarter of last year. A delinquent mortgage is one that has missed at least one payment but has not yet gone to foreclosure. A random sample of six mortgages in Texas was selected. A) What is the probability that exactly one of these...
I am trying to figure out how to find the test statistic using Excel. I understand...
I am trying to figure out how to find the test statistic using Excel. I understand the formula- that I need to use parameter 'p' and 'normal distribution' ….z= sample proportion and minus the 'population portion' then we divide p*q and divide n -sample size. I understand how to populate the data in the formula. I just can't figure out how to solve this using Excel. (my only option with my class) I need step by step directions if possible....
How do I solve this in Excel: Let x be a normally distributed random variable with...
How do I solve this in Excel: Let x be a normally distributed random variable with mean 16 and standard deviation 14. Please express your answer as a number between 0 and 100. If you want to write 52%, please enter 52. What is the probability that x is between 14 and 28?
The proper way to write the sum formula to add cells A1 to B5 in Excel...
The proper way to write the sum formula to add cells A1 to B5 in Excel is =sum(A1B5) =sum(A1 to B5) @sum(A1..B5) =sum(A1:B5)