$ 0 0 Thanks Praveen It just seems so messy with multiple if else's (see pic)Where do I find the UDF option - which function group is it in? Rgds