I generate a match formula programmatically (VBA, via a string inserted into the cell) as thus:
=IF((MATCH(1,--('Full Lease Term'!I2:I2000>0),0))/12="","",((MATCH(1,--('Full Lease Term'!I2:I2000>0),0))-1)/12)
(Having also tested this formula manually, I know it works!)
When it is inserted in the cell, excel inserts the '@' symbol prior to the worksheet name, giving me:
=IF((MATCH(1,--(@'Full Lease Term'!I2:I2000>0),0))/12="","",((MATCH(1,--(@'Full Lease Term'!I2:I2000>0),0))-1)/12)
This formula always returns an '#N/A' error, until I manually remove the '@'.
Could someone advise either how to stop excel inserting this symbol, or how to work around?
Hopefully this questions contains sufficient information - but please ask if further clarification required.