+ Reply to Thread
Results 1 to 5 of 5

Group Contents

  1. #1
    Registered User
    Join Date
    05-04-2009
    Location
    San Diego, California
    MS-Off Ver
    Excel 2003
    Posts
    43

    Group Contents

    Please Login or Register  to view this content.
    I would like to add/adjust this macro so it can do this..


    1. Go to Sheet “R1” look at the contents in cell A1 then look for a duplicate of those contents in Column C, Column E, Column G, Column I, Column K, Column M, Column P, and Column S.

    2. When Column A has duplicates in
    Column C
    Column E
    Column G
    Column I
    Column K
    Column M
    Column P
    Column S

    I would like to copy that row of..
    Columns A plus Column B
    Columns C plus Column D
    Columns E plus Column F
    Columns G plus Column H
    Columns I plus Column J
    Columns K plus Column L
    Columns M plus Column N and Column O
    Columns P plus Column Q and Column R
    Columns S plus Column T and Column U

    3. Then Go to Sheet Final paste those different rows into the same row, so
    Column A:B
    Column C:D
    Column E:F
    Column G:H
    Column I:J
    Column K:L
    Column M:O
    Column Q:R
    Column T:U
    Would all be in the same row

    4. Go back to Sheet R1 and repeat this process for every cell in Column A

    However, Columns M:O, Columns Q:R, and Columns T:U will have duplicates, when that happens I want to put those duplicates under their original occurrence while protecting the entire row

    I attached an example of the data before and after, with a lot less rows. Thank you.
    Attached Files Attached Files
    Last edited by Buddy7; 05-13-2009 at 07:53 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Group Contents

    What happens if a value in column A is not found in e.g. column C - should it not be moved to the other sheet?

    What happens when a value appears twice in column A, e.g. 55109?

  3. #3
    Registered User
    Join Date
    05-04-2009
    Location
    San Diego, California
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Group Contents

    Q. What happens if a value in column A is not found in e.g. column C - should it not be moved to the other sheet?

    A. If a value in Column A is not found in Column C, move it to the other sheet, but I would like give it its own row, so it doesn’t mess up the other rows.

    Q. What happens when a value appears twice in column A, e.g. 55109?

    A. A value won’t be found twice in Column A, I just realized 55109 was a typo, I am very sorry. That was supposed to be 55106.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Group Contents

    OK, this is a bit messy, and I'm not sure it addresses your answer to Q1 but give it a whirl and come back with comments.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-04-2009
    Location
    San Diego, California
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Group Contents

    This is absolutely marvelous. Thank you so very much 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)

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