• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

extracting email addresses

Hi Team,

i got this text file from our IT Group wherein i need to extract the email address per row. i tried this formula but i can't seems to figure out how to obtain the correct answer.

=IFERROR(TRIM(LEFT(SUBSTITUTE(MID(A1,SEARCH("tdcx.com",A1),SEARCH(" ",A1,SEARCH("tdcx.com",A1))-SEARCH("tdcx.com",A1)),"-",REPT(" ",255)),255)),"")

kindly assist please.

Thanks in advance
Rhon
 

Attachments

  • Book1.xlsx
    11 KB · Views: 7
With Power query

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Extracted Text Between Delimiters" = Table.TransformColumns(Source, {{"Column1", each Text.BetweenDelimiters(_, """", """"), type text}}),
    #"Filtered Rows" = Table.SelectRows(#"Extracted Text Between Delimiters", each ([Column1] <> ""))
in
    #"Filtered Rows"
 
Back
Top