How to count unique values in Excel

May 19, 2022
Novel worth in succeed shows up in a rundown of things just a single time and the equation for including interesting qualities in Excel is “=SUM(IF(COUNTIF(range,range)=1,1,0))”. The reason for counting remarkable and particular qualities is to isolate them from the copies of a rundown of Excel.
A copy esteem shows up in a rundown of things at least a couple of times. An unmistakable worth alludes to every one of the various upsides of the rundown of things. Along these lines, particular qualities are extraordinary qualities in addition to the main events of copy values.
For instance, a rundown contains the numbers 10, 12, 15, 15, 18, 18, and 19. The interesting upsides of this rundown are 10, 12, and 19. The copy values are 15 and 18. The unmistakable qualities are 10, 12, 15, 18, and 19.
This article centers around counting the particular upsides of Excel. For counting the one of a kind upsides of Excel, allude to the primary inquiry under the heading “regularly clarified some pressing issues” of this article.
How to Count the Distinct Values in Excel?
The techniques for including the unmistakable qualities in Excel are recorded as follows:
- Aggregate and COUNTIF capacities
- SUMPRODUCT and COUNTIF capacities
Allow us to talk about the two techniques with the assistance of models.
The accompanying picture shows the names of clients (section A) and the dates (segment B) on which deals were made to them. The income created (in $) from every client is given in section C.
The whole dataset has a place with an association. It connects with the period April 2018. Count the extraordinary upsides of succeed segment A with the assistance of the SUM and COUNTIF elements of Excel.
The means to count the exceptional succeed values by utilizing the SUM
also, COUNTIF
elements of Excel are recorded as follows:
Press the keys “Ctrl+Shift+Enter” together. This is on the grounds that the given equation is an exhibit recipe
. On squeezing the CSE (Ctrl+Shift+Enter
) keys, the wavy supports show up toward the start and end of the equation, as displayed in the accompanying picture.
A cluster equation is generally finished by squeezing the CSE keys. Indeed, even subsequent to altering a cluster equation, the CSE keys should be squeezed to save the progressions made. An exhibit recipe can’t be applied to blended cells.
When the CSE keys are squeezed, the result shows up in cell E3. This is displayed in the accompanying picture. Henceforth, there are 12 particular qualities in segment A. All in all, the association offered to 12 distinct clients in April 2018.
In this recipe, the COUNTIF work is handled first as it is the deepest capacity. From there on, “1/” and the SUM work are handled. The whole equation functions as follows:
The COUNTIF work is provided a solitary reach (A2:A25) two times. This advises the capacity to count the times a worth shows up here. Since there are 24 qualities here, the COUNTIF work returns a variety of 24 qualities. These are displayed in the accompanying picture.
Since “Ruturaj” shows up threefold (in A2:A25), the worth 3 isolated by 1 returns 0.33. Moreover, “Kamal” shows up once, so 1 separated by 1 is equivalent to 1. Accordingly, all values that show up once in the expressed reach (A2:A25) bring 1 back. The qualities that return a decimal number have more than one event.
Then, at that point, the SUM work totals the qualities returned in the previous cluster. Note that assuming a worth shows up threefold in the expressed reach, 0.33 (1/3=0.33) shows up threefold. Along these lines, 0.33+0.33+0.33 is equivalent to 1. Moreover, assuming a worth shows up two times in the reach A2:A25, 0.5 (1/2=0.5) shows up two times. Along these lines, 0.5+0.5 is equivalent to 1. Along these lines, the amount of all events of a worth is generally equivalent to 1. Subsequently, the SUM work returns the all out of the relative multitude of various qualities in the reach A2:A25.
Consequently, the count of special succeed values (in the reach A2:A25) is 12. This 12 is the amount of two one of a kind qualities (Kamal and Raju) and the principal event of ten copy values (Ruturaj, Rohit Gulia, Abhishek Tanwar, Srinidhi.
Note: To see the variety of values returned by the COUNTIF work in pointer “a,” follow the recorded advances:
- Select cell E3 containing the recipe.
- Double tap inside the chose cell or press the key F2. This enters the Edit mode.
- Select the COUNTIF part of the equation, i.e., “COUNTIF(A2:A25,A2:A25).”
- Press the key F9.
- Moreover, to see the variety of pointer “b,” select cell E3 and double tap inside the chose cell. Then, select the section “1/COUNTIF(A2:A25,A2:A25)” and press F9.
- To leave the Edit mode, press the departure (Esc) key.