Hello
I'm setting up a name to output a date. The date is pulled from cell A3 using Mid/Substitute/Find/Len and turned into a number with Value. By itself, the formula works fine to output a date, but when I put the name representing this formula into another formula, the date ends up being output in curly braces and causes an error. The date being output is also dependent on the column the formula is in.
Evaluating the formula that this is in gets to this step =-PL("1..900",$B$8,{43297},{43303}) and then gives the error. I don't understand where the curly braces come from. The PL function is from an add-in, but works fine if I put =-PL("1..900",$B$8,43297,43303) in a cell,so it's not a problem with the PL function. Also, I'm aware that the first "Date Error" doesn't really do anything since the Value will just error with a text string like that, but I'm pretty sure it doesn't do any harm there, it should just trigger the IfError. The date formulas by themselves output a function date that works fine.
Anybody know where the curly braces come from in this instance or have a workaround?
Thanks
I'm setting up a name to output a date. The date is pulled from cell A3 using Mid/Substitute/Find/Len and turned into a number with Value. By itself, the formula works fine to output a date, but when I put the name representing this formula into another formula, the date ends up being output in curly braces and causes an error. The date being output is also dependent on the column the formula is in.
Code:
=IFERROR(VALUE(IF(COLUMN()=5,MID('Profit And Loss'!$A$3,FIND("|",SUBSTITUTE('Profit And Loss'!$A$3," ","|",2))+1,FIND("|",SUBSTITUTE('Profit And Loss'!$A$3," ","|",3))-FIND("|",SUBSTITUTE('Profit And Loss'!$A$3," ","|",2))-1),IF(COLUMN()=7,MID('Profit And Loss'!$A$3,FIND("|",SUBSTITUTE('Profit And Loss'!$A$3," ","|",10))+1,FIND("|",SUBSTITUTE('Profit And Loss'!$A$3," ","|",11))-FIND("|",SUBSTITUTE('Profit And Loss'!$A$3," ","|",10))),"Date Error"))),"Date Error")
Evaluating the formula that this is in gets to this step =-PL("1..900",$B$8,{43297},{43303}) and then gives the error. I don't understand where the curly braces come from. The PL function is from an add-in, but works fine if I put =-PL("1..900",$B$8,43297,43303) in a cell,so it's not a problem with the PL function. Also, I'm aware that the first "Date Error" doesn't really do anything since the Value will just error with a text string like that, but I'm pretty sure it doesn't do any harm there, it should just trigger the IfError. The date formulas by themselves output a function date that works fine.
Anybody know where the curly braces come from in this instance or have a workaround?
Thanks