=IF(MID(RIGHT(E1,4),1,1)=".",RIGHT(E1,3),"none")
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"DK" wrote:
I have a directory listing for all the files in a particular drive.
With excel macros, I have extracted filenames with extension in column
E. like filename.xxx
i need to extract the extensions in Column F. Now, column E does not
have all files with extensions.
Extension should be extracted with a condition of having a dot and 3
letter extension.
Can someone please help me in writing a small code?