Trim data

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
[TABLE="width: 1305"]
<colgroup><col><col><col span="6"><col></colgroup><tbody>[TR]
[TD="colspan: 9"]TRANSROAD - 01/06/18[/TD]
[/TR]
[TR]
[/TR]
[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]
[TR]
[TD]TR-0446[/TD]
[TD]S.F ENT [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] 546,468[/TD]
[TD] 546,468[/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0463[/TD]
[TD]FALAY [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] 409,851[/TD]
[TD] 409,851[/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0430[/TD]
[TD]LAURIANE [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] 546,468[/TD]
[TD] 546,468[/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0380[/TD]
[TD]SOLOMON [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] 956,290[/TD]
[TD] 956,290[/TD]
[TD] - [/TD]
[TD] K& SONS [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]JOB NO: [/TD]
[TD]PORT CHARGES [/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-0418[/TD]
[TD]KALONJI - P/C [/TD]
[TD] 76[/TD]
[TD] 76[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0460[/TD]
[TD]FALAY - P/C [/TD]
[TD] 117[/TD]
[TD] 117[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0454[/TD]
[TD]PEARL - P/C [/TD]
[TD] 117[/TD]
[TD] 117[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0377[/TD]
[TD]LUNGA - P/C [/TD]
[TD] 117[/TD]
[TD] 117[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0184[/TD]
[TD]OM METAL - CHEMICAL - REM+STOR [/TD]
[TD] 384[/TD]
[TD] 384[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]JOB NO: [/TD]
[TD]DELIVERY ORDER [/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-0381[/TD]
[TD]TESCO - DIAMOND [/TD]
[TD] 85[/TD]
[TD] 85[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] $ 2000.00 DEPOSIT [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/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-0090[/TD]
[TD]SHAZIA -MRKU4887520 - T299BKK - SAF [/TD]
[TD] 250[/TD]
[TD] [/TD]
[TD] 250[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD]TR-0283[/TD]
[TD]PAPILLON-TCKU1243114-T420DCC-SAF[/TD]
[TD] 295[/TD]
[TD] 295[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
[TR]
[TD]TR-0241[/TD]
[TD]ETS IGEC-CAIU7214813 -T553DMA-MAR[/TD]
[TD] 1,200[/TD]
[TD] - [/TD]
[TD] 1,200[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] CASH [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I have the above data , I need macro to delete all rows remain with the date that is on merged sells
and remain with only data that has PORT CHARGES

Thus if the macro trims correctly the data will look as follows

[TABLE="width: 1305"]
<colgroup><col><col><col span="6"><col></colgroup><tbody>[TR]
[TD="colspan: 9"]TRANSROAD - 01/06/18[/TD]
[/TR]
[TR]
[/TR]
[TR]
[TD]JOB NO: [/TD]
[TD]PORT CHARGES [/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-0418[/TD]
[TD]KALONJI - P/C [/TD]
[TD] 76[/TD]
[TD] 76[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0460[/TD]
[TD]FALAY - P/C [/TD]
[TD] 117[/TD]
[TD] 117[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0454[/TD]
[TD]PEARL - P/C [/TD]
[TD] 117[/TD]
[TD] 117[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0377[/TD]
[TD]LUNGA - P/C [/TD]
[TD] 117[/TD]
[TD] 117[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]TR-0184[/TD]
[TD]OM METAL - CHEMICAL - REM+STOR [/TD]
[TD] 384[/TD]
[TD] 384[/TD]
[TD] - [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] - [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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