+ Reply to Thread
Results 1 to 4 of 4

Macro to Extract Unique Values from Multiple Columns When Data Set Has Errors

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    Stanford, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Macro to Extract Unique Values from Multiple Columns When Data Set Has Errors

    Hi,

    I found a macro online that provides a list of unique values from a multi-column selection. See below:

    Please Login or Register  to view this content.


    The macro works well, except when the data range includes #N/A. Is it possible to tweak this macro to provide a unique list of values from a range containing #N/A?

    Sample workbook attached.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Macro to Extract Unique Values from Multiple Columns When Data Set Has Errors

    Hi markp5,

    Try this which apart from dealing with cells in error from the selected range I've added Option Explicit, forcing all variables to be declared (two of which hadn't been) and built-in error trapping if Cancel is pressed on either of the two input boxes:

    Please Login or Register  to view this content.
    Regards,

    Robert
    Last edited by Trebor76; 07-02-2021 at 09:52 PM.
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    07-26-2012
    Location
    Stanford, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Macro to Extract Unique Values from Multiple Columns When Data Set Has Errors

    This works like a charm. Thank you!

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Macro to Extract Unique Values from Multiple Columns When Data Set Has Errors

    This works like a charm. Thank you!
    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. Replies: 8
    Last Post: 08-16-2019, 10:59 AM
  2. [SOLVED] Extract Unique values based from multiple columns
    By kobiashi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-14-2018, 10:10 AM
  3. [SOLVED] Formula to Extract Unique Values/Remove Duplicates Across Multiple Columns of Data
    By Lanceh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2017, 09:07 AM
  4. Extract unique values from multiple columns
    By potejam in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 12-16-2015, 08:26 PM
  5. [SOLVED] How to extract unique values from multiple columns in Excel?
    By chief_abound in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-16-2015, 02:45 AM
  6. Extract data from multiple columns, group and sum up unique values
    By Alcotraz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2015, 06:54 PM
  7. [SOLVED] Extract unique values but ignoring errors
    By LadyS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2014, 12:21 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