Usar a função
IRR Internal Rate of Return do Excel.
No caso de periodos de tempo não fixos usar
XIRR
Indicar os valores de compra negativos e as vendas ou valor das acções numa certa data positivos.
XIRR
Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic. To calculate the internal rate of return for a series of periodic cash flows, use the IRR function.
Syntax
XIRR(values,dates,guess)
Values is a series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive and one negative value.
Dates is a schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
Guess is a number that you guess is close to the result of XIRR.
Example
____A________B_____
1 Values Dates
2 -10,000 January 1, 2006
3 2,750 March 1, 2006
4 4,250 October 30, 2006
5 3,250 February 15, 2007
6 2,750 April 1, 2007
=XIRR(A2:A6,B2:B6,0.1)
The internal rate of return = 0.373362535 or 37.34%