Hi Akashwani,
I have performed this formula but unfortunately i got empty cell. I am providing more details. I have sheet1 values are:
<table width="257" border="0" cellpadding="0" cellspacing="0"><col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:4717;width:97pt" width="129"> <col style="width:48pt" width="64"> <tbody><tr style="mso-height-source:userset;height:28.5pt" height="38"> <td class="xl65" style="height:28.5pt;width:48pt" width="64" height="38">Pcode</td> <td class="xl65" style="width:97pt" width="129">Locality</td> <td class="xl65" style="width:48pt" width="64">State</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0800</td> <td>DARWIN</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0810</td> <td>TIWI</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0810</td> <td>WAGAMAN</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0810</td> <td>WANGURI</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0812</td> <td>NORTHLAKES</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0812</td> <td>SANDERSON</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0812</td> <td>WOODLEIGH GARDENS</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0812</td> <td>WULAGI</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0820</td> <td>THE NARROWS</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0820</td> <td>WINNELLIE</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0820</td> <td>WOOLNER</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0828</td> <td>BERRIMAH</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0828</td> <td>KNUCKEY LAGOON</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0829</td> <td>HOLTZE</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0829</td> <td>PINELANDS</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0830</td> <td>ARCHER</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0830</td> <td>DRIVER</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0830</td> <td>DURACK</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0830</td> <td>FARRAR</td> <td>NT</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">0830</td> <td>GRAY</td> <td>NT</td> </tr> </tbody></table>
I have sheet2 where i want to display selected records based on Pcode when user eneter Postcode in cell and press enter and that will display corresponding Pcode below. Colums names are different on both sheets. Below is the sheet2 look
<table width="287" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:5668;width:116pt" width="155"> <col style="mso-width-source:userset;mso-width-alt:4827;width:99pt" width="132"> <tbody><tr style="mso-height-source:userset;height:27.75pt" height="37"> <td class="xl66" style="height:27.75pt;width:116pt" width="155" height="37"> <table width="287" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:5668;width:116pt" width="155"> <col style="mso-width-source:userset;mso-width-alt:4827;width:99pt" width="132"> <tbody><tr style="mso-height-source:userset;height:27.75pt" height="37"> <td class="xl66" style="height:27.75pt;width:116pt" width="155" height="37"> <table width="662" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:19382;width:398pt" width="530"> <col style="mso-width-source:userset;mso-width-alt:4827;width:99pt" width="132"> <tbody><tr style="mso-height-source:userset;height:27.75pt" height="37"> <td class="xl66" style="height:27.75pt;width:398pt" width="530" height="37">enter a postcode</td> <td style="width:99pt" width="132">
</td> </tr> <tr style="mso-height-source:userset;height:47.25pt" height="63"> <td class="xl65" style="height:47.25pt" height="63">0810 (cell where user will enter value and press enter)</td> <td valign="top" align="left">
<table cellpadding="0" cellspacing="0"> <tbody><tr> <td style="height:47.25pt;width:99pt" width="132" height="63">
</td> </tr> </tbody></table> </td> </tr> <tr style="mso-height-source:userset;height:26.25pt" height="35"> <td class="xl67" style="height:26.25pt" height="35">Suburb</td> <td class="xl67" style="border-left:none">State</td> </tr> <tr style="mso-height-source:userset;height:23.25pt" height="31"> <td class="xl68" style="height:23.25pt;border-top:none" height="31">WANGURI</td> <td class="xl68" style="border-top:none;border-left:none">NT</td> </tr> <tr style="mso-height-source:userset;height:31.5pt" height="42"> <td class="xl68" style="height:31.5pt;border-top:none" height="42">(More records will be filled here)</td> <td class="xl68" style="border-top:none;border-left:none"> </td> </tr> </tbody></table></td> <td style="width:99pt" width="132">
</td> </tr> <tr style="mso-height-source:userset;height:47.25pt" height="63"> <td class="xl65" style="height:47.25pt" height="63">Please help with vlookup formula. I have tried but no success.
</td> <td valign="top" align="left">
</td> </tr> <tr style="mso-height-source:userset;height:26.25pt" height="35"> <td class="xl67" style="height:26.25pt" height="35">
</td> <td class="xl67" style="border-left:none">
</td> </tr> <tr style="mso-height-source:userset;height:23.25pt" height="31"> <td class="xl68" style="height:23.25pt;border-top:none" height="31">
</td> <td class="xl68" style="border-top:none;border-left:none">
</td> </tr> <tr style="mso-height-source:userset;height:31.5pt" height="42"> <td class="xl68" style="height:31.5pt;border-top:none" height="42">
</td> <td class="xl68" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">
</td> <td>
</td> </tr> </tbody></table></td> <td style="width:99pt" width="132">
</td> </tr> <tr style="mso-height-source:userset;height:47.25pt" height="63"> <td class="xl65" style="height:47.25pt" height="63">
</td> <td valign="top" align="left">
</td> </tr> <tr style="mso-height-source:userset;height:26.25pt" height="35"> <td class="xl67" style="height:26.25pt" height="35">
</td> <td class="xl67" style="border-left:none">
</td> </tr> <tr style="mso-height-source:userset;height:23.25pt" height="31"> <td class="xl68" style="height:23.25pt;border-top:none" height="31">
</td> <td class="xl68" style="border-top:none;border-left:none">
</td> </tr> <tr style="mso-height-source:userset;height:31.5pt" height="42"> <td class="xl68" style="height:31.5pt;border-top:none" height="42"> </td> <td class="xl68" style="border-top:none;border-left:none"> </td> </tr> </tbody></table>