+ Reply to Thread
Results 1 to 6 of 6

Count Same Or Duplicate Values Only Once

  1. #1
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Count Same Or Duplicate Values Only Once

    Hi everyone,

    I'm using this formula to count same or duplicate values only once.
    As of now its working fine for a specified range i.e E48:E57
    Whereas I want it to work for a visible range in a table when filters are applied.

    Secondly, I want to exclude a term 'CODE' if it ever appears in a column.

    =SUMPRODUCT((E48:E57<>"")/COUNTIF(E48:E57,E48:E57&""))

    Can someone please make it work or may be you can write a new code.

    Thanks
    Last edited by andyzz; 10-11-2017 at 04:35 AM.

  2. #2
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Re: Count Same Or Duplicate Values Only Once

    Can someone please make it work. thanks

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Count Same Or Duplicate Values Only Once

    You will have to incorporate the SUBTOTAL function if you want to exclude hidden rows from your calculation.

    If you would like more detailed assistance, please upload a small representative sample of your data along with the desired result (manually entered) of a formula.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Count Same Or Duplicate Values Only Once

    Here is the code for UDF CountUnique

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Re: Count Same Or Duplicate Values Only Once

    @kvsrinivasamurthy

    Bang on. It worked perfect. Thanks a ton. Reputation Added.!

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Count Same Or Duplicate Values Only Once

    Thanks for reputations.

+ 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] Count duplicate text values in columns whilst ignoring/excluding certain values
    By adamwestwell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-02-2017, 05:34 AM
  2. [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
  3. [SOLVED] Count then Delete Duplicate Values and put count next to now unique value
    By flipjarg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2014, 04:22 PM
  4. Replies: 1
    Last Post: 03-03-2014, 11:06 AM
  5. count the duplicate values
    By macrogeek in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-18-2011, 05:33 AM
  6. Count once duplicate values in a list
    By carlosmaldonado in forum Excel General
    Replies: 4
    Last Post: 04-14-2011, 12:03 PM
  7. Count duplicate values in worksheet
    By Quek HS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2005, 12:06 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