VBA Code Help

srinivasan1129

New Member
Joined
Apr 20, 2011
Messages
13
[TABLE="width: 1357"]
<tbody>[TR]
[TD]S.No[/TD]
[TD]Year[/TD]
[TD]Name / Number[/TD]
[TD]Rationcard Number[/TD]
[TD]Application_id[/TD]
[TD]Caste[/TD]
[TD]Village[/TD]
[TD]Applied Area(Ha)[/TD]
[TD]Irrigation Type[/TD]
[TD]MI Company[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2017-2018[/TD]
[TD]Jem[/TD]
[TD]521037[/TD]
[TD]00878539-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Srirangarajapuram[/TD]
[TD]0.7[/TD]
[TD]Drip[/TD]
[TD]EPC Industries Ltd.,[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2017-2018[/TD]
[TD]Ketty[/TD]
[TD]571480[/TD]
[TD]00905816-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Theiyar[/TD]
[TD]0.88[/TD]
[TD]Drip[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2017-2018[/TD]
[TD]Luck[/TD]
[TD]571347[/TD]
[TD]00921926-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Theiyar[/TD]
[TD]0.79[/TD]
[TD]Sprinkler[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2017-2018[/TD]
[TD]Mery[/TD]
[TD]537428[/TD]
[TD]01530818-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Magamayithirumani[/TD]
[TD]1[/TD]
[TD]Sprinkler[/TD]
[TD]EPC Industries Ltd.,[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2017-2018[/TD]
[TD]Putnik[/TD]
[TD]543199[/TD]
[TD]01605283-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Theiyar[/TD]
[TD]1[/TD]
[TD]Drip[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2017-2018[/TD]
[TD]Sunday[/TD]
[TD]570559[/TD]
[TD]01606482-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Pappanallur[/TD]
[TD]0.75[/TD]
[TD]Sprinkler[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]2017-2018[/TD]
[TD]But[/TD]
[TD]953692[/TD]
[TD]01607776-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Korakottai[/TD]
[TD]1.65[/TD]
[TD]Drip[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]2017-2018[/TD]
[TD]Kentlee[/TD]
[TD]571347[/TD]
[TD]03371669-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Theiyar[/TD]
[TD]0.81[/TD]
[TD]Drip[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]2017-2018[/TD]
[TD]Hatsun[/TD]
[TD]46757[/TD]
[TD]03383408-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Thennathur[/TD]
[TD]0.35[/TD]
[TD]Drip[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]2017-2018[/TD]
[TD]Agromen[/TD]
[TD]536558[/TD]
[TD]03386639-2017-18[/TD]
[TD]Other Caste[/TD]
[TD]Korakottai[/TD]
[TD]1.04[/TD]
[TD]Drip[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2018-2019[/TD]
[TD]James[/TD]
[TD]123456[/TD]
[TD]21353831-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Padur[/TD]
[TD]1.02[/TD]
[TD]Sprinkler[/TD]
[TD]Flowtech Power[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2018-2019[/TD]
[TD]David[/TD]
[TD]12341[/TD]
[TD]21515761-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Pennatagaram[/TD]
[TD]1.2[/TD]
[TD]Sprinkler[/TD]
[TD]Flowtech Power[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2018-2019[/TD]
[TD]Jery[/TD]
[TD]12412[/TD]
[TD]21637704-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Singampoondi[/TD]
[TD]0.9[/TD]
[TD]Sprinkler[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2018-2019[/TD]
[TD]Ken[/TD]
[TD]1412[/TD]
[TD]21826259-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Kothandapuram[/TD]
[TD]0.8[/TD]
[TD]Sprinkler[/TD]
[TD]Nagarjuna Fertilizer & Chemicals Ltd[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2018-2019[/TD]
[TD]Mike[/TD]
[TD]12412[/TD]
[TD]21966642-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Arunthodu[/TD]
[TD]0.92[/TD]
[TD]Drip[/TD]
[TD]Roots Irrigation Ltd.[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2018-2019[/TD]
[TD]Watson[/TD]
[TD]14214[/TD]
[TD]22571350-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Padur[/TD]
[TD]0.77[/TD]
[TD]Sprinkler[/TD]
[TD]EPC Industries Ltd.,[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]2018-2019[/TD]
[TD]Ebi[/TD]
[TD]1421[/TD]
[TD]22576376-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Mazhaiyur[/TD]
[TD]0.895[/TD]
[TD]Sprinkler[/TD]
[TD]EPC Industries Ltd.,[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]2018-2019[/TD]
[TD]Emy[/TD]
[TD]1241[/TD]
[TD]22872902-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Ramasamuthuram[/TD]
[TD]0.545[/TD]
[TD]Sprinkler[/TD]
[TD]EPC Industries Ltd.,[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]2018-2019[/TD]
[TD]Kiya[/TD]
[TD]1421[/TD]
[TD]23268903-2018-19[/TD]
[TD]Other Caste[/TD]
[TD]Ponnur[/TD]
[TD]1.27[/TD]
[TD]Sprinkler[/TD]
[TD]EPC Industries Ltd.,[/TD]
[/TR]
</tbody>[/TABLE]


I want to look up colunm by column and find text and number to arrive the following report can any one help me...


[TABLE="width: 1546"]
<tbody>[TR]
[TD]Irrigation type[/TD]
[TD]Company[/TD]
[TD="colspan: 2"]Nagarjuna[/TD]
[TD="colspan: 2"]EPC[/TD]
[TD="colspan: 2"]Premier[/TD]
[TD="colspan: 2"]Roots[/TD]
[TD="colspan: 2"]Jain[/TD]
[TD="colspan: 2"]Rivilus[/TD]
[TD="colspan: 2"]Flowtech[/TD]
[TD="colspan: 2"]Netafim[/TD]
[TD="colspan: 2"]Total[/TD]
[/TR]
[TR]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[TD]Application Count[/TD]
[TD]Applied Area (Ha.)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Total[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]9[/TD]
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[/TD]
[TD]Mr. Salesman A[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mr. Salesman B[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mr. Salesman C[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD]1[/TD]
[TD]1.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Raingun Total[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Salesman A has Following villages Theiyar, Korakottai
Salesman B has Following Villages Padur Singampoondi
Salesman C has follwoing Villages Kodandapuram, Arunthodu, Ponnur


Pls help in this regard
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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