find demurage smartly without CTRL F

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
I have sheet 1 that looks as follows

[TABLE="width: 507"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]JOB NO: [/TD]
[TD]WHARFAGE : [/TD]
[TD]USD [/TD]
[/TR]
[TR]
[TD]TR-0506[/TD]
[TD]BALLEYA ENT [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0446[/TD]
[TD]S.F ENT [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0463[/TD]
[TD]FALAY [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0430[/TD]
[TD]LAURIANE [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0380[/TD]
[TD]SOLOMON [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]JOB NO: [/TD]
[TD]PORT CHARGES [/TD]
[TD] USD [/TD]
[/TR]
[TR]
[TD]TR-0418[/TD]
[TD]KALONJI - P/C [/TD]
[TD] 76[/TD]
[/TR]
[TR]
[TD]TR-0460[/TD]
[TD]FALAY - P/C [/TD]
[TD] 117[/TD]
[/TR]
[TR]
[TD]TR-0454[/TD]
[TD]PEARL - P/C [/TD]
[TD] 117[/TD]
[/TR]
[TR]
[TD]TR-0377[/TD]
[TD]LUNGA - P/C [/TD]
[TD] 117[/TD]
[/TR]
[TR]
[TD]TR-0184[/TD]
[TD]OM METAL - CHEMICAL - REM+STOR [/TD]
[TD] 384[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]JOB NO: [/TD]
[TD]DELIVERY ORDER [/TD]
[TD] USD [/TD]
[/TR]
[TR]
[TD]TR-0381[/TD]
[TD]TESCO - DIAMOND [/TD]
[TD] 85[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
On sheet 2 i have the follow

[TABLE="width: 74"]
<colgroup><col></colgroup><tbody>[TR]
[TD]TR-0719-18[/TD]
[/TR]
[TR]
[TD]TR-0788-18[/TD]
[/TR]
[TR]
[TD]TR-0663-18[/TD]
[/TR]
[TR]
[TD]TR-0697-18[/TD]
[/TR]
[TR]
[TD]TR-0698-18[/TD]
[/TR]
[TR]
[TD]TR-0715-18[/TD]
[/TR]
[TR]
[TD]TR-0645-18[/TD]
[/TR]
[TR]
[TD]TR-0666-18[/TD]
[/TR]
[TR]
[TD]TR-0683-18[/TD]
[/TR]
[TR]
[TD]TR-0745-18[/TD]
[/TR]
[TR]
[TD]TR-0775-18[/TD]
[/TR]
[TR]
[TD]TR-0569-18[/TD]
[/TR]
[TR]
[TD]TR-0623-18[/TD]
[/TR]
[TR]
[TD]TR-0643-18[/TD]
[/TR]
[TR]
[TD]TR-0717-18[/TD]
[/TR]
[TR]
[TD]TR-0502-18[/TD]
[/TR]
[TR]
[TD]TR-0594-18[/TD]
[/TR]
[TR]
[TD]TR-0609-18[/TD]
[/TR]
[TR]
[TD]TR-0667-18[/TD]
[/TR]
[TR]
[TD]TR-0702-18[/TD]
[/TR]
[TR]
[TD]TR-0722-18[/TD]
[/TR]
[TR]
[TD]TR-0730-18[/TD]
[/TR]
[TR]
[TD]TR-0759-18[/TD]
[/TR]
[TR]
[TD]TR-0761-18[/TD]
[/TR]
[TR]
[TD]TR-0504-18[/TD]
[/TR]
[TR]
[TD]TR-0517-18[/TD]
[/TR]
[TR]
[TD]TR-0534-18[/TD]
[/TR]
[TR]
[TD]TR-0535-18[/TD]
[/TR]
[TR]
[TD]TR-0536-18[/TD]
[/TR]
[TR]
[TD]TR-0537-18[/TD]
[/TR]
[TR]
[TD]TR-0559-18[/TD]
[/TR]
[TR]
[TD]TR-0567-18[/TD]
[/TR]
[TR]
[TD]TR-0568-18[/TD]
[/TR]
[TR]
[TD]TR-0592-18[/TD]
[/TR]
[TR]
[TD]TR-0595-18[/TD]
[/TR]
[TR]
[TD]TR-0602-18[/TD]
[/TR]
[TR]
[TD]TR-0603-18[/TD]
[/TR]
[TR]
[TD]TR-0604-18[/TD]
[/TR]
[TR]
[TD]TR-0605-18[/TD]
[/TR]
[TR]
[TD]TR-0610-18[/TD]
[/TR]
[TR]
[TD]TR-0611-18[/TD]
[/TR]
[TR]
[TD]TR-0614-18[/TD]
[/TR]
[TR]
[TD]TR-0615-18[/TD]
[/TR]
[TR]
[TD]TR-0617-18[/TD]
[/TR]
[TR]
[TD]TR-0618-18[/TD]
[/TR]
[TR]
[TD]TR-0621-18[/TD]
[/TR]
[TR]
[TD]TR-0638-18[/TD]
[/TR]
[TR]
[TD]TR-0641-18[/TD]
[/TR]
[TR]
[TD]TR-0642-18[/TD]
[/TR]
[TR]
[TD]TR-0644-18[/TD]
[/TR]
[TR]
[TD]TR-0646-18[/TD]
[/TR]
[TR]
[TD]TR-0647-18[/TD]
[/TR]
[TR]
[TD]TR-0648-18[/TD]
[/TR]
[TR]
[TD]TR-0655-18[/TD]
[/TR]
[TR]
[TD]TR-0658-18[/TD]
[/TR]
[TR]
[TD]TR-0660-18[/TD]
[/TR]
[TR]
[TD]TR-0661-18[/TD]
[/TR]
[TR]
[TD]TR-0662-18[/TD]
[/TR]
[TR]
[TD]TR-0665-18[/TD]
[/TR]
[TR]
[TD]TR-0668-18[/TD]
[/TR]
[TR]
[TD]TR-0669-18[/TD]
[/TR]
[TR]
[TD]TR-0670-18[/TD]
[/TR]
[TR]
[TD]TR-0672-18[/TD]
[/TR]
[TR]
[TD]TR-0674-18[/TD]
[/TR]
[TR]
[TD]TR-0675-18[/TD]
[/TR]
[TR]
[TD]TR-0676-18[/TD]
[/TR]
[TR]
[TD]TR-0678-18[/TD]
[/TR]
[TR]
[TD]TR-0679-18[/TD]
[/TR]
[TR]
[TD]TR-0686-18[/TD]
[/TR]
[TR]
[TD]TR-0691-18[/TD]
[/TR]
[TR]
[TD]TR-0692-18[/TD]
[/TR]
[TR]
[TD]TR-0701-18[/TD]
[/TR]
[TR]
[TD]TR-0703-18[/TD]
[/TR]
[TR]
[TD]TR-0704-18[/TD]
[/TR]
[TR]
[TD]TR-0705-18[/TD]
[/TR]
[TR]
[TD]TR-0706-18[/TD]
[/TR]
[TR]
[TD]TR-0707-18[/TD]
[/TR]
[TR]
[TD]TR-0708-18[/TD]
[/TR]
[TR]
[TD]TR-0709-18[/TD]
[/TR]
[TR]
[TD]TR-0712-18[/TD]
[/TR]
[TR]
[TD]TR-0714-18[/TD]
[/TR]
[TR]
[TD]TR-0716-18[/TD]
[/TR]
[TR]
[TD]TR-0723-18[/TD]
[/TR]
[TR]
[TD]TR-0724-18[/TD]
[/TR]
[TR]
[TD]TR-0725-18[/TD]
[/TR]
[TR]
[TD]TR-0726-18[/TD]
[/TR]
[TR]
[TD]TR-0727-18[/TD]
[/TR]
[TR]
[TD]TR-0728-18[/TD]
[/TR]
[TR]
[TD]TR-0732-18[/TD]
[/TR]
[TR]
[TD]TR-0733-18[/TD]
[/TR]
[TR]
[TD]TR-0736-18[/TD]
[/TR]
[TR]
[TD]TR-0737-18[/TD]
[/TR]
[TR]
[TD]TR-0746-18[/TD]
[/TR]
[TR]
[TD]TR-0747-18[/TD]
[/TR]
[TR]
[TD]TR-0749-18[/TD]
[/TR]
[TR]
[TD]TR-0750-18[/TD]
[/TR]
[TR]
[TD]TR-0751-18[/TD]
[/TR]
[TR]
[TD]TR-0757-18[/TD]
[/TR]
[TR]
[TD]TR-0760-18[/TD]
[/TR]
[TR]
[TD]TR-0767-18[/TD]
[/TR]
[TR]
[TD]TR-0777-18[/TD]
[/TR]
[TR]
[TD]TR-0783-18[/TD]
[/TR]
[TR]
[TD]TR-0785-18[/TD]
[/TR]
[TR]
[TD]TR-0794-18[/TD]
[/TR]
[TR]
[TD]TR-0797-18[/TD]
[/TR]
[TR]
[TD]TR-0803-18[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
I want macro to go into sheet 1 look for the word DEMURAGE on b2 as header

Then see below that row on A1 where it will find the job number pasted above and pick its equivalent value on c and plug it besides the job numbers quoted , doing it through control f is long
 
Last edited:
Upvote 0
Otherwise if this is not possible to find delete all rows and remain with only those rows that header DEMMURAGE on column b
 
Upvote 0
Manually done data

[TABLE="width: 1305"]
<colgroup><col><col><col span="6"><col></colgroup><tbody>[TR]
[TD="colspan: 9"]TRANSROAD - 28/07/18[/TD]
[/TR]
[TR]
[/TR]
[TR]
[TD]JOB NO: [/TD]
[TD]DEMURRAGE [/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-0281[/TD]
[TD]S.R DISTILLER-MSKU9095342-T454DJQ-MAERKS[/TD]
[TD] 380[/TD]
[TD] [/TD]
[TD] 380[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD]TR-0204[/TD]
[TD]NOVELTY-TCKU9875621-T604CAZ-MAERSK [/TD]
[TD] 1,735[/TD]
[TD] [/TD]
[TD] 1,735[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD]TR-0125[/TD]
[TD]KANKU-MNBU3021232-T848DCY-MAERSK [/TD]
[TD] 800[/TD]
[TD] [/TD]
[TD] 800[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD]TR-0381[/TD]
[TD]TESCO-TEMU7515641-T139CKG- EVERGREEN [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CHQ -$60 [/TD]
[/TR]
[TR]
[TD]TR-0427[/TD]
[TD]BELTEXCO-TCKU3572042-T369BGZ-CMA [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CHQ -$112 [/TD]
[/TR]
[TR]
[TD]TR-0513[/TD]
[TD]ZAMBIAN-TRHU3065025-T108BVH- CMA [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CHQ -$176 [/TD]
[/TR]
[TR]
[TD]TR-0514[/TD]
[TD]AFRIGREEN-APHU6252053-T411CZS-CMA [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CHQ -$352 [/TD]
[/TR]
[TR]
[TD]ELVIN [/TD]
[TD]CMA CGM [/TD]
[TD] 3,000[/TD]
[TD] [/TD]
[TD] 3,000[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD="colspan: 9"]TRANSROAD - 30/07/18[/TD]
[/TR]
[TR]
[/TR]
[TR]
[TD]JOB NO: [/TD]
[TD]DEMURRAGE [/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-0281[/TD]
[TD]S.R DISTILLER-MSKU9095342-T454DJQ-MAERKS[/TD]
[TD] 380[/TD]
[TD] 380[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD]TR-0204[/TD]
[TD]NOVELTY-TCKU9875621-T604CAZ-MAERSK [/TD]
[TD] 1,735[/TD]
[TD] [/TD]
[TD] 1,735[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD]TR-0125[/TD]
[TD]KANKU-MNBU3021232-T848DCY-MAERSK [/TD]
[TD] 800[/TD]
[TD] 800[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD]ELVIN [/TD]
[TD]CMA CGM [/TD]
[TD] 3,000[/TD]
[TD] [/TD]
[TD] 3,000[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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