Identifying specific text format with IF statements

advaddi

New Member
Joined
Jul 31, 2018
Messages
6
Hi,

So for my job, i'm screening a list that has a ton of URLs. And accepting rejecting them on the basis of keywords in the url. For example: =IF(ISNUMBER(SEARCH(".edu",A2)),"Reject"," ")
Another category of words I need to reject are city/town websites like www.picayune.ms.us where the format is generally www.cityname.XY.us where XY are the state initials.

Is there a way to identify the .xy.us format with an auto reject condition?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
oh thats a smart way to consider that but it results in a #Value ! error because it says a value used in the formula is of the wrong data type.
 
Upvote 0
Thanks a lot for your help. While your answer did generate a value error, it was instrumental in helping me getting to the solution by factoring in an IFERROR
 
Upvote 0

Forum statistics

Threads
1,217,389
Messages
6,136,316
Members
450,003
Latest member
AnnetteP

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top