[Excel] Formula to extract email from a cell

This is a useful formula to extract an email out from the string in a cell.

=TRIM(MID(SUBSTITUTE(" "&$A1&" "," ",REPT(" ",40)),FIND(REPT("@",COLUMNS($A1:A1)),SUBSTITUTE(SUBSTITUTE(" "&$A1&" "," ",REPT(" ",40)),"@",REPT("@",COLUMNS($A1:A1)),COLUMNS($A1:A1)))-40,80))

:)

Comments

Popular posts from this blog

[Magento] Create Contact Form with Dynamic Recipient

bin/sh^M: bad interpreter: No such file or directory