+ Reply to Thread
Results 1 to 7 of 7

eliminate words

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    eliminate words

    dear sir

    could u please kindly help and how to write the vba code
    we have thousand data change like that

    questions answer
    ab: 350 cd: 6 2015-07-20efgh 350 6 20/7/2015
    cd: 510 rt: 1 510 1
    cd: 510 rt: 1 510 1
    cd: 510 rt: 2 510 2

    pls kindly find attached file and help

    Thanks
    Tom
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-26-2014
    Location
    Moscow, Russia
    MS-Off Ver
    MSE 10, MSE 13
    Posts
    179

    Re: eliminate words

    Hello, Tom!

    Look at the attachment. Is it what were expected?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best wishes and have a nice day!

  3. #3
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: eliminate words

    Does this help?

    Use this formula for the first column of data: =MID(k2,5, 7)
    Use this formula for the second column of data: =MID(l2,5, 7)
    Use this formula for the third column of data: =MID(m2,6,2) &"/" & MID(m2,9,2) &"/" & MID(m2,1,4)

    Assumes your data is in the k, l, and m columns, as in your spreadsheet.

    Copy and paste these formulas for all required rows.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: eliminate words

    Rioran, nice formula

    It doesnt work for the date though, so try this 1 for the date...
    =IF(M2="","",DATEVALUE(LEFT(M2,10)))
    formatted as date
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: eliminate words

    HihkTom,

    you can try below 2 code's in module..

    Please Login or Register  to view this content.
    OR

    Please Login or Register  to view this content.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: eliminate words

    This kills A-Z, spaces, and colons.

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  7. #7
    Forum Contributor
    Join Date
    09-26-2014
    Location
    Moscow, Russia
    MS-Off Ver
    MSE 10, MSE 13
    Posts
    179

    Re: eliminate words

    FDibbins, hello! Thanks for notifying about formula, but I just didn't add it to the list. Though it's still in the attached file.

+ 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. Replies: 1
    Last Post: 06-15-2015, 03:25 PM
  2. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  3. Replies: 5
    Last Post: 09-02-2014, 03:49 PM
  4. [SOLVED] Extract numbers from a list and eliminate words
    By ryangodammit in forum Excel General
    Replies: 25
    Last Post: 05-28-2014, 07:23 AM
  5. How can you eliminate a list of words out of a database using a macro
    By MORACH87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2013, 11:55 PM
  6. Replies: 3
    Last Post: 11-28-2012, 04:00 AM
  7. Replies: 1
    Last Post: 04-04-2012, 07:15 PM

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