+ Reply to Thread
Results 1 to 2 of 2

truncate data

Hybrid View

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    1

    truncate data

    I have data in column A looks like this "abc def (xxx: yyy zzzz)"

    What I want to do is to search every cell in column A and truncate the data after "(xxx:" as "yyy zzzz)" is variable and "(xxx:" is constant.

    Could anybody help me out. Thanks in advance.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: truncate data

    Select the column, replace :* with :

    Or, in code,

    Columns("A").Replace ":*", ":"
    Last edited by shg; 03-31-2010 at 10:35 PM.
    Entia non sunt multiplicanda sine necessitate

+ 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