Thank you very much for reply ..
I need UDF or vba code for that purpose as it is part of another code