thank you martin I'm not that familiar with excel i would be more than grateful if you could tell me where to put this condition. many thanks