+ Reply to Thread
Results 1 to 5 of 5

colums to row, autofill row with data,

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Bergen, Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    colums to row, autofill row with data,

    I have an excel sheet filled with cable information. Each cable have its own row. Cables contain groups of wire with a specific square eg. 10x2x0,6 mm2 where 10 is the group, 2 is the two wires within each group and 2,5 is the square of the wire. These wires have different colours. In this example the first wire (or the first wire in the first group) is Red (RD), the second wire (or the second wire in the first group)is WH(White) the third wire (or the first wire in the second group) is Red (RD) and the four`th wire (or the second wire in the second group) is Yellow (YE), the five`th wire (or the first wire in the third group) is Red(RD) and the six`th wire (or the second wire in the third group ) is Green (GY) etc. The colours are given in the row for each cable.

    I want a new row for each of the colours in the colums. If i have to do this job manually i first need to:

    1) Insert new rows, in accordance with NBR_GROUPS and NBR_WIRES column for the cable.
    2) copy the information of the cable in these new rows.
    3) Insert two new colums; WIRE GROUP and WIRE NO after CROSS_SECTION_UNIT and fill these column up according to the NBR_GROUPS and NBR_WIRES information.
    4) Copy all the WIRE_COLOUR and paste special and transpose.

    Example of excel file attached (sheet 1: existing, sheet 2 what i wish). Any tip are appreciated
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: colums to row, autofill row with data,

    OK, I can do this: I've coded most of it already but it will take a little longer. I'm taking a break and will be back as soon as I can.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: colums to row, autofill row with data,

    hi sknifseht, welcome to Excelforum, please check attachment, run code "test"
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-26-2012
    Location
    Bergen, Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Cool Re: colums to row, autofill row with data,

    AWESOME, JUST AWESOME. Thanks a lot to watersev:-)

  5. #5
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: colums to row, autofill row with data,

    I'll stop then.

+ 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