+ Reply to Thread
Results 1 to 4 of 4

Find a group of unique rows, find non-zero value in a column, fill column with that value

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    Calgary, ab
    MS-Off Ver
    Excel 2007
    Posts
    2

    Find a group of unique rows, find non-zero value in a column, fill column with that value

    Hi there,

    I need some help on a data file with few columns. There are groups of similar ID numbers in Column J. For a group of similar ID numbers in consecutive rows there is only one row that has a number greater than 0 in its Column L cell and the rest of the cells of Column L for that set of similar IDs is filled with 0s.

    First for that unique ID group I need to find out which row is it that has a value greater than zero in its Column L cell.

    Then I need to use that value to fill the rest of the 0s in Column L corresponding to that set of Unique IDs.

    The process continues with identifying similar IDs in Column J and this time doing the same thing for their Column M. I have attached a sample file that shows the data and how the results need to look like. Please see here Fill Cells.xlsx . I appreciate your help in advance.

    Regards,

    Nina

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Find a group of unique rows, find non-zero value in a column, fill column with that va

    Duplicate with
    http://www.ozgrid.com/forum/showthread.php?t=188634

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Find a group of unique rows, find non-zero value in a column, fill column with that va

    I think this will do what you want.
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    06-10-2013
    Location
    Calgary, ab
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Find a group of unique rows, find non-zero value in a column, fill column with that va

    Hi micerickson, thank you for your response When I tried this macro on my sample file it worked great. When I tried it on my entire data set it did not work (it actually worked for the first two rows of data considering there are three rows of headings) and it kept replacing all the cells with the biggest number available on column L.
    Last edited by Nina23; 05-28-2014 at 02:15 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find highest value in Column V for unique value in column R
    By rbac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2013, 01:12 PM
  2. Find 1st unique Value on Column and Insert certain Word on cell on left Column
    By Wldlife23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2013, 10:02 AM
  3. [SOLVED] auto fill with one column and multiple unique rows.
    By plague5050 in forum Excel General
    Replies: 5
    Last Post: 04-30-2013, 02:29 PM
  4. Find unique URL's in a column
    By Vbort44 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2008, 04:29 PM
  5. Replies: 1
    Last Post: 01-20-2005, 09:06 PM

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