+ Reply to Thread
Results 1 to 4 of 4

Transpose arrays into Rows

  1. #1
    Registered User
    Join Date
    08-04-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    19

    Transpose arrays into Rows

    I am currently using the following VBA script to transpose a comma delimited array, from the "Input" worksheet to the "Database (output)" worksheet of an excel file.

    Please Login or Register  to view this content.
    It currently transposes the array into a single column with X Rows.
    I would like to transpose the array into a single row with X Columns.

    Current Results

    Please Login or Register  to view this content.
    Needed Results

    Please Login or Register  to view this content.
    Additionally, I need this to be done for each cell in the [A] Column of the "Input" worksheet, that contains data.
    (There will be more then just the two shown in the attached excel file.

    EXAMPLE EXCEL SHEET.
    TEST EXCEL FILE.xlsx

    What is the best way of accomplishing this task.
    (I am a bit new to VBA coding however am very interested in learning how to accomplish these tasks!)

    I greatly appreciate any and all help with this issue.
    Thank you!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Transpose arrays into Rows

    Remove Application.Transpose.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-04-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    19

    Re: Transpose arrays into Rows

    It worked perfectly! Thank you.

    Do you mind answering a few questions about the script so I can better understand it?

    Please Login or Register  to view this content.
    What does .End(xlUp) do?

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Transpose arrays into Rows

    What does .End(xlUp) do?
    In that context it will select the last row containing data
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

+ 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] Transpose 2 Arrays Across Columns
    By tenscourts in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-01-2012, 11:20 AM
  2. using arrays to transpose data
    By Dick Minter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2005, 08:25 PM
  3. Transpose Arrays with variable row counts
    By bmac184 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. [SOLVED] Transpose Arrays with variable row counts
    By bmac184 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. [SOLVED] Transpose Arrays with variable row counts
    By bmac184 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-11-2005, 10:05 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