Results 1 to 11 of 11

Find a value in the first column, return first non-zero value in another column

Threaded View

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Find a value in the first column, return first non-zero value in another column

    Hello good people,

    I am struggling with an excel problem. I have a table with duplicate values in column 1 (which identifies the person), and numbers in columns 2 to 10. If it helps, the column headers (not shown in the examples) are years.

    I would like to create a table with no duplicates, which would keep only the first non zero value that appears for each of the data. So if for example I have:


    1 0 5 5 5 5 5 5 5 5 5 5 0 0 0 0 0 0
    1 0 0 0 0 0 0 0 0 0 0 8 8 0 0 0 0 0
    1 0 0 0 0 0 0 0 0 0 0 0 8 8 0 0 0 0
    1 0 0 0 0 0 0 0 0 0 0 0 0 3 3 3 3 0
    1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3
    2 0 0 0 0 0 0 0 4 4 4 4 4 4 4 0 0 0
    2 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
    2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 4

    I would like to end up with:
    1 0 5 5 5 5 5 5 5 5 5 5 8 8 3 3 3 3
    2 0 0 0 0 0 0 0 4 4 4 4 4 4 4 1 1 4

    I have >700 unique rows (people) and 30 columns (years) so I can not do it manually. Thank you so much in advance for any and all help.
    Last edited by owumi; 02-22-2013 at 01:14 AM. Reason: edited to hopefully make data clearer

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