extract data from sheet 1 to sheet 2

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
I have a sheet columns a to i

I need a macro to that will read sheet 2 cell a1 in which i will plug truck number example TR-0506 , The macro then needs to go to sheet 1 search cell a1 where it finds the truck and then pull all those rows a to i starting row a3 as a2 will have headers

I need a summary kind of details of that truck so that i dont have to use CTRL F and waste time
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
[TABLE="width: 1305"]
<colgroup><col><col><col span="6"><col></colgroup><tbody>[TR]
[TD]JOB NO: [/TD]
[TD]WHARFAGE : [/TD]
[TD]USD [/TD]
[TD]APPROVED[/TD]
[TD]DIFF[/TD]
[TD]TSHS [/TD]
[TD]APPROVED[/TD]
[TD]DIFF[/TD]
[TD]REMARKS [/TD]
[/TR]
[TR]
[TD]TR-0506[/TD]
[TD]BALLEYA ENT [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] 6,694,028[/TD]
[TD] [/TD]
[TD] 6,694,028[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
The macro should ignore any merged cells as one header in the data is the day e.g 01/08/2018
where the data of that day begins and then followed by 02/08/2018 merged cell where again the
data of that begins
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

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