सामाग्री

# IRR Function [VBA]

Calculates the internal rate of return for an investment.

यस k, कार्य वा वस्तुले प्रयोगयोग्य कार्यक्रम कोडमा एक मोड्युलमा प्रयोग गरिएको Option VBASupport 1 विधानसहितका अगाडि सक्षम गरिएको छ।

### Syntax:

    IRR(ValueArray as Double , [Guess as Variant]) As Double

### Return value:

Double

### Parameters:

ValueArray: The array of values of the cash-flow. The values represent cash flow values at regular intervals, at least one value must be negative (payments), and at least one value must be positive (income).

Guess: An initial estimate at what the IRR will be.

### त्रुटि सङ्केतहरू

5 अवैध कार्य-विधि कल

### Example:

    REM ***** BASIC *****
    Option VBASupport 1
    Sub ExampleIRR
     Dim cashFlow(0 to 3) As Double
     cashFlow(0) = -10000
     cashFlow(1) = 3500
     cashFlow(2) = 7600
     cashFlow(3) = 1000
     irrValue = IRR(cashFlow) * 100
     Print irrValue ' returns 11.3321028236252 . The internal rate of return of the cash flow.
    End Sub

सम्बन्धित शीर्षक

IRR function in CALC

VBA financial functions