+ Reply to Thread
Results 1 to 6 of 6

Delete extra characters within a cell

  1. #1
    Registered User
    Join Date
    04-04-2007
    Posts
    4

    Delete extra characters within a cell

    I have a cell which is used to store a phone number the format normally is:

    xxx-xxx-xxxx where x= any number. When I brought this database base over from Access approximately 1100 cells came over with a format of this:

    xxx-xxxab-xxxx. Where ab equals 78 in 770 different cells and where ab = 70 in 330 cells. The 12,500 other cells came over normally and display correctly. I have tried using find/replace along with using wilcards. I can select the records perfectly, but how do I go about getting rid of those two extra characters in those cells? They are always in the same position in each of the 1100 cells.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Does this work?

    Assuming your information is in column A, use formula:

    =LEFT(A1,7)&RIGHT(A1,5) and fill that formula down as far as necessary.

    Let me know if that works.

  3. #3
    Registered User
    Join Date
    04-04-2007
    Posts
    4

    It works for that particular cell

    BigBas -- Thanks for the response, that works for the individual cell say for instance G1, however in G4 it repeats the phone number from G1 into the H4 cell, but it does the trick, however I'm hoping there is a way to do all cells at one time like using G~ for instance where the tilde says I don't care what the cell number is just perform the equation all the way down the column. Thanks for the help.

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    You can enter that formula into G1, then fill the formula down as far as you would like. It will automatically accomodate the Cell for that row.

    To fill, enter the formula into G1. Then, point ur mouse cursor to the lower right side of the cell, until the cursor turns into a shape like this: + Once it turns into a plus shape, click, and drag down as far as you would like.

    Let me know if that works.

  5. #5
    Registered User
    Join Date
    04-04-2007
    Posts
    4
    BigBas -- My sincere thanks, it worked perfectly. I wasn't dragging the formula down the column the correct way. Again, thank you very much.

  6. #6
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    I'm glad I could help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1