+ Reply to Thread
Results 1 to 5 of 5

Extract unique values but ignoring errors

  1. #1
    Registered User
    Join Date
    07-24-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    22

    Unhappy Extract unique values but ignoring errors

    Hi,

    I'm sure this is an easy fix but I can't seem to find the answer to this. I am using INDEX, MATCH, and COUNTIF to extract a list of unique values from a single column, however, the column also includes #N/A errors (they also contain formulas). What's a good formula to use to ignore extracting the errors as a unique value? Here's the formula I am using. My values are in Column E and my list is in Column AA.

    ={INDEX($E$3:$E$500, MATCH(0, COUNTIF(AA2:$AA$2, $E$3:$E$500), 0))}

    Any help would be great !

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Extract unique values but ignoring errors

    Why use a formula? Why not use a pivot table and then remove the error?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    07-24-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    22

    Re: Extract unique values but ignoring errors

    Thanks for the reply,

    I'm actually using it to make a conditional scatter plot which I can't do with pivot tables.

  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: Extract unique values but ignoring errors

    Try this array formula. It will ignore errors.

    =IFERROR(INDEX($E$3:$E$500,MATCH(0,IF(ISERROR($E$3:$E$500),"",COUNTIF($AA$2:AA2, $E$3:$E$500)), 0)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Extract unique values but ignoring errors

    Quote Originally Posted by LadyS View Post
    Thanks for the reply,

    I'm actually using it to make a conditional scatter plot which I can't do with pivot tables.
    Are you not using Excel to process the data or format it before getting it ready for the scatter plot data layout? You can use pivots for that just as easily as a slick array formula.

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Extract unique values but ignoring errors

    EDIT: Whoops, double post.

  7. #7
    Registered User
    Join Date
    07-24-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    22

    Re: Extract unique values but ignoring errors

    AlKey,

    Works perfectly!! Thank you !!

+ 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] Find unique values from range ( populated cells only) & not count zeros or NA errors VBA
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2014, 06:50 AM
  2. [SOLVED] Compare two ranges of data and give unique values in two different columns ignoring blanks
    By rampulaparthi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 04:17 PM
  3. Replies: 2
    Last Post: 02-13-2013, 03:14 PM
  4. Extract Unique Values, Then Extract Again to Remove Suffixes
    By Karl Burrows in forum Excel General
    Replies: 23
    Last Post: 06-25-2005, 08:05 PM

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