I used this formula:
=IF(ISNUMBER(FIND("/",A1)),SUBSTITUTE(IF(LEN(A1)-LEN(SUBSTITUTE(A1,".",""))-1,MID(A1,FIND(CHAR(10),SUBSTITUTE(A1,".",CHAR(10),LEN(A1)-LEN(SUBSTITUTE(A1,".",""))-1))+1,1000),A1),RIGHT(A1,LEN(A1)-FIND("/",A1)+1),""),IF(LEN(A1)-LEN(SUBSTITUTE(A1,".",""))-1,MID(A1,FIND(CHAR(10),SUBSTITUTE(A1,".",CHAR(10),LEN(A1)-LEN(SUBSTITUTE(A1,".",""))-1))+1,1000),A1))
and most of the domains worked, with these exceptions (not sure how to insert an excel table in here):
Also, still not sure how to implement the user defined function.
Kpieper876,
Try this:
<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">media2.legacy.com/adiframe/3.0/5306.1/1369112/0/-1/size</td><td style="background-color: #C5D9F1;;">legacy.com</td><td style=";">media2.legacy.com</td><td style="background-color: #C5D9F1;;">legacy.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">media2.legacy.com/adiframe/3.0/5306.1/1369112/0/-1</td><td style="background-color: #C5D9F1;;">legacy.com</td><td style=";">media2.legacy.com</td><td style="background-color: #C5D9F1;;">legacy.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">cyclops.untd.com/adstream_sx.ads/eow.com/netzero/free/folder/content</td><td style="background-color: #C5D9F1;;">untd.com</td><td style=";">cyclops.untd.com</td><td style="background-color: #C5D9F1;;">untd.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">view.atdmt.com/ntb/iview/265266531/direct;;wi.160;hi.600/01</td><td style="background-color: #C5D9F1;;">atdmt.com</td><td style=";">view.atdmt.com</td><td style="background-color: #C5D9F1;;">atdmt.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">%20i-am-bored.com</td><td style="background-color: #C5D9F1;;">%20i-am-bored.com</td><td style=";">%20i-am-bored.com</td><td style="background-color: #C5D9F1;;">%20i-am-bored.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">cyclops.prod.untd.com/adstream_sx.ads/eow.com/netzero/free/folder/content</td><td style="background-color: #C5D9F1;;">untd.com</td><td style=";">cyclops.prod.untd.com</td><td style="background-color: #C5D9F1;;">untd.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style=";">media2.legacy.com/adiframe/3.0/5306.1</td><td style="background-color: #C5D9F1;;">legacy.com</td><td style=";">media2.legacy.com</td><td style="background-color: #C5D9F1;;">legacy.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style=";">at.atwoal.com/adiframe/3.0/5113.1/221794/0/-1</td><td style="background-color: #C5D9F1;;">atwoal.com</td><td style=";">at.atwoal.com</td><td style="background-color: #C5D9F1;;">atwoal.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style=";">174.34.166.235</td><td style="background-color: #C5D9F1;;">166.235</td><td style=";">174.34.166.235</td><td style="background-color: #C5D9F1;;">166.235</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style=";">view.atdmt.com/apm/iview/133012882/direct;wi.160;hi.600/01</td><td style="background-color: #C5D9F1;;">atdmt.com</td><td style=";">view.atdmt.com</td><td style="background-color: #C5D9F1;;">atdmt.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style=";">view.atdmt.com/apm/iview/112458055/direct;wi.160;hi.600/01</td><td style="background-color: #C5D9F1;;">atdmt.com</td><td style=";">view.atdmt.com</td><td style="background-color: #C5D9F1;;">atdmt.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style=";">test1.com//345</td><td style="background-color: #C5D9F1;;">test1.com</td><td style=";">test1.com</td><td style="background-color: #C5D9F1;;">test1.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style=";">test2.com//dddd</td><td style="background-color: #C5D9F1;;">test2.com</td><td style=";">test2.com</td><td style="background-color: #C5D9F1;;">test2.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style=";">test4.test3.com/ccc</td><td style="background-color: #C5D9F1;;">test3.com</td><td style=";">test4.test3.com</td><td style="background-color: #C5D9F1;;">test3.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style=";">optimized-by.rubiconproject.com/a/8191/13252</td><td style="background-color: #C5D9F1;;">rubiconproject.com</td><td style=";">optimized-by.rubiconproject.com</td><td style="background-color: #C5D9F1;;">rubiconproject.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style=";">optimized.-by.rubiconproject.com/a/8191/13252</td><td style="background-color: #C5D9F1;;">rubiconproject.com</td><td style=";">optimized.-by.rubiconproject.com</td><td style="background-color: #C5D9F1;;">rubiconproject.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style=";">test.test5.com</td><td style="background-color: #C5D9F1;;">test5.com</td><td style=";">test.test5.com</td><td style="background-color: #C5D9F1;;">test5.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style=";">test6.com</td><td style="background-color: #C5D9F1;;">test6.com</td><td style=";">test6.com</td><td style="background-color: #C5D9F1;;">test6.com</td><td style="text-align: center;;">True</td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">20</td><td style="font-weight: bold;text-align: center;color: #FF0000;;">data</td><td style="font-weight: bold;text-align: center;color: #FF0000;;">my formula</td><td style="font-weight: bold;text-align: center;color: #FF0000;;">your formula2</td><td style="font-weight: bold;text-align: center;color: #FF0000;;">your formula1</td><td style="font-weight: bold;text-align: center;color: #FF0000;;">verification</td></tr></tbody></table><p style="width:4.2em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet21</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B1</th><td style="text-align:left">=IF(<font color="Blue">ISNUMBER(<font color="Red">FIND(<font color="Green">"/",A1</font>)</font>),IF(<font color="Red">LEN(<font color="Green">LEFT(<font color="Purple">A1,FIND(<font color="Teal">"/",A1</font>)-1</font>)</font>)-LEN(<font color="Green">SUBSTITUTE(<font color="Purple">LEFT(<font color="Teal">A1,FIND(<font color="#FF00FF">"/",A1</font>)-1</font>),".",""</font>)</font>)-1,MID(<font color="Green">LEFT(<font color="Purple">A1,FIND(<font color="Teal">"/",A1</font>)-1</font>),FIND(<font color="Purple">CHAR(<font color="Teal">10</font>),SUBSTITUTE(<font color="Teal">LEFT(<font color="#FF00FF">A1,FIND(<font color="Navy">"/",A1</font>)-1</font>),".",CHAR(<font color="#FF00FF">10</font>),LEN(<font color="#FF00FF">LEFT(<font color="Navy">A1,FIND(<font color="Blue">"/",A1</font>)-1</font>)</font>)-LEN(<font color="#FF00FF">SUBSTITUTE(<font color="Navy">LEFT(<font color="Blue">A1,FIND(<font color="Red">"/",A1</font>)-1</font>),".",""</font>)</font>)-1</font>)</font>)+1,1000</font>),LEFT(<font color="Green">A1,FIND(<font color="Purple">"/",A1</font>)-1</font>)</font>),IF(<font color="Red">LEN(<font color="Green">A1</font>)-LEN(<font color="Green">SUBSTITUTE(<font color="Purple">A1,".",""</font>)</font>)-1,MID(<font color="Green">A1,FIND(<font color="Purple">CHAR(<font color="Teal">10</font>),SUBSTITUTE(<font color="Teal">A1,".",CHAR(<font color="#FF00FF">10</font>),LEN(<font color="#FF00FF">A1</font>)-LEN(<font color="#FF00FF">SUBSTITUTE(<font color="Navy">A1,".",""</font>)</font>)-1</font>)</font>)+1,1000</font>),A1</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C1</th><td style="text-align:left">=IFERROR(<font color="Blue">IF(<font color="Red">FIND(<font color="Green">"/",A1</font>)>0,LEFT(<font color="Green">A1,FIND(<font color="Purple">"/",A1</font>)-1</font>)</font>),A1</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">D1</th><td style="text-align:left">=IF(<font color="Blue">LEN(<font color="Red">C1</font>)-LEN(<font color="Red">SUBSTITUTE(<font color="Green">C1,".",""</font>)</font>)<2,C1,RIGHT(<font color="Red">C1,LEN(<font color="Green">C1</font>)-FIND(<font color="Green">CHAR(<font color="Purple">1</font>),SUBSTITUTE(<font color="Purple">C1,".",CHAR(<font color="Teal">1</font>),LEN(<font color="Teal">C1</font>)-LEN(<font color="Teal">SUBSTITUTE(<font color="#FF00FF">C1,".",""</font>)</font>)-1</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">E1</th><td style="text-align:left">=IF(<font color="Blue">B1=D1,"True","False"</font>)</td></tr></tbody></table></td></tr></table><br />
To post your examples, put borders around the range of the cells of your examples.
Then copy the range, and paste them here.
Markmzz