Greetings Excel Wizards,
Long-time (years) lurker here and am finally stumped with a question I can't find a solution for anywhere in the forum.
I am trying to utilize the MIRR() function with a dynamic number of periods without building a values table. For the 'values' argument in the function I want to be able to repeat the value in B2 for a specified number of years. My thought was to use the Rept() function, but it returns a string of comma separated values instead of an array of values. This results in a #Value ! error.
Here is the bugger I've been trying to make work: =MIRR((B1&REPT(","&B2,B4-1)&","&B3),B5,B6).
Seems like it should be simple enough, but I'm at a wall. Below is a demonstration table with all the inputs I'll be using in my workbook. I'll clarify that this formula will be filled-right for similar inputs in columns C,D,etc so it needs to be able to work with relative references.
Any help is much appreciated!
[TABLE="class: grid, width: 191"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Initial Investment[/TD]
[TD="align: right"]-10000[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Period Returns[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Exit Period[/TD]
[TD="align: right"]9000[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]# years[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Discount Rate[/TD]
[TD="align: right"]5.50%[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD]Reinvest Rate[/TD]
[TD="align: right"]5%[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD]MIRR[/TD]
[TD="align: center"]#Value ![/TD]
[/TR]
</tbody>[/TABLE]
Long-time (years) lurker here and am finally stumped with a question I can't find a solution for anywhere in the forum.
I am trying to utilize the MIRR() function with a dynamic number of periods without building a values table. For the 'values' argument in the function I want to be able to repeat the value in B2 for a specified number of years. My thought was to use the Rept() function, but it returns a string of comma separated values instead of an array of values. This results in a #Value ! error.
Here is the bugger I've been trying to make work: =MIRR((B1&REPT(","&B2,B4-1)&","&B3),B5,B6).
Seems like it should be simple enough, but I'm at a wall. Below is a demonstration table with all the inputs I'll be using in my workbook. I'll clarify that this formula will be filled-right for similar inputs in columns C,D,etc so it needs to be able to work with relative references.
Any help is much appreciated!
[TABLE="class: grid, width: 191"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Initial Investment[/TD]
[TD="align: right"]-10000[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Period Returns[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Exit Period[/TD]
[TD="align: right"]9000[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]# years[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Discount Rate[/TD]
[TD="align: right"]5.50%[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD]Reinvest Rate[/TD]
[TD="align: right"]5%[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD]MIRR[/TD]
[TD="align: center"]#Value ![/TD]
[/TR]
</tbody>[/TABLE]