You are here:

Excel/counting & summing of unique values from a set of values


how to count unique values from a set of values where duplicates also exists

and how to sum the count of Unique values of another column, upon a given condition

any examples are welcome

Thanking you

warm Regards,

You may not have a direct formula to sum or count only the unique records. But, you can achieve the same results by following the below steps:

1. Sort your range by the value which you want to total
2. Insert a formula at the end of your range to check if the current cell value is equal to the prior cell value. Eg. you could enter the formula in cell B2 as (=A2=A1). If the result of this formula is "True", then you've got a duplicate there, else it will show "False"
3. Now you can use the SUMIF or COUNTIF formulae in excel to add or count the unique values, only those where the comparison mentioned in step 2 gives "False"

Hope this helps,
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts




I can answer questions related to the following topics: 1. MS Excel - Creating and Linking Formulae, Running Pivot Tables, Vlookup etc. 2. Macros / VBA - Creating Macros to do specific jobs. Importing / Exporting / Validating Data in excel through Macros.


I've been working on excel for over 10 years and on VBA macros for over 3 years now.

Bachelor of Commerce, Chartered Accountant from The Institute of Chartered Accountants of India

©2016 All rights reserved.