+ Reply to Thread
Results 1 to 21 of 21

Moving data from a row to column based on dup

Hybrid View

  1. #1
    Registered User
    Join Date
    12-31-2010
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Moving data from a row to column based on dup

    Quote Originally Posted by jeffreybrown View Post
    Never mind
    Hey Jeff,

    It's the file on the posting Test_Data_Macro.xlsx

    It has more rows / columns to show the other data necessary to be moved. Only non duplicate data needs to be moved, and then the other rows deleted (as you already created).

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

    Re: Moving data from a row to column based on dup

    I think creating more than four contacts could be possible, but before we move further I just need to confirm your desired outcome.

    Could you adjust your sample data to contain two tabs. One with the original data (no extra columns) and then a tab with the final results in the format you desire?
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    12-31-2010
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Moving data from a row to column based on dup

    Quote Originally Posted by jeffreybrown View Post
    I think creating more than four contacts could be possible, but before we move further I just need to confirm your desired outcome.

    Could you adjust your sample data to contain two tabs. One with the original data (no extra columns) and then a tab with the final results in the format you desire?
    Hey Jeff,

    Again - thanks for your help, this is awesome.

    I have attached the updated sheet with the 2 tabs. The first is the *raw* data and the 2nd would be the outcome I would like to see. Again, if it's possible to create more contact areas if a company should have more (I know one company I have has 23 contacts...) that would be awesome. If not, if we could have space for 5 that would be perfect.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-31-2010
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Moving data from a row to column based on dup

    Woops. Just re-read your request.

    I have re-attached, but on the raw file I have removed the blank contact areas.

    Please see attached.
    Attached Files Attached Files

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

    Re: Moving data from a row to column based on dup

    Okay give this a try. Please test on some test data before running macro. Best way, make a copy of the data tab and then run the macro on that sheet.

    I have not tested this past the amount of data included, but in awhile I will work on getting the rest done so it is more dynamic. Have to leave right now. Let me know what you think?
    Attached Files Attached Files

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

    Re: Moving data from a row to column based on dup

    This seems to cover it.

    Added a timer to the macro and tested with 3600 rows of data and it came out ok.

    Note: Remember test out on test data before the real thing.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-31-2010
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Moving data from a row to column based on dup

    Quote Originally Posted by jeffreybrown View Post
    This seems to cover it.

    Added a timer to the macro and tested with 3600 rows of data and it came out ok.

    Note: Remember test out on test data before the real thing.
    Hey Jeff,

    Sorry for the late response, I was off for a bit.

    Looks like it's 99% of the way there. I have given you a piece of the data. There are 2 spreadsheets. First has the test data (50 lines, multiple companies / employees) and the second has the outcome. It is moving the data but it appears it is not moving it to the outcome tab, only overwriting the data tab. Also, some of it doesn't appear to be going into the right columns (Contact 3 might have a phone number).

    If you had the solution to these last few things you would be saving me an amazing amount of time on a weekly basis.

    Thanks for all your hard work on this till now.

    Cheers,
    Attached Files Attached Files

+ 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