+ Reply to Thread
Results 1 to 2 of 2

How to convert repeated lines content to other column

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Brazil
    MS-Off Ver
    2007
    Posts
    1

    How to convert repeated lines content to other column

    Like this image:
    Capturar.JPG

    Thanks in advance

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: How to convert repeated lines content to other column

    Something like this.....
    To give you an idea, please refer to the data in the following table.

    A B C D E F G H I
    1 Type Item
    2 Vegetable Broccoli Fruit Apple Mango Grapes - -
    3 Fruit Apple Vegetable Broccoli Spinach Pumpkin Potato -
    4 Vegetable Spinach
    5 Fruit Mango
    6 Vegetable Pumpkin
    7 Fruit Grapes
    8 Vegetable Potato

    Array Formulas are used. Array Formula requires special key strokes Ctrl+Shift+Enter instead of just Enter. i.e. after typing the formula in the formula cell, don't press Enter alone but hold down the Ctrl+Shift keys together and then hit Enter. And if you paste an array formula in the formula cell, after the formula is pasted, select the formula cell, press F2 (Function Key), hold down the Ctrl+Shift keys together and then hit Enter. When an array formula is entered correctly, you will notice in the formula bar that the formula gets surrounded by the Curly Brackets { } and if you don't see the curly brackets in the formula bar, try again by following the steps mentioned above to re-enter the formula as an array formula.

    Assuming that your data is in the range A2:B20 (row 1 being the headers), try these array formulas.

    In D2 (To get an sorted unique list of Types)
    Please Login or Register  to view this content.
    and then copy down until you get blank cells.

    In E2
    Please Login or Register  to view this content.
    and then copy across to I2 and down. ( or as per your need.)
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. [SOLVED] convert repeated entries in column to single row
    By kevincoxshall in forum Excel General
    Replies: 3
    Last Post: 08-05-2013, 03:46 PM
  2. Replies: 14
    Last Post: 05-10-2013, 03:27 PM
  3. code not working - remove repeated lines
    By SillySox in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2013, 03:29 AM
  4. Excel shows altered/repeated content in cell
    By Black sheep in forum Excel General
    Replies: 1
    Last Post: 01-12-2008, 05:09 PM
  5. remove repeated lines
    By alisev in forum Excel General
    Replies: 1
    Last Post: 06-07-2007, 03:21 AM

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