You do it by finding things around it and using them to split the string up using mid like so:
<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >IF lookup 1 = 2008 AND (lookup 2 <> 0 OR lookup 3 > 0) THEN lookup 4 = Y IF lookup 5 = 2007 THEN lookup 6 = Y</td><td >Lookup</td><td >Start Char</td><td >End Char</td><td >Retreive</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td > </td><td style="text-align:right; ">1</td><td style="text-align:right; ">4</td><td style="text-align:right; ">13</td><td >lookup 1</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td > </td><td style="text-align:right; ">2</td><td style="text-align:right; ">25</td><td style="text-align:right; ">33</td><td >lookup 2</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td > </td><td style="text-align:right; ">3</td><td style="text-align:right; ">42</td><td style="text-align:right; ">51</td><td >lookup 3</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >D2</td><td >=FIND("=",A1)</td></tr><tr><td >E2</td><td >=TRIM(MID<span style=' color:008000; '>(A1,4,FIND<span style=' color:#0000ff; '>("=",A1)</span>-4)</span>)</td></tr><tr><td >C3</td><td >=FIND("(",A1)+1</td></tr><tr><td >D3</td><td >=FIND("<",A1)-1</td></tr><tr><td >E3</td><td >=TRIM(MID<span style=' color:008000; '>(A1,FIND<span style=' color:#0000ff; '>("(",A1)</span>+1,FIND<span style=' color:#0000ff; '>("<",A1)</span>-1-FIND<span style=' color:#0000ff; '>("(",A1)</span>-1)</span>)</td></tr><tr><td >C4</td><td >=FIND("OR ",A1)+3</td></tr><tr><td >D4</td><td >=FIND(">",A1,C4)</td></tr><tr><td >E4</td><td >=TRIM(MID<span style=' color:008000; '>(A1,FIND<span style=' color:#0000ff; '>("OR ",A1)</span>+3,FIND<span style=' color:#0000ff; '>(">",A1,C4)</span>-FIND<span style=' color:#0000ff; '>("OR ",A1)</span>-3)</span>)</td></tr></table></td></tr></table> <br />
Excel tables to the web - Excel Jeanie Html 4
Your if formula doesn't look like an Excel formula though, you don't use THEN in an Excel if formula