Thanks alot Amit for the quick reply, im getting an error with the command you provided:
"The Expression or Sub-expression at position 4 in the 'if' function uses an invalid data type. (IES 10037)"
im not too sure what that means. Thanks again.
Ademola