+ Reply to Thread
Results 1 to 5 of 5

Changing Cells in List that ends with certain text

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Changing Cells in List that ends with certain text

    I have a list of email address (~5797). Many of the email address are incomplete. The email address ends with ".c" or ".co" instead of ".com" This is the same for .net as well. However, all of the email addresses are unique by either there account name or domain name. Example: AndrewTest@Example.com. "AndrewTest" = account, and "Example.com" = domain. Does anyone know of a formula to do this automatically without me going through each individual one and changing it manually? I am not sure if there is an "IF" or "replace" formula to accomplish this.

    Thanks.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Changing Cells in List that ends with certain text

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Changing Cells in List that ends with certain text

    Maybe samething like this?

    Pls check the file

    Azumi
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Changing Cells in List that ends with certain text

    ie data at A1 so try this
    =LEFT(A1,FIND(".",A2,LEN(A1)-4))&INDEX({"com","com","net"},MATCH(REPLACE(A1,1,FIND(".",A2,LEN(A1)-4),),{"co","c","n"},0))

  5. #5
    Registered User
    Join Date
    11-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Changing Cells in List that ends with certain text

    Azumi,
    Your workbook helped. Thank you. Is there a way just replace the cell instead of populating it into the cell to the right? I would prefer not to have to move and replace every cell manually. Secondly, if I had an email address without a "com" of "net" (ie. andrew@test.) is there a way to auto populate a "com".

    Thanks.
    Andrew

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro Ends When Changing Page Orientation
    By danderson2692 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2013, 12:52 PM
  2. [SOLVED] Setting a range that ends where data ends?
    By Mgassma in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2013, 09:46 AM
  3. Replies: 3
    Last Post: 04-05-2012, 04:58 PM
  4. Count text that ends in certain letter
    By desk.doc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2007, 10:45 PM
  5. Replies: 3
    Last Post: 02-15-2006, 08:10 PM

Tags for this Thread

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