Hi Ptrblck,
thanks for this. I think i may be on to a winner, something was delivering a Nan to the BCE term. Think i may have solved it, will update with the solution in a day or so (depending on if the solution works  )
thanks again for your help,
chaslie