+ Reply to Thread
Results 1 to 8 of 8

Limitation on formula to create list of unique items

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    moon
    MS-Off Ver
    Excel 2010
    Posts
    6

    Limitation on formula to create list of unique items

    This may be an Excel 2010 issue only.

    There is a limit to the usability of the
    =INDEX($A$1:$A$1000,MATCH(0,COUNTIF($A$1:$A$1000,"<"&$A$1:$A$1000),0))
    method.

    It seems like the limitation is in the Countif function going over 1000 (or some other size limit)

    I have a list of ~1500 rows, of that there are approximately 55 unique items. Doing the unique array works correctly up until item ~40, upon which it fails by returning the 1st item only (for the rest).
    Trying to debug, and pulling out the Match section, it functions up until 976 (that is
    MATCH(0,COUNTIF($N$1:$N40,$C$3:$C$1500),0)
    returns 976) anything after returns just 1 (1st item).

    My Googlefu is failing, but it seems to be a limitation on the text string size that COUNTIF can handle.

    Does anyone know of a fix, or some other reason why this will stop working when it works perfectly on the rest of the sheet?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Limitation on formula to create list of unique items

    Post your sample workbook with your formulas in them and we'll take a look together at the same data. You may be right.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-21-2014
    Location
    moon
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Limitation on formula to create list of unique items

    Excel Sample workbook3.xlsx

    So i fixed the problem. Somehow my file was corrupted, in my attempts to streamlining it for posting it got fixed. No idea how mind you, but there it is. I've attached the working copy as an example if anyone is interested. The original problem file is over 5MB which should have been an indication of an underlying problem.

    Info on the attached file,
    - Columns B - H, raw original data
    - Column N, unique names of Column C
    - Column T & U are testing only

    What i was trying to do, is populate Column D-H automatically, instead of manually entering all 1500 lines. Enter it once per equipment, and when completed simply copy/paste 'values only'.

    Anyway, thanks for getting me to streamline the document and fix it. It looks like Match() does work past 1000 (as per Column U).

    If anyone wants to find out where the problem originated from, i still have the 5+MB file with the issue.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Limitation on formula to create list of unique items

    You might want to try this array formula. It will extract unique values and ignore blanks.


    =IFERROR(INDEX($C$3:$C$1369,MATCH(0,IF(ISBLANK($C$3:$C$1369),"",COUNTIF(N$1:$N1, $C$3:$C$1369)), 0)),"")
    Last edited by AlKey; 01-22-2014 at 04:45 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Limitation on formula to create list of unique items

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    01-21-2014
    Location
    moon
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Limitation on formula to create list of unique items

    Quote Originally Posted by AlKey View Post
    You might want to try this array formula. It will extract unique values and ignore blanks.


    =IFERROR(INDEX($C$3:$C$1369,MATCH(0,IF(ISBLANK($C$3:$C$1369),"",COUNTIF(N$1:$N1, $C$3:$C$1369)), 0)),"")
    Nice additional step, cleans up the listing. Thanks

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Limitation on formula to create list of unique items

    You're welcome. Don't forget to thank those who helped by clicking on Add Reputation *

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Limitation on formula to create list of unique items

    Thank you for your feedback!

+ 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] formula to create list of unique items
    By pink in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-13-2014, 02:29 AM
  2. Trying to create a formula that will display items in a clean list
    By jnlong in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2013, 07:51 PM
  3. Extract a sorted and ranked unique list of items
    By bruno_ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2013, 09:52 PM
  4. [SOLVED] Counting # of Unique Items In List & Listing Unique Items In A List
    By unpluggedmusic in forum Excel General
    Replies: 3
    Last Post: 12-05-2012, 11:44 AM
  5. Excel Formula to Alphabetize Unique items only from a list
    By broshannon in forum Excel General
    Replies: 3
    Last Post: 09-06-2010, 08:07 AM

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