Remove dup values in a cell (212) 555-12341234

Concierge

New Member
Joined
Dec 16, 2010
Messages
1
I have a spread sheet where the last 4 digits of the phone are duplicated in some records, looking like (212) 555-12341234. Is there a way to remove the last 4 digits of the incorrect numbers only?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the Board!

So that we are able to provide a robust solution, could you provide a few more examples indicating the desired results the formula should deliver?

Thanks,

Matty
 
Upvote 0
if all of the phone numbers start the same way, with the area code in parenthesis, then you can do the following in a column next to all of the numbers:
Code:
  |------A--------------|------B-------|
1  (212) 555-1535         =LEFT(A1,14)
2  (212) 555-12341234   =LEFT(A2,14)
3  (212) 555-2213         =LEFT(A3,14)
4  (212) 555-15691569   =LEFT(A4,14)

Basically enter the formula =left(cell,14)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,971
Messages
6,175,732
Members
452,667
Latest member
vanessavalentino83

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