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
 

Some videos you may like

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
L

Legacy 21301

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

Watch MrExcel Video

Forum statistics

Threads
1,122,511
Messages
5,596,576
Members
414,079
Latest member
Frills

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