Trim data

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
TRANSROAD - 01/06/18
JOB NO: WHARFAGE : USD APPROVEDDIFFTSHS APPROVEDDIFFREMARKS
TR-0506BALLEYA ENT - 6,694,028 6,694,028
TR-0446S.F ENT - 546,468 546,468 -
TR-0463FALAY - 409,851 409,851 -
TR-0430LAURIANE - 546,468 546,468 -
TR-0380SOLOMON - 956,290 956,290 - K& SONS
- -
JOB NO: PORT CHARGES USD APPROVED DIFF TSHS APPROVED DIFFREMARKS
TR-0418KALONJI - P/C 76 76 - -
TR-0460FALAY - P/C 117 117 - -
TR-0454PEARL - P/C 117 117 - -
TR-0377LUNGA - P/C 117 117 - -
TR-0184OM METAL - CHEMICAL - REM+STOR 384 384 - -
- -
JOB NO: DELIVERY ORDER USD APPROVED DIFF TSHS APPROVED DIFFREMARKS
TR-0381TESCO - DIAMOND 85 85 - - $ 2000.00 DEPOSIT
- -
JOB NO: DEMURRAGE USD APPROVED DIFF TSHS APPROVED DIFFREMARKS
TR-0090SHAZIA -MRKU4887520 - T299BKK - SAF 250 250 - CASH
TR-0283PAPILLON-TCKU1243114-T420DCC-SAF 295 295 - - CASH
TR-0241ETS IGEC-CAIU7214813 -T553DMA-MAR 1,200 - 1,200 - CASH

<colgroup><col><col><col span="6"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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

TRANSROAD - 01/06/18
JOB NO: PORT CHARGES USD APPROVED DIFF TSHS APPROVED DIFFREMARKS
TR-0418KALONJI - P/C 76 76 - -
TR-0460FALAY - P/C 117 117 - -
TR-0454PEARL - P/C 117 117 - -
TR-0377LUNGA - P/C 117 117 - -
TR-0184OM METAL - CHEMICAL - REM+STOR 384 384 - -

<colgroup><col><col><col span="6"><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,423
Messages
6,119,398
Members
448,892
Latest member
amjad24

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