+ Reply to Thread
Results 1 to 6 of 6

Trying to Stack Many Columns into 2

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Trying to Stack Many Columns into 2

    Howdy everyone, I'm a new member and I've already started on the wrong foot. It's apparent that I have a lot to learn about excel and forum etiquette. I'm a recent graduate trying to make it in the business world and trying to leverage Microsoft office as much as possible. That being said, I've undertaken an small assignment which I thought would be easy, but has become a nightmare. I've recorded my own copying and hiding macros resulting in a jumbled mess of numbers. I also used some code I got from the internet, but kept giving me an error. I've tried searching everywhere, but most people just want to consolidate items into one column and I need two columns.

    This is the link where I got my code below: http://stackoverflow.com/questions/9...=votes#tab-top
    I will trying to keep it limited as to where I post though, but here's another website where I posted the same problem as I am under time constraints. http://www.mrexcel.com/forum/showthr...er-Help-needed!
    http://www.merawindows.com/Forums/ta...s/Default.aspx

    Anyway, what I'm trying to do is to stack two columns of Manufacturers Item #'s and their corresponding Image #. One issue I ran into was that not all Item #'s have images, but I resolved that by filling all the blanks spaces with "XX". I have a copy of my workbook with my failed macro attempts if anyone would like to see, but basically, this is what I'm trying to do:

    812 Columns
    500 Rows
    A B C D E F G H I J K L M N O P ... AEK AEL


    converted to

    A B
    C D
    E F
    G H
    I J
    K L
    M N
    O P
    .
    .
    .
    AEK AEL

    So that Column A: All Manufacturer Item #'s
    and Column B: All Corresponding Image #'s

    This is the code I've tried to use. It works with no XX, but all the numbers are jumbled up. With XX, it gives me an error code with the OrigA = Application.Transpose part of the code.

    Please Login or Register  to view this content.
    Any feedback and help is greatly appreciated. I'm trying to finish this assignment by tomorrow, because it has already taken me two days to get nothing done!

    Thanks in advance,

    Austin
    Last edited by JustSalsa; 07-05-2012 at 11:32 PM. Reason: Being a dumb newbie and breaking forum rules.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Trying to Stack Many Columns into 2 - Help needed!

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Last edited by jeffreybrown; 07-05-2012 at 11:14 PM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    07-05-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Trying to Stack Many Columns into 2 - Help needed!

    I understand. I cross-posted out of disparity. I'll make the necessary changes to comply. Thank you very much.

  4. #4
    Registered User
    Join Date
    07-05-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Trying to Stack Many Columns into 2

    Bump - anybody think of anything? I hope people aren't posting because I'm violating more rules. Please let me know!

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Trying to Stack Many Columns into 2

    It will be good if you upload your workbook.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Registered User
    Join Date
    09-17-2010
    Location
    Aalsmeer, the Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Trying to Stack Many Columns into 2

    If i remember correctly, Application.Transpose has a limit to the number of cells it can process.
    Is is possible that you are exeeding that limit?

    In that case you will have to manually write a transpose function

    Cheers.
    Your constructive critisism is greatly appreciated!

+ 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