• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

Find forumla for Excel

I am trying to filter out bad data in a spreadsheet full of emails, looks like we got hit with some spammers to one of our sites and flooded our email lists with random junk, what I'd like to do is make a forumla, that i can put in row A column 1, then copy it down and it'd flag any emails that do NOT contain a valid domain.

basically if column a contains .com, .org, .net, .??, etc etc
full list --  http://data.iana.org/TLD/tlds-alpha-by-domain.txt

so it'd flag a valid entry with the number one, anything else would be blank.

is what im asking possible ?

Thanks.
0
justin33234
Asked:
justin33234
  • 2
1 Solution
 
aikimarkCommented:
I noticed that you have both CA and INFO in your list.  They are both valid high level domain names.
0
 
aikimarkCommented:
Never mind.  I understand why you posted that.

I imported that text into one of my worksheets and added a column of "TRUE" values.  I named this range ValidTLDs.

AC	TRUE
AD	TRUE
AE	TRUE
AERO	TRUE

Open in new window


I then code the following in A1
=VLOOKUP(MID(B1,LOOKUP(2^15,FIND(".",B1,ROW(INDIRECT("1:"&LEN(B1)))))+1,255),ValidTLDs,2,FALSE)

Open in new window


This will either result in TRUE or #N/A value.
0
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now