Count Unique Values in Excel (In Easy Steps)
文章推薦指數: 80 %
Count Unique Values. This example shows you how to create an array formula that counts unique values. 1. We use the COUNTIF function. For example, to count ... CountUniqueValues Thisexampleshowsyouhowtocreateanarrayformulathatcountsuniquevalues. 1.WeusetheCOUNTIFfunction.Forexample,tocountthenumberof5's,usethefollowingfunction. 2.Tocounttheuniquevalues(don'tbeoverwhelmed),weaddtheSUMfunction,1/,andreplace5withA1:A6. 3.FinishbypressingCTRL+SHIFT+ENTER. Note:Theformulabarindicatesthatthisisanarrayformulabyenclosingitincurlybraces{}.Donottypetheseyourself.Theywilldisappearwhenyouedittheformula. Explanation:Therange(arrayconstant)createdbytheCOUNTIFfunctionisstoredinExcel'smemory,notinarange.Thearrayconstantlooksasfollows: {3;1;1;1;3;3}-(three7's,onesun,onemoon,one5,three7's,three7's) Thisreducesto: {1/3;1/1;1/1;1/1;1/3;1/3} ThisarrayconstantisusedasanargumentfortheSUMfunction,givingaresultof1/3+1+1+1+1/3+1/3=4. 4.Thearrayformulabelowcountsthenumberofvaluesthatoccurexactlyonce. Explanation:theIFfunctionconvertsthearrayconstant{3;1;1;1;3;3}to{0;1;1;1;0;0}.ThisarrayconstantisusedasanargumentfortheSUMfunction,givingaresultof3. 5.IfyouhaveExcel365,simplyusethemagicUNIQUEfunctiontoextractuniquevalues. Note:thisdynamicarrayfunction,enteredintocellC3,fillsmultiplecells.Wow!ThisbehaviorinExcel365iscalledspilling. 6.Next,addtheCOUNTAfunctiontocountuniquevaluesinExcel365. 7.Theformulabelowcountsthenumberofvaluesthatoccurexactlyonce. Note:theUNIQUEfunctionhas2optionalarguments.Thedefaultvalueof0(secondargument)tellstheUNIQUEfunctiontoextractvaluesfromaverticalarray.Thevalue1(thirdargument)tellstheUNIQUEfunctiontoextractvaluesthatoccurexactlyonce. 3/11Completed!Learnmuchmoreaboutarrayformulas> NextChapter:Sort Chapter ArrayFormulas Learnmore,it'seasy CountErrors CountUniqueValues CountwithOrCriteria SumEveryNthRow SumLargestNumbers SumRangewithErrors SumwithOrCriteria MostFrequentlyOccurringWord SystemofLinearEquations LETfunction DownloadExcelFile count-unique-values.xlsx NextChapter Sort FollowExcelEasy BecomeanExcelPro 300Examples CountUniqueValues•©2010-2021 ExcelisAwesome,we'llshowyou:Introduction•Basics•Functions•DataAnalysis•VBA
延伸文章資訊
- 1How to use the COUNTUNIQUE Google Sheets formula
The COUNTUNIQUE formula in Google Sheets allows us to calculate unique occurrences of a dataset. ...
- 2如何計算Excel列中的唯一值或數字? - ExtendOffice
Is this possible to count unique values against multiple conditions of other columns? Reply. To p...
- 3COUNTUNIQUE 用法在PTT/Dcard完整相關資訊
關於「COUNTUNIQUE 用法」標籤,搜尋引擎有相關的訊息討論:. COUNTUNIQUE - 文件編輯器說明- Google ... Count Unique Values in a Ra...
- 4google試算表重複的值- COUNTUNIQUE - 旅遊日本住宿評價
COUNTUNIQUE | google試算表重複的值. 計算指定值清單與範圍內的不重複值個數。 ... DCOUNT : 利用SQL 型查詢功能在資料庫資料表形式的陣列或範圍中選取數值,然後計...
- 5COUNTUNIQUE Function - SAS Help Center
COUNTUNIQUE (x <, method> ) ;. This function is supported by the IML procedure and the iml action...