+ Reply to Thread
Results 1 to 3 of 3

compare a value, if there is an match, copy 3 rows

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2016
    Posts
    74

    compare a value, if there is an match, copy 3 rows

    Hello,

    I've got the following problem, i would like to compare a value, if there is an match, copy 3 lines to another sheet. And repeat this step until te last line.

    It's rather complicated for me because in "row 2" there can be the same value but that only has to be copied, not matched again.

    I've created an example, please take a look.

    Thanks in advance.

    ABBOV
    Attached Files Attached Files
    Last edited by ABBOV; 12-21-2010 at 03:52 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: compare a value, if there is an match, copy 3 rows

    See attached.

    Added helper column in Blad2 with formula in J3:

    Please Login or Register  to view this content.
    copied down. This to tag the matching records to pull

    Then in K3, formula to get count of records:

    Please Login or Register  to view this content.
    Then in Blad1 to get the records, in A8:

    Please Login or Register  to view this content.
    copied down as far as you need and across the columns.

    Format these columns as Custom: 0;-0;;@ to suppress the 0's for blanks retrieved.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2016
    Posts
    74

    Re: compare a value, if there is an match, copy 3 rows

    Hello NBVC,

    Thanks for the response, it set me in the right directoin, it seems to be working fine but i've got a small problem.

    When the cell value is above 255 characters, the formula results in ######. Is there a quick solution for this?

    Thanks in advance.

    ABBOV

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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