+ Reply to Thread
Results 1 to 9 of 9

copy across multiple rows and columns the data to one column removing dupilicates

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Smile copy across multiple rows and columns the data to one column removing dupilicates

    First let me thamk all of you for the help you have given me over the years.

    I have a worksheet with 7 columns across and 34 rows down. (it will get bigger as time goes on)

    I would like to copy that data to a single column without duplicates.

    In a nut shell what it is, is the days of the week across the top and times running up and down in 30 minute increments. As people rent the ice we put their names in a cell.

    In the end I'd like to select the cells and copy that data to a row removing duplicates so we have a clean customer list.

    I tried using advanced filter but the issue there is the blank cells if we dont sell the ice. It also seems to have an issue copying the data to a one column list.

    Your help is much appreciated!!!!

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

    Re: copy across multiple rows and columns the data to one column removing dupilicates

    Do you have sample data that you can upload?

    To Attach a File:

    1. Click on Go Advanced.
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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]

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: copy across multiple rows and columns the data to one column removing dupilicates

    See attached (if I did it right)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-17-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: copy across multiple rows and columns the data to one column removing dupilicates

    It looks like the file uploaded just fine.
    So what I am trying to do is when i click "filter data" on summary sheet it will list the teams in the "I" column but only list them once. Basically it will just filters all the data and removes the duplicates.

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

    Re: copy across multiple rows and columns the data to one column removing dupilicates

    Try this code
    Please Login or Register  to view this content.
    You have a lot of data below like Closed, Silver Sticks. These are currently appearing in your filtered list. If you want, you can retain your sheet as is and just remove those entries.

    If you are sure which entries need to be deleted permanently from the filtered list output, you can let me know and we can even include it in the macro.

  6. #6
    Registered User
    Join Date
    07-17-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: copy across multiple rows and columns the data to one column removing dupilicates

    I'd like to keep "closed" and "silver stick" in the list that way later on i can do a "COUNTIF" and see where all the ice went.

    I got an error on the macro: "run time error 438" on the line .Columns("I:I").RemoveDuplicates Columns:=1, Header:=xlYes

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

    Re: copy across multiple rows and columns the data to one column removing dupilicates

    Oops i am sorry, i didnt realise you use excel 2003.

    Will get back to you with a revised line for that erroring line.

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

    Re: copy across multiple rows and columns the data to one column removing dupilicates

    This is your updated code
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-17-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: copy across multiple rows and columns the data to one column removing dupilicates

    THANK YOU!!!!! That worked GREAT!!!!!!

    many many thank yous!!!!!

+ 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