+ Reply to Thread
Results 1 to 4 of 4

Horizontal data to vertical columns

  1. #1
    Registered User
    Join Date
    06-25-2017
    Location
    Australia
    MS-Off Ver
    365
    Posts
    76

    Arrow Horizontal data to vertical columns

    The type of spreadsheets I get:

    A B C D E F G H I J
    0001 ONE 1 1
    0002 TWO 1 1
    0003 THREE 1 1 1 1
    0004 FOUR 1 1 1 1
    0005 FIVE 1


    What I need to turn it into:

    0001 ONE C 1
    0001 ONE D 1
    0002 TWO I 1
    0002 TWO J 1
    0003 THREE E 1
    0003 THREE F 1
    0003 THREE G 1
    0003 THREE H 1
    0004 FOUR E 1
    0004 FOUR F 1
    0004 FOUR G 1
    0004 FOUR H 1
    0005 FIVE A 1

    What I do currently do is time-consuming, and I'm looking for ideas on what could make it faster.

    To summarize my current method:
    1. Duplicate all the cells with 1's in them, then replace those cells with an entire string of data, seperated by a period ("001.ONE.C.1").
    2. Highlight and name the range.
    3. Transpose all the data into a single column.
    4. Use the Text-To-Columns feature to split the data using the periods.

    Problem is, it takes quite a long time (especially the 1st step; using a formula like =$A2&"."&$B2&"."&E$1&"."&E2 and copying that formula into every cell with a 1 in it).

    I would like to ask an Excel expert to think of a faster automated way, but the problem is I don't know what to ask.

    "Can you automate this process using VBA?"

    "Can you automate this process using macros?"

    "Can you automate this process using a purchased program?"
    I just want to make sure I ask the right questions and not say the wrong words like an idiot. Best case scenario, I'd like to be able to tell other people "To convert this horizontal table to vertical, just use your mouse to highlight all the data, then press F11. Excel will do the rest."

    Does VBA do that? Does a purchasable program you know do that? I don't mind spending money on a program or hiring a freelance IT expert to make something, but I need to know the right words to use when describing my problem and desired solution. I don't want to sound like the cliche clueless coworker who asks the IT staff "Can we use our email program as a cloud host?" or something similarly eye-rolling.
    Last edited by 2vbr; 01-11-2020 at 07:50 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Horizontal data to vertical columns

    You can do this using the free Power Query add-in from Microsoft.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-25-2017
    Location
    Australia
    MS-Off Ver
    365
    Posts
    76

    Re: Horizontal data to vertical columns

    I downloaded this FREE addon, and after a quick "How To Convert Columns To Rows In Excel With Power Query" google search and some playing around... I DID IT!

    All by myself! <----- a BIG deal!

    Thankyou SO much! This turned an almost 20 minute complex manual job into 1 minute. WOW!
    Last edited by AliGW; 01-11-2020 at 08:00 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Horizontal data to vertical columns

    Yes, it's a great find, and it's in newer versions of Excel as standard.

+ 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. Re-Arranging Vertical columns Data To Horizontal rows
    By manishjoshi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-13-2019, 03:15 AM
  2. [SOLVED] Data Extraction - Horizontal & Vertical Columns
    By Excel-Access in forum Excel General
    Replies: 2
    Last Post: 03-18-2019, 11:26 PM
  3. Transpose web data from horizontal (rows) to vertical (columns) for html files
    By Dahlia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2018, 11:02 AM
  4. [SOLVED] Transpose web data from horizontal (rows) to vertical (columns)
    By Dahlia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-13-2018, 06:10 AM
  5. Set vertical Columns as horizontal data?? Help!!
    By Arlen10 in forum Excel General
    Replies: 11
    Last Post: 10-29-2015, 04:16 AM
  6. Replies: 5
    Last Post: 04-26-2015, 11:04 AM
  7. Replies: 2
    Last Post: 11-24-2009, 08:27 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