Erica M.

asked • 01/25/23

Write a user defined function in VBA called 'Recommendation' that returns whether the stock you are analyzing is a buy (1), hold (0) or sell (-1).

You will have two parameter inputs: 1) a projected price for the stock (as determined by the analyst) and 2) the current market price. If the stock's projected price is more than $10 per share greater than the current market price the function will return a 1 indicating 'buy'. If the stock's projected price is more than $10 below (absolute value) the current market price then the function will return a -1 indicating 'sell'. Otherwise, if the projected price is within $10 of the current market price then the function will return a 0 indicating 'hold'. If Microsoft is currently selling for $183 per share, use the function to compute recommendations for the following projected prices: A) $170, B) $180, and C) $195. Report these output values in the Answers Tab using your function.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.