+ Reply to Thread
Results 1 to 4 of 4

Columns to rows between sheets with criteria

  1. #1
    Registered User
    Join Date
    09-15-2008
    Location
    California, MD
    Posts
    3

    Columns to rows between sheets with criteria

    I need some help with building a macro. I am looking to have it copy the selected text in a column in one sheet and move it to a row in another sheet. But it needs to have some criteria. In the Marks sheet there are two columns that I need to use: ItemID and Text. The ItemID is the criteria and the Text is the data that needs to be moved. The ItemID is 16 through 24. For example ItemID 16 is the Text First Name. The macro needs to copy First Name to the List Sheet first row first column. ItemID 21 is the Rank/Prefix and needs to be copied to the first row second column and so on. Then the next ItemID that equals 16 needs to be copies to the second row. Hopefully that makes sense and any help you can give me would be greatly appreciated.
    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    Macro assumes the following:
    There is a sheet called List.
    The 9 categories on the Marks sheet are the only possible categories

    Please Login or Register  to view this content.
    See attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-15-2008
    Location
    California, MD
    Posts
    3
    Perfect! Thanks mdbct!

  4. #4
    Registered User
    Join Date
    09-15-2008
    Location
    California, MD
    Posts
    3
    I guess I have another question on this. I ran into a problem where the ItemID of 16 may not be the first in the group. How would I implement criteria to verify that GuestID has changed before changing rows?
    Thanks again for your 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. Delete rows based on criteria vb modification
    By dcnorman07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2008, 04:45 PM
  2. hiding / showing columns...
    By LSB M in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-07-2008, 05:50 PM
  3. Reducing Rows & Columns
    By Attila in forum Excel - New Users/Basics
    Replies: 50
    Last Post: 05-16-2008, 01:04 PM
  4. Compare columns and deleting multiple rows
    By chom in forum Excel General
    Replies: 3
    Last Post: 06-09-2007, 02:53 AM
  5. Delete hidden rows & columns
    By tommy_gtr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2007, 06:12 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