Date outputs in curly braces and causes #VALUE! error

CDienst

New Member
Joined
Jul 11, 2018
Messages
31
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.
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
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top