Change format

SDKBRK

Board Regular
Joined
Feb 1, 2003
Messages
162
I have a two large database that I need to merge and not have duplicates. I used this formula to find any matches and it works if the format is the same.

=IF(AND(C5=C6),"match","")

The problems is the format is different on each database on the column that I'm looking for duplicates. One has the numbers listed as 0306666 and the other 030-6666. I need both to have the 030-6666. How can I resolve the format problem and get rid of the duplicate numbers.

Thanks.
DK
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
L

Legacy 21301

Guest
=IF(SUBSTITUTE(C5,"-","")+0=SUBSTITUTE(C6,"-","")+0,"match","")
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,957
Messages
5,856,511
Members
431,819
Latest member
hellosunshine

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
Top