+ Reply to Thread
Results 1 to 5 of 5

Break the Lines

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Break the Lines

    Hi Team,

    Seeking a help here !!!

    I have some data which comes in one single row, wanted to break and group the details as per the output as shown below:

    i have also attached the test data for your reference. Can you please help me on this.

    Raw data :

    Name Block DATE Country Vehicle Type Name Block DATE Country Vehicle Type Name Block DATE Country Vehicle Type Name Block DATE Country Vehicle Type
    AAA 4 04-13-1993 India 2 BBB 2 04-11-2015 India 2 CCC 3 02-11-2019 India 4 DDD 5 07-09-1993 India 2

    Name Block DATE Country Vehicle Type
    AAA 4 04-13-1993 India 2
    BBB 2 04-11-2015 India 2
    CCC 3 02-11-2019 India 4
    DDD 5 07-09-1993 India 2
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Break the Lines

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,425

    Re: Break the Lines

    Does this macro do what you want...
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,681

    Re: Break the Lines

    Kamalakar M

    Do you need vba for this?
    Formula A4
    =A1 then copy to E4

    Formula in A5
    =IFERROR(INDEX($A$2:$T$2,1,(ROW(A1)-1)*5+COLUMN(A1)),"")
    copy to E5 then copy A5:E5 down

    vba
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Break the Lines

    Thanks a lot Rick.

    the solution was perfect. Thanks again

+ 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] need to break syntax to 2 or 3 lines
    By Srikanth H N in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2018, 07:14 AM
  2. Statement break into two lines
    By kop1ko in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2015, 04:01 PM
  3. Break down into multiple lines
    By jscalem in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2014, 06:13 PM
  4. [SOLVED] How do I break VBA code into two or more lines?
    By Kasama in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2012, 09:27 PM
  5. Boken Page Break Lines
    By xcelentform in forum Excel General
    Replies: 10
    Last Post: 10-20-2006, 09:25 AM
  6. Break cell into multiple lines by line break
    By Chia in forum Excel General
    Replies: 1
    Last Post: 08-20-2006, 01:40 AM
  7. Page Break lines
    By Steve DB in forum Excel General
    Replies: 3
    Last Post: 11-18-2005, 01:50 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