+ Reply to Thread
Results 1 to 9 of 9

How to count all of duplicate value by ignoring blank cells?

  1. #1
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    How to count all of duplicate value by ignoring blank cells?

    Please, help me to count sum of duplicate values by ignoring blank cells.

    Name
    ===== Duplicate value = 3
    1 Apple
    2 Mango
    3 Apple
    4 Apple
    5 Papaya
    6 Banana
    7
    8
    9
    10

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How to count all of duplicate value by ignoring blank cells?

    can you post a sample file? Need more details. What if two values are duplicated?

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: How to count all of duplicate value by ignoring blank cells?

    Hi putritersenyum,

    This looks like a Pivot Table problem to me. Pivot tables can do either Count or Sum or BOTH. Read about them at:
    http://www.pivot-table.com/2009/11/1...-sum-or-count/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Re: How to count all of duplicate value by ignoring blank cells?

    This code work for me, but not for ignoring blank cells
    Please Login or Register  to view this content.

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

    Re: How to count all of duplicate value by ignoring blank cells?

    Try this:

    =SUMPRODUCT(--(COUNTIF(A1:A10,A1:A10)>1))

  6. #6
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Re: How to count all of duplicate value by ignoring blank cells?

    63falcondude, my range have formula, so although the value is blank but the formula for one cell count as one.

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

    Re: How to count all of duplicate value by ignoring blank cells?

    In that case, try this:

    =SUMPRODUCT(--(COUNTIFS(A1:A10,A1:A10)>1)*(A1:A10<>""))

  8. #8
    Forum Contributor
    Join Date
    03-04-2015
    Location
    Jakarta
    MS-Off Ver
    15
    Posts
    154

    Re: How to count all of duplicate value by ignoring blank cells?

    Great, it works. Thank you very much, 63falcondude

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

    Re: How to count all of duplicate value by ignoring blank cells?

    You're welcome. Thanks for the rep!

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

+ 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: 3
    Last Post: 07-24-2017, 01:41 PM
  2. [SOLVED] Ignoring Blank Cells
    By prudential in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2015, 11:21 AM
  3. Count how often value changes in a column, ignoring blank cells
    By flyaway in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2014, 04:09 AM
  4. [SOLVED] How to count cell value with multiple criteria while ignoring duplicate
    By jomi9501 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-17-2012, 12:23 AM
  5. Help with ignoring blank cells
    By Darren in forum Excel General
    Replies: 1
    Last Post: 11-19-2005, 03:50 PM
  6. How do I do count calculations ignoring duplicate values
    By Robin Faulkner in forum Excel General
    Replies: 1
    Last Post: 03-31-2005, 12:06 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