+ Reply to Thread
Results 1 to 3 of 3

Transpose in Excel 2010

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    London, Canada
    MS-Off Ver
    Excel 2003
    Posts
    40

    Transpose in Excel 2010

    Hi all,

    Goal: To trim an array down to include onlt specific rows that match a certain criteria.

    [U]Attempts and workings:[/U]I have a range of data assigned to a variable that creates an Array. Works Great.

    My array consists of approximately 700 rows and 100 coulmns Arr(700,100).

    I need to extract only the rows whose ID (2nd coulmn) matches a prepared list of numerical values which would potentially leave me with an array of minimum Arr(1,100).

    I found I couldn't reassign the array x values then shorten the array using redim preserve because that only allows the alter of the y value in an Arr(x, y).

    I was then forced to transpose the array first so that I could then reduce the y value as rows (now columns) were eliminated.

    Problem is I get Error 13 (Type Mismatch) on the transpose.

    I realize there is a limitation on the number of values for the original x value but 700 original rows is well within the limits of the transposed y value in Excel 2010.

    My Ask: I need help on trimming a 2D Variable Array that is 700 rows by 100 columns to only those rows whose 2nd column matches a value or is contained in a list of values? Min new Array size would be 1, 100

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Transpose in Excel 2010

    You get better help on your question, if you follow the advice in the link below.

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    London, Canada
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Transpose in Excel 2010

    Please Login or Register  to view this content.
    Table 1 is 700 rows x 100 columns

    Error occurs on Transpose line. Please help.

+ 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. Application.Transpose(var) excel 2007 and 2010
    By Stingone in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-14-2013, 03:52 PM
  2. Replies: 3
    Last Post: 11-18-2012, 09:22 PM
  3. Macro to Automate Transpose column to rows Excel 2010
    By Rayb1969 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2012, 06:51 PM
  4. Copying worksheets from excel to word in vba as images
    By papasideris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2012, 11:32 AM
  5. Transpose involving three columns in excel 2010
    By Damian84 in forum Excel General
    Replies: 2
    Last Post: 03-16-2012, 06:40 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