+ Reply to Thread
Results 1 to 3 of 3

Find unique values from range ( populated cells only) & not count zeros or NA errors VBA

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Find unique values from range ( populated cells only) & not count zeros or NA errors VBA

    Hi all,
    Earlier I was trying to find if unique values could be found using many methods by using formula.Range is from A2:A4500 .
    It works fine. ThirtyTwo gave me a good solution. Please refer my thread :
    Index code also can be used and works fine
    Please Login or Register  to view this content.

    This gives me three challenges:
    1. It takes a while to go through A2:4500 and makes process slow
    2. It also counts zeros or may give NA error
    3. In the list of unique values the list is separated by value ' zero' that it has counted as one of the unique values

    To find solution I need help please.

    1. Need to look at A2:A4500 only at the populated cells with text ( not with zeros or NA error)
    2. It does not count zeros or na values

    Can we consider VBA or Formula and if so what it will be.

    Need some help or hint please to understand this issue

    Many thanks
    Kind regards

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find unique values from range ( populated cells only) & not count zeros or NA errors V

    You can include iferror with the formula which will get rid of N/A. An alternative code is attached.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Find unique values from range ( populated cells only) & not count zeros or NA errors V

    Hi AB33,
    This sounds very cool.
    It has got rid of zeros, NA errors and the rest.
    Simple, original and best solution.
    Thanks again
    kind regards

+ 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 count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  2. [SOLVED] Macro to find empty cells in a range and repalce with the value of a populated cell
    By Markvx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2012, 06:44 AM
  3. [SOLVED] find unique values in a range that contains text and empty cells
    By bombicci in forum Excel General
    Replies: 4
    Last Post: 07-04-2012, 09:17 AM
  4. Replies: 4
    Last Post: 06-17-2011, 02:22 PM
  5. Find and count unique values
    By famico78 in forum Excel General
    Replies: 8
    Last Post: 12-04-2009, 08:23 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