+ Reply to Thread
Results 1 to 6 of 6

Extract Unique data based on multiple criteria

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Extract Unique data based on multiple criteria

    Hi,


    Pls find the sample attachment. I need Unique "Position Code" Based on Name and Month&Year (C2 and D2 cells in summary sheet). When I select particular name and Month & Year then Unique position codes need to extract from Source Data based on criteria.

    Thank you in advance

    Regards
    Raju
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Extract Unique data based on multiple criteria

    What are your expected results for those two selections? Mock up the resulting list, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract Unique data based on multiple criteria

    Hi,

    What have you tried so far?

    Following the adage "give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime" it will benefit you immensely if you at least attempt a solution yourself. Try the following.

    Use the Macro Recorder with Excel's Data Advanced Filter functionality to copy the records required from the database (A1:D1179) on the Source Data sheet to the output range you define, i.e A4 on the Summary sheet. You'll need to create a criteria range which is C1:D2 on the Summary.

    When you've done that reupload the workbook and we'll show you how to edit and generalise the macro code to make it more efficient.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Re: Extract Unique data based on multiple criteria

    Hi,


    I need unique values by using formula only. I don't want vba code. i extracted unique values but not based on criteria. I tried to add the criterial but failed. Pls help on this.

    regards
    SP.Ajay Pal

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Extract Unique data based on multiple criteria

    You need to provide a copy of your workbook that includes some expected outcomes, please.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract Unique data based on multiple criteria

    Quote Originally Posted by ajaypal.sp View Post
    Hi,


    I need unique values by using formula only. I don't want vba code.
    SP.Ajay Pal
    Why ever not?

    An Advanced Data filter is the simplest way to go. If you're not prepared to have a one line macro to do it for you then do it manually.

+ 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] Extract data based on multiple criteria
    By Thanks4helping in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-21-2016, 04:31 PM
  2. [SOLVED] Using Macro to Extract unique data with multiple criteria
    By Xiaojiang in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-09-2015, 11:56 PM
  3. How to extract data based on multiple criteria
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-11-2015, 07:56 PM
  4. [SOLVED] Extract Unique Text Values based on Multiple Criteria
    By Kattenhove in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-26-2014, 07:59 AM
  5. [SOLVED] Extract data based on multiple substring criteria
    By jspharriola in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-10-2013, 01:50 AM
  6. Extract Data Based on Multiple Criteria
    By trevaaaaaaa in forum Excel General
    Replies: 2
    Last Post: 03-14-2012, 11:42 AM
  7. Replies: 2
    Last Post: 03-23-2011, 06:19 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