how do you add a formula in excel to remove invalid email addresses?









up vote
1
down vote

favorite












How do you add a formula into excel that will scrub all invalid email addresses? I have a list I purchased of 1 million people that I would like to send my newsletter too, but I do not have much knowledge on using formulas.










share|improve this question

















  • 1




    What is your criteria for an email address being "invalid?" Would it just be malformed (i.e. missing the '@' symbol, missing the server, etc.) or are you trying to strip email address that are no longer active? Follow-up question, if malformed is what you're looking to filter, then why would a purchased list have those? Seems to me that if you paid money for it that it would come with complete addresses.
    – zugzwang
    Mar 27 '14 at 19:32










  • Just use RegEx, though 1 million e-mails seem like an awful lot to match.
    – Manhattan
    Mar 27 '14 at 20:22














up vote
1
down vote

favorite












How do you add a formula into excel that will scrub all invalid email addresses? I have a list I purchased of 1 million people that I would like to send my newsletter too, but I do not have much knowledge on using formulas.










share|improve this question

















  • 1




    What is your criteria for an email address being "invalid?" Would it just be malformed (i.e. missing the '@' symbol, missing the server, etc.) or are you trying to strip email address that are no longer active? Follow-up question, if malformed is what you're looking to filter, then why would a purchased list have those? Seems to me that if you paid money for it that it would come with complete addresses.
    – zugzwang
    Mar 27 '14 at 19:32










  • Just use RegEx, though 1 million e-mails seem like an awful lot to match.
    – Manhattan
    Mar 27 '14 at 20:22












up vote
1
down vote

favorite









up vote
1
down vote

favorite











How do you add a formula into excel that will scrub all invalid email addresses? I have a list I purchased of 1 million people that I would like to send my newsletter too, but I do not have much knowledge on using formulas.










share|improve this question













How do you add a formula into excel that will scrub all invalid email addresses? I have a list I purchased of 1 million people that I would like to send my newsletter too, but I do not have much knowledge on using formulas.







excel email-validation






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 27 '14 at 19:29









user3470109

1112




1112







  • 1




    What is your criteria for an email address being "invalid?" Would it just be malformed (i.e. missing the '@' symbol, missing the server, etc.) or are you trying to strip email address that are no longer active? Follow-up question, if malformed is what you're looking to filter, then why would a purchased list have those? Seems to me that if you paid money for it that it would come with complete addresses.
    – zugzwang
    Mar 27 '14 at 19:32










  • Just use RegEx, though 1 million e-mails seem like an awful lot to match.
    – Manhattan
    Mar 27 '14 at 20:22












  • 1




    What is your criteria for an email address being "invalid?" Would it just be malformed (i.e. missing the '@' symbol, missing the server, etc.) or are you trying to strip email address that are no longer active? Follow-up question, if malformed is what you're looking to filter, then why would a purchased list have those? Seems to me that if you paid money for it that it would come with complete addresses.
    – zugzwang
    Mar 27 '14 at 19:32










  • Just use RegEx, though 1 million e-mails seem like an awful lot to match.
    – Manhattan
    Mar 27 '14 at 20:22







1




1




What is your criteria for an email address being "invalid?" Would it just be malformed (i.e. missing the '@' symbol, missing the server, etc.) or are you trying to strip email address that are no longer active? Follow-up question, if malformed is what you're looking to filter, then why would a purchased list have those? Seems to me that if you paid money for it that it would come with complete addresses.
– zugzwang
Mar 27 '14 at 19:32




What is your criteria for an email address being "invalid?" Would it just be malformed (i.e. missing the '@' symbol, missing the server, etc.) or are you trying to strip email address that are no longer active? Follow-up question, if malformed is what you're looking to filter, then why would a purchased list have those? Seems to me that if you paid money for it that it would come with complete addresses.
– zugzwang
Mar 27 '14 at 19:32












Just use RegEx, though 1 million e-mails seem like an awful lot to match.
– Manhattan
Mar 27 '14 at 20:22




Just use RegEx, though 1 million e-mails seem like an awful lot to match.
– Manhattan
Mar 27 '14 at 20:22












3 Answers
3






active

oldest

votes

















up vote
1
down vote













If your e-mails are in A column, go in the B column and in the B1 cell and copy paste this code:



=AND(FIND("@",A1),FIND(".",A1),ISERROR(FIND(" ",A1)))


Then, go down and left on the B1 cell so you can copy and paste the code to the other cells.
Hope that helps!
At the valid e-mails, it will give you true.






share|improve this answer





























    up vote
    0
    down vote













    In some conditions if you want to go the weird route. Conditionally format the column to mark all good addresses green. Then sort by color. bam all your valid emails are at the top in a single range.






    share|improve this answer



























      up vote
      0
      down vote













      This one worked for me (excel 2016):



      =AND(FIND("@";B2);FIND(".";B2);ISERROR(FIND(" ";B2)))


      props to @user3211903



      Just replace all instances of "B2" with the name of the cell your email is located (eg. A1).






      share|improve this answer




















        Your Answer






        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f22697346%2fhow-do-you-add-a-formula-in-excel-to-remove-invalid-email-addresses%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        1
        down vote













        If your e-mails are in A column, go in the B column and in the B1 cell and copy paste this code:



        =AND(FIND("@",A1),FIND(".",A1),ISERROR(FIND(" ",A1)))


        Then, go down and left on the B1 cell so you can copy and paste the code to the other cells.
        Hope that helps!
        At the valid e-mails, it will give you true.






        share|improve this answer


























          up vote
          1
          down vote













          If your e-mails are in A column, go in the B column and in the B1 cell and copy paste this code:



          =AND(FIND("@",A1),FIND(".",A1),ISERROR(FIND(" ",A1)))


          Then, go down and left on the B1 cell so you can copy and paste the code to the other cells.
          Hope that helps!
          At the valid e-mails, it will give you true.






          share|improve this answer
























            up vote
            1
            down vote










            up vote
            1
            down vote









            If your e-mails are in A column, go in the B column and in the B1 cell and copy paste this code:



            =AND(FIND("@",A1),FIND(".",A1),ISERROR(FIND(" ",A1)))


            Then, go down and left on the B1 cell so you can copy and paste the code to the other cells.
            Hope that helps!
            At the valid e-mails, it will give you true.






            share|improve this answer














            If your e-mails are in A column, go in the B column and in the B1 cell and copy paste this code:



            =AND(FIND("@",A1),FIND(".",A1),ISERROR(FIND(" ",A1)))


            Then, go down and left on the B1 cell so you can copy and paste the code to the other cells.
            Hope that helps!
            At the valid e-mails, it will give you true.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 28 '14 at 16:56

























            answered Mar 28 '14 at 16:28









            user3211903

            193




            193






















                up vote
                0
                down vote













                In some conditions if you want to go the weird route. Conditionally format the column to mark all good addresses green. Then sort by color. bam all your valid emails are at the top in a single range.






                share|improve this answer
























                  up vote
                  0
                  down vote













                  In some conditions if you want to go the weird route. Conditionally format the column to mark all good addresses green. Then sort by color. bam all your valid emails are at the top in a single range.






                  share|improve this answer






















                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    In some conditions if you want to go the weird route. Conditionally format the column to mark all good addresses green. Then sort by color. bam all your valid emails are at the top in a single range.






                    share|improve this answer












                    In some conditions if you want to go the weird route. Conditionally format the column to mark all good addresses green. Then sort by color. bam all your valid emails are at the top in a single range.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 27 '15 at 22:40









                    Matt

                    1




                    1




















                        up vote
                        0
                        down vote













                        This one worked for me (excel 2016):



                        =AND(FIND("@";B2);FIND(".";B2);ISERROR(FIND(" ";B2)))


                        props to @user3211903



                        Just replace all instances of "B2" with the name of the cell your email is located (eg. A1).






                        share|improve this answer
























                          up vote
                          0
                          down vote













                          This one worked for me (excel 2016):



                          =AND(FIND("@";B2);FIND(".";B2);ISERROR(FIND(" ";B2)))


                          props to @user3211903



                          Just replace all instances of "B2" with the name of the cell your email is located (eg. A1).






                          share|improve this answer






















                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            This one worked for me (excel 2016):



                            =AND(FIND("@";B2);FIND(".";B2);ISERROR(FIND(" ";B2)))


                            props to @user3211903



                            Just replace all instances of "B2" with the name of the cell your email is located (eg. A1).






                            share|improve this answer












                            This one worked for me (excel 2016):



                            =AND(FIND("@";B2);FIND(".";B2);ISERROR(FIND(" ";B2)))


                            props to @user3211903



                            Just replace all instances of "B2" with the name of the cell your email is located (eg. A1).







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jul 27 '16 at 8:59









                            dimitrisscript

                            12




                            12



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f22697346%2fhow-do-you-add-a-formula-in-excel-to-remove-invalid-email-addresses%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                這個網誌中的熱門文章

                                How to read a connectionString WITH PROVIDER in .NET Core?

                                In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

                                Museum of Modern and Contemporary Art of Trento and Rovereto