+ Reply to Thread
Results 1 to 14 of 14

Extract List from one sheet to another with Unique Value (2 conditions)

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Extract List from one sheet to another with Unique Value (2 conditions)

    I have a code below that will extract rows from worksheet "Loan Search" to worksheet "ILQ" with criteria on column G.

    The Need:
    I would like to add a criteria that would extract only those with unique values in Column J.
    There will be 2 conditions, criteria on Column G and unique values in Column J.


    Please Login or Register  to view this content.

    please help.

    Thanks,

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Post example file with desensitized date and a sheet before and after so we have something to work with.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Please see below image.

    Extract Column G value with unique value on Column J


    Screenshot.jpg

    Thank you,

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Based on the image you posted.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Sorry bakerman2 if that was confusing.

    attached is the sample file. I hope you find it simple. My codes back then was unclear.

    Please see file attached and modify the codes
    Attached Files Attached Files

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Try example file.
    Changing the color (Text, not FillColor) in Cell A1 on Sheet2 triggers the code.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    It works on your file but I cant figure it out how to apply in my file. I keep getting error.

    I need this not in change event.

    I can't make the Previous code work either. It says "The command requires at least two rows of data"

    Please Login or Register  to view this content.
    Below is my filters
    Column G = Search Value
    Column J = Only with unique value (No Duplicate)

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Quote Originally Posted by sunjam View Post
    Below is my filters
    Column G = Search Value
    Column J = Only with unique value (No Duplicate)
    try
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Thanks Jindon,

    Can you make it a certain Range and not the entire sheet?

    Sheet1 column G:L to Sheet2 column A:F starts from row 2.

    Thanks,

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Then perhaps
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    works great!

    Thanks Jindon!

  12. #12
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Hello Jonin,

    is it possible to add Column N and P in the copied column?

    With Sheets("sheet1").Cells(1).CurrentRegion.Columns("G:L") '---- Add Column N and P


    Thank you,

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Do you mean
    Please Login or Register  to view this content.
    ?

  14. #14
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Extract List from one sheet to another with Unique Value (2 conditions)

    Exactly!

    Thanks Jindon!

+ 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] Unique list based on conditions.
    By pauldaddyadams in forum Excel General
    Replies: 3
    Last Post: 08-15-2016, 10:25 AM
  2. Replies: 6
    Last Post: 07-04-2016, 04:52 PM
  3. Extract unique list from column
    By lamdl in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-25-2014, 05:17 AM
  4. Replies: 2
    Last Post: 02-13-2013, 03:14 PM
  5. Extract unique numbers from a list
    By excelbee in forum Excel General
    Replies: 7
    Last Post: 08-11-2012, 09:00 AM
  6. Extract Data From a list with unique value
    By sunflowers in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-22-2011, 08:47 PM
  7. VBA to extract list based on conditions
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-25-2011, 02:31 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