I've added this to some of the other existing functions on the sheet and the whole thing looks a lot better now. Cheers.