+ Reply to Thread
Results 1 to 5 of 5

Trimming merge data to their respective columns removing hypens , dash , asterisk and so o

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Lightbulb Trimming merge data to their respective columns removing hypens , dash , asterisk and so o

    Hi Guys
    See attached file certains columns have data merged in one cell . I need to trim data to their respective columns , however some columns have some garbage like *CHN OR BEL' infront. Expected results are in blue to the right of sheet .

    Very tedious need to trim up 4000 lines .a pure head ache .

    Need formula to trim these data

    Thanking in advance for your kind help
    Attached Files Attached Files

  2. #2
    Forum Contributor stephenloky's Avatar
    Join Date
    07-10-2013
    Location
    Sao Paulo - Brazil
    MS-Off Ver
    Excel 2007
    Posts
    146

    Re: Trimming merge data to their respective columns removing hypens , dash , asterisk and

    Hey I've attached a sample to you see how can be done ... You need to think and study the 'special' cases for the dots and commas...good luck!
    sample prem 2.xlsx
    "The quieter you become, the more you are able to hear"

    Any reputation (*) points appreciated.

    "If you know yourself but not the enemy, for every victory gained, you will suffer defeat."

  3. #3
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Formula needed to trim mixed merge data to their respective columns removing hypens,dash

    Hi Guys

    As per annexed file data are both mixed and merge in certain columns that are not allocated to them, need formula to trim data to their respective columns.however some columns have some garbage like *CHN OR BEL' infront. Expected results are in red to the right of sheet.

    Very tedious need seriously formula to trim up 1000 lines .

    Thanks very much those who can help me
    Attached Files Attached Files

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Formula needed to trim mixed merge data to their respective columns removing hypens,da

    Here's a macro to clean it all up for you:
    Please Login or Register  to view this content.
    Last edited by Olly; 07-16-2014 at 02:30 PM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula needed to trim mixed merge data to their respective columns removing hypens,da

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules.

    As you have replies in both of your threads i'll merge them.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Inserting the data in to respective columns
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-11-2013, 03:53 PM
  2. [SOLVED] Removing part of a string (trimming a text)
    By mmtoure in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-04-2013, 01:13 PM
  3. Excel macro to merge columns with dash in between
    By bsambrano in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2012, 04:22 PM
  4. Removing a dash
    By The Phil in forum Excel General
    Replies: 4
    Last Post: 03-15-2010, 06:55 PM
  5. Removing everything after a dash
    By usy in forum Excel General
    Replies: 2
    Last Post: 10-04-2006, 08:43 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