Delete Duplicate Between Two Columns - Criteria from Right

Blessy Clara

Board Regular
Joined
Mar 28, 2010
Messages
201
Hello - Please help me delete Data between Columns

I have two Columns of Data

I wanna delete the Data (repetitive between Columns)
To Note - the term may occur mutliple times in address as in Example Number 4, 7 - Search from Right and delete Common data occurring first from right

IDAddressCityResult
1
Po Box 197 Bassendean

<tbody>
</tbody>
BASSENDEAN

<tbody>
</tbody>
Po Box 197
2
15 Storey St Oak Flats

<tbody>
</tbody>
Oak Flats15 Storey St
3
232 Brokers Rd Mount Pleasant

<tbody>
</tbody>
Mount Pleasant232 Brokers Rd
4
494 - 496 Earlville Rd Earlville

<tbody>
</tbody>
Earlville494 - 496 Earlville Rd
5
622 Wickham Street Fortitude Valley

<tbody>
</tbody>
Fortitude Valley
622 Wickham Street

<tbody>
</tbody>
6
1st Floor Burswood House 90 Burswood Road

<tbody>
</tbody>

<tbody>
</tbody>
Burswood1st Floor Burswood House 90 Burswood Road (Nothing to delete here)
7
Adelaide Centre Ground Floor, 81 Flinders Street Adelaide

<tbody>
</tbody>
Adelaide
Adelaide Centre Ground Floor, 81 Flinders Street

<tbody>
</tbody>

<tbody>
</tbody>

Thank you for your time and efforts-
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Maybe this...

D2 copied copied down
=IF(ISNUMBER(SEARCH(C2&"|",B2&"|")),SUBSTITUTE(PROPER(B2),PROPER(C2),"",(LEN(B2)-LEN(SUBSTITUTE(PROPER(B2),PROPER(C2),"")))/LEN(C2)),B2)

Hope this helps

M.
 
Upvote 0
Hi Marcelo Branco

Thank you very very much for that formula, Yes it worked super cool :D
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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