This is Abraham from ThinkAndDone.com, I had noticed you have visited us a number of times since yesterday.
You have to consider the underlying TVM equation that is used in finding RATE by MS Excel. There are two versions of it as listed below
PV(1+i)^N + PMT(1+i*type)[{(1+i)^N}-1]/i + FV = 0
The first one above compounds the present value and periodic payment at an interest rate i for n periods
FV(1+i)^-N + PMT(1+i*type)[1-{(1+i)^-N}]/i + PV = 0
The second one above discounts the future value and periodic payment at an interest rate i for n periods
These two equation will only hold true meaning will only equal ZERO when at least one or at most two of the three variables of FV, PV or PMT is negative
Any outgoing cash flow is a debit amount reflected by a negative number and any incoming cash flow is a credit amount reflected by a positive number
With that in mind, I would assume that PHPExcel RATE function should work as well
The RATE calculator from ThinkAndDone.com produces the following results for your investment using either of the 2 TVM equations with Newton Raphson method
PV = -100000
PMT = -1000
FV = 126068
NPER = 6
TYPE = 0
RATE = ?
Newton Raphson Method IRR Calculation with TVM equation = 0
TVM Eq. 1: PV(1+i)^N + PMT(1+i*type)[(1+i)^N -1]/i + FV = 0
f(i) = 126068 + -1000 * (1 + i * 0) [(1+i)^6 - 1)]/i + -100000 * (1+i)^6
f'(i) = (-1000 * ( 6 * i * (1 + i)^(5+0) - (1 + i)^6) + 1) / (i * i)) + 6 * -100000 * (1+0.1)^5
i0 = 0.1
f(i1) = -58803.71
f'(i1) = -985780.5
i1 = 0.1 - -58803.71/-985780.5 = 0.0403480693724
Error Bound = 0.0403480693724 - 0.1 = 0.059652 > 0.000001
i1 = 0.0403480693724
f(i2) = -7356.984
f'(i2) = -747902.9062
i2 = 0.0403480693724 - -7356.984/-747902.9062 = 0.0305112524399
Error Bound = 0.0305112524399 - 0.0403480693724 = 0.009837 > 0.000001
i2 = 0.0305112524399
f(i3) = -169.999
f'(i3) = -713555.4448
i3 = 0.0305112524399 - -169.999/-713555.4448 = 0.0302730102033
Error Bound = 0.0302730102033 - 0.0305112524399 = 0.000238 > 0.000001
i3 = 0.0302730102033
f(i4) = -0.0972
f'(i4) = -712739.5905
i4 = 0.0302730102033 - -0.0972/-712739.5905 = 0.0302728738276
Error Bound = 0.0302728738276 - 0.0302730102033 = 0 < 0.000001
IRR = 3.03%
Newton Raphson Method IRR Calculation with TVM equation = 0
TVM Eq. 2: PV + PMT(1+i*type)[1-{(1+i)^-N}]/i + FV(1+i)^-N = 0
f(i) = -100000 + -1000 * (1 + i * 0) [1 - (1+i)^-6)]/i + 126068 * (1+i)^-6
f'(i) = (--1000 * (1+i)^-6 * ((1+i)^6 - 6 * i - 1) /(i*i)) + (126068 * -6 * (1+i)^(-6-1))
i0 = 0.1
f(i1) = -33193.1613
f'(i1) = -378472.7347
i1 = 0.1 - -33193.1613/-378472.7347 = 0.0122970871033
Error Bound = 0.0122970871033 - 0.1 = 0.087703 > 0.000001
i1 = 0.0122970871033
f(i2) = 11403.9504
f'(i2) = -680214.7503
i2 = 0.0122970871033 - 11403.9504/-680214.7503 = 0.0290623077396
Error Bound = 0.0290623077396 - 0.0122970871033 = 0.016765 > 0.000001
i2 = 0.0290623077396
f(i3) = 724.4473
f'(i3) = -605831.2626
i3 = 0.0290623077396 - 724.4473/-605831.2626 = 0.0302580982453
Error Bound = 0.0302580982453 - 0.0290623077396 = 0.001196 > 0.000001
i3 = 0.0302580982453
f(i4) = 8.8061
f'(i4) = -600890.1339
i4 = 0.0302580982453 - 8.8061/-600890.1339 = 0.0302727533356
Error Bound = 0.0302727533356 - 0.0302580982453 = 1.5E-5 > 0.000001
i4 = 0.0302727533356
f(i5) = 0.0718
f'(i5) = -600829.8628
i5 = 0.0302727533356 - 0.0718/-600829.8628 = 0.0302728728509
Error Bound = 0.0302728728509 - 0.0302727533356 = 0 < 0.000001
IRR = 3.03%
The two TVM equation I listed earlier are applicable when interest is compounded discretely as in per period compounding (yearly, quarterly, monthly, weekly, daily) where as most bank accounts pay interest on savings or charge interest on loan when interest is compounded continuously (infinite compounding of interest) as opposed to discrete compounding
The TVM equations for continuous compounding use interest factors that are different from the ones in discretely compounded version
Here are the 2 TVM equations when interest is compounded continuously
PV eni + PMT ei*type[eni-1]/[ei-1] + FV = 0
or the equivalent
FV e-ni + PMT ei*type[1-e-ni]/[ei-1] + PV = 0
here e is the mathematical constant that has the value of 2.7182818284590452353602874713527
The RATE will be different when interest is compounded discretely as opposed to when it is compounded continuously.