+ Reply to Thread
Results 1 to 5 of 5

Pull unique values from column without duplicates and export to another sheet

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    NY, United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Pull unique values from column without duplicates and export to another sheet

    Quote Originally Posted by icestationzbra View Post
    Please Login or Register  to view this content.
    I used the above code to build a spreadsheet that de-duplicates any entries. The problem is the above code does not work in 2003 (I have 2010 but the work environment is 2003).


    To explain what I'm trying to do: My workbook has two sheets. The input sheet and the output sheet. The input sheet is where the users paste a report generated by an automated system every week. The output sheet picks out picks out the unique rows based on a column that contains id#'s- some of these id#'s are duplicated so the rows contain the same information.

    Once I have the unique id#'s populated on the output sheet; I use this code to pull the corresponding information from the adjacent cells in that row:
    {=INDEX(Sheet1!G:G,MATCH(Sheet2!E3,Sheet1!E:E,0),1)}

    From taken from this thread:
    http://www.excelforum.com/excel-form...cific-row.html

    tl;dr
    I need a code that pulls unique rows (based on cells in a column) from one sheet and pastes it into another sheet. It can't be a macro because the users will be adding additional columns on the second sheet. It also has to work in Excel 2003.
    Last edited by vandetta; 01-02-2013 at 02:09 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Pull unique values from column without duplicates and export to another sheet

    vandetta,

    Welcome to the forum!
    Assuming Sheet2 is the output sheet, put this regular formula (this is not an array formula and thus does not require it be array-entered) in cell E3 of Sheet2 and copy down:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-02-2013
    Location
    NY, United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Pull unique values from column without duplicates and export to another sheet

    Sorry I made a mistake with my initial post and quoted the wrong person. I updated my post just before you posted.

    This is the formula I'm using which does not work in 2003:
    Please Login or Register  to view this content.
    http://www.excelforum.com/excel-form...ml#post2969647

    Thanks! This forum has helped me a lot in the past.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Pull unique values from column without duplicates and export to another sheet

    Same principle still applies:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-02-2013
    Location
    NY, United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Pull unique values from column without duplicates and export to another sheet

    Thank you! Both formulas work, although I think the first one is a bit faster.

    The work environment consists of a bunch of first generation Pentium 4 dual core machines. It takes about 1 minute to compute any change on the input sheet. On my personal machine (Xeon dual core) it takes 10-15 seconds.

    I had to cut down the columns from 20+ to just 3 (First name, Last name & id number) on the output sheet.

    Even on my personal machine it took 1 minute to pull all 20 columns from one sheet and put it on the other sheet.


    I'll mark this as solved, unless there is some other formula that works better for a sheet with 3,000 rows.


    Thanks again!

+ 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