+ Reply to Thread
Results 1 to 5 of 5

Extract unique items based on criteria

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Extract unique items based on criteria

    Hello everyone
    I have a validation list of unique items of column A in cell F9
    I need to extact the unique items for specific value (say 50 in F9) and the results to be in Column G

    Here's the attachment to illustrate the desired results as example
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extract unique items based on criteria

    Hi.

    Enter this array formula** in e.g. G6, used to determine the expected number of returns:

    =SUM(IF(FREQUENCY(IF(A$2:A$41=F$9,B$2:B$41),B$2:B$41),1))

    Then enter this array formula** in G9:

    =IF(ROWS($1:1)>G$6,"",SMALL(IF(FREQUENCY(IF(A$2:A$41=F$9,B$2:B$41),B$2:B$41),B$2:B$41),ROWS($1:1)))

    and copy down until you start to get blanks for the results.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract unique items based on criteria

    Thank you very much for this great formula and solution

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,286

    Re: Extract unique items based on criteria

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extract unique items based on criteria

    Quote Originally Posted by YasserKhalil View Post
    Thank you very much for this great formula and solution
    You're welcome!

+ 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. Extract unique items based on criteria
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-08-2015, 03:10 PM
  2. [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
  3. Extract Unique Field Based on Criteria
    By nguyenal07 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-20-2014, 02:33 PM
  4. Extract Unique Value Based on Criteria
    By freqzz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-21-2013, 03:41 AM
  5. [SOLVED] Extract unique values out of list based on an extra criteria
    By sven1975 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 05:02 AM
  6. Extract Unique Values from an Array based on Criteria
    By ronleex324 in forum Excel General
    Replies: 1
    Last Post: 10-04-2011, 06:37 PM
  7. Replies: 10
    Last Post: 03-25-2009, 10:09 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