extract data into excel cell from the 7th of the html table

mahi9752

New Member
Joined
Apr 28, 2016
Messages
4
I made a code to enter two inputs to the website and search to get into the new page of two tables(the html code is as below)
<html><head>
<title>IEC</title><style type="text/css"></style></head>


<body>
<form action="" method="GET">
<h2 align="CENTER">Importer Exporter Code</h2>


</form>
<table border="0">
<tbody><tr><th valign="TOP" align="LEFT" colspan="50"></th><th valign="TOP" align="LEFT" colspan="3"></th><th valign="TOP" align="LEFT" colspan="50"></th></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">0411021117</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC Allotment Date</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">15.09.2011</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">File Number</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">04/08/130/02067/AM12/ </td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">File Date</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">14.09.2011</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">0411021117</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">Party Name and Address</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">KAMADHENU EXPORTS <br>NO. 638, LIG-1, MMDA <br>MATHUR, <br>CHENNAI <br>PIN-600068<br></td></tr>




I have to extract the text(highlightedbyme) which is in the 7th row of the first table. As here , there is no table name or id. please, provide me a code or idea of how to get the data and store it into one excel cell.

I'm a starter in this coding.

Tanks in advance.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I made a code to enter two inputs to the website and search to get into the new page of two tables(the html code is as below)




<body>
<form action="" method="GET">
<h2 align="CENTER">Importer Exporter Code</h2>


</form>
<table border="0">
<tbody><tr><th valign="TOP" align="LEFT" colspan="50"></th><th valign="TOP" align="LEFT" colspan="3"></th><th valign="TOP" align="LEFT" colspan="50"></th></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">0411021117</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC Allotment Date</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">15.09.2011</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">File Number</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">04/08/130/02067/AM12/ </td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">File Date</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">14.09.2011</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">0411021117</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">Party Name and Address</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">KAMADHENU EXPORTS <br>NO. 638, LIG-1, MMDA <br>MATHUR, <br>CHENNAI <br>PIN-600068<br></td></tr>




I have to extract the text(highlightedbyme) which is in the 7th row of the first table. As here , there is no table name or id. please, provide me a code or idea of how to get the data and store it into one excel cell.

I'm a starter in this coding.

Tanks in advance.
 
Upvote 0
Oops!! here is the code

I made a code to enter two inputs to the website and search to get into the new page of two tables(the html code is as below)





<body>
<form action="" method="GET">
<h2 align="CENTER">Importer Exporter Code</h2>


</form>
<table border="0">
<tbody><tr><th valign="TOP" align="LEFT" colspan="50"></th><th valign="TOP" align="LEFT" colspan="3"></th><th valign="TOP" align="LEFT" colspan="50"></th></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">0411021117</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC Allotment Date</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">15.09.2011</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">File Number</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">04/08/130/02067/AM12/ </td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">File Date</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">14.09.2011</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">IEC</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">0411021117</td></tr>


<tr><td valign="TOP" align="LEFT" colspan="50">Party Name and Address</td><td valign="TOP" align="LEFT" colspan="3">:</td><td valign="TOP" align="LEFT" colspan="50">KAMADHENU EXPORTS <br>NO. 638, LIG-1, MMDA <br>MATHUR, <br>CHENNAI <br>PIN-600068<br></td></tr>
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,495
Members
449,088
Latest member
Melvetica

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