Note: The other languages of the website are Google-translated. Back to English
Logáil isteach  \/ 
x
or
x
Cláraigh  \/ 
x

or

Conas luachanna nó uimhreacha uathúla a chomhaireamh i gcolún in Excel?

Ag glacadh leis go bhfuil liosta luachanna agat i raon den bhileog oibre, agus anois ba mhaith leat a fháil amach cé mhéad luach uathúil atá ann. Má shainaithníonn tú agus má chomhaireamh tú iad ceann ar cheann, cuirfidh sé amú go leor uaireanta. Mar sin anseo tabharfaidh mé roinnt cleasanna gasta duit chun déileáil leis an bhfadhb seo.

Líon na luachanna uathúla a chomhaireamh le Foirmlí

Líon na luachanna uathúla a chomhaireamh le Advanced Filter

Líon na luachanna uathúla a chomhaireamh le Kutools le haghaidh Excel


Líon na luachanna uathúla a chomhaireamh le Foirmlí

Tá roinnt foirmlí ann a chabhróidh leat líon na luachanna uathúla i raon a chomhaireamh go tapa. Más uimhreacha iad do chuid sonraí, mar shampla, tá colún uimhreacha agat i raon (A1: A10), féach an scáileán:

doc-count-uathúil-luachanna1

Is féidir leat na foirmlí seo a leanas a úsáid, déan mar seo le do thoil:

1. Iontráil an fhoirmle seo =SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10)) isteach i gcill bhán.

doc-count-uathúil-luachanna1

2. Ansin brúigh Iontráil eochair, agus taispeánfar uimhir an luacha uathúil. Féach an pictiúr:

doc-count-uathúil-luachanna1

Leideanna: 1. Seo foirmle eile =SUM(IF(FREQUENCY(A1:A10, A1:A10)>0,1)) is féidir leis cabhrú leat freisin. Cuir éinne i bhfeidhm mar is mian leat. Áireofar sa dá fhoirmle thuas na luachanna uathúla lena n-áirítear an chéad dúblach freisin.

2. Má tá réimse téacs i do bhileog oibre, ní oibreoidh na foirmlí thuas, ba cheart duit an fhoirmle eagar seo a úsáid: =SUM(IF(FREQUENCY(IF(LEN(A1:A10)>0,MATCH(A1:A10,A1:A10,0),""), IF(LEN(A1:A10)>0,MATCH(A1:A10,A1:A10,0),""))>0,1))

doc-count-uathúil-luachanna1

Tar éis duit an fhoirmle a iontráil, ansin cuimhnigh brúigh Shift + Ctrl + Iontráil eochracha, agus tá líon na luachanna uathúla curtha ar taispeáint.

doc-count-uathúil-luachanna1

Nótaí:

  • 1. An raon A1: A10 tá na foirmlí thuas inathraithe, is féidir leat iad a athrú de réir mar is gá duit.
  • 2. Déanann an fhoirmle seo na luachanna uathúla a chomhaireamh lena n-áirítear an chéad dúblach.
  • 3. Oibríonn an fhoirmle seo i raon téacs agus uimhreacha freisin.

Líon na luachanna uathúla a chomhaireamh le Advanced Filter

Is féidir leat an Scagaire Casta a úsáid freisin chun na luachanna uathúla a bhaint as colún sonraí agus iad a ghreamú go suíomh nua. Ansin leis an bhfeidhm ROWS líon na luachanna uathúla sa raon nua a chomhaireamh. Is iad seo a leanas na céimeanna sonracha:

1. Cliceáil Dáta cluaisín sa ribín, agus ansin cliceáil Advanced ordú, féach ar an scáileán:

doc-count-uathúil-luachanna1

2. Agus sa Scagaire Casta bosca dialóige:

doc-count-uathúil-luachanna1
  • (1.) Roghnaigh Cóipeáil go suíomh eile rogha faoi gníomh;
  • (2.) Sa Raon liosta alt, cliceáil doc-cnaipe1 cnaipe chun na sonraí raon a theastaíonn uait a úsáid a roghnú;
  • (3.) Sa Cóip le alt, cliceáil doc-cnaipe1 cnaipe chun cill a shonrú ar mhaith leat na luachanna uathúla scagtha a chur ann;
  • (4.) Faoi dheireadh, seiceáil Taifid uathúla amháin rogha.

3. Tar éis na socruithe a chríochnú, cliceáil OK, tá na luachanna uathúla liostaithe i gcolún nua, féach an scáileán:

doc-count-uathúil-luachanna1

4. Ansin i gcill bhán, iontráil an fhoirmle ghearr = ROWS (E1: E8), agus brúigh Iontráil eochair ar an méarchlár. Agus taispeánfar líon na luachanna uathúla.

doc-count-uathúil-luachanna9 -2 doc-count-uathúil-luachanna10

Líon na luachanna uathúla a chomhaireamh le Kutools le haghaidh Excel

 Anseo, molfaidh mé uirlis úsáideach duit- Kutools le haghaidh Excel, Lena Roghnaigh Cealla Dúblacha & Uathúla feidhm, is féidir leat na luachanna dúblacha nó na luachanna uathúla a roghnú go tapa agus an líon díobh a chomhaireamh.

Kutools le haghaidh Excel : le níos mó ná 300 breiseán áisiúil Excel, saor in aisce le triail gan aon teorannú i 30 lá

Tar éis a shuiteáil Kutools le haghaidh Excel, déan na céimeanna seo a leanas le do thoil:

1. Roghnaigh an raon sonraí a theastaíonn uait na luachanna uathúla a chomhaireamh.

2. Ansin cliceáil Kutools > Roghnaigh > Roghnaigh Cealla Dúblacha & Uathúla, féach ar an scáileán:

doc-count-uathúil-luachanna11-11

3. Sa an Roghnaigh Cealla Dúblacha & Uathúla bosca dialóige, roghnaigh Luachanna uathúla amháin or Gach uathúil (lena n-áirítear an chéad dúblach) mar is mian leat, ag an am céanna, is féidir leat na luachanna uathúla a aibhsiú trí sheiceáil Líon backcolor or Líon dath cló faoi ​​na Próiseáil na dtorthaí alt, féach an pictiúr:

doc-count-uathúil-luachanna12-12

4. (1.) Má roghnaíonn tú Luachanna uathúla amháin, ní dhéanfar ach na luachanna uathúla a chomhaireamh agus a roghnú ag an am céanna. Féach an pictiúr:

doc-count-uathúil-luachanna13-13

(2.) Má roghnaíonn tú Gach uathúil (lena n-áirítear an chéad dúblach), déanfar na luachanna uathúla go léir, lena n-áirítear na chéad dúblacha, a áireamh agus a roghnú mar a leanas a thaispeántar:

doc-count-uathúil-luachanna14-14

Cliceáil chun níos mó eolais a fháil faoin ngné Roghnaigh Cealla Dúblacha & Uathúla.

Íoslódáil agus triail saor in aisce Kutools le haghaidh Excel Now!


Taispeántas: Líon líon na luachanna uathúla le Kutools for Excel

Kutools le haghaidh Excel: le níos mó ná 300 breiseán áisiúil Excel, saor in aisce le triail gan aon teorannú i 30 lá. Íoslódáil agus triail saor in aisce Anois!


Airteagal gaolmhar:

Conas taifid uathúla a scagadh nó a roghnú ó raon roghnaithe in Excel?


Na hUirlisí Táirgiúlachta Oifige is Fearr

Réitíonn Kutools for Excel an chuid is mó de do chuid Fadhbanna, agus Méadaíonn sé do Tháirgiúlacht 80%

  • Athúsáid: Cuir isteach go tapa foirmlí casta, cairteacha agus aon rud a d'úsáid tú roimhe seo; Cealla a Chriptiú le pasfhocal; Cruthaigh Liosta Ríomhphoist agus seol ríomhphoist ...
  • Barra Foirmle Super (cuir línte iolracha téacs agus foirmle in eagar go héasca); Leagan Amach Léitheoireachta (líon mór cealla a léamh agus a chur in eagar go héasca); Greamaigh go dtí an Raon Scagtha...
  • Cumaisc Cealla / Sraitheanna / Colúin gan Sonraí a chailleadh; Ábhar Cealla Scoilt; Comhcheangail Sraitheanna / Colúin Dúblacha... Cill Dúblach a Chosc; Déan comparáid idir Ranganna...
  • Roghnaigh Dúblach nó Uathúil Sraitheanna; Roghnaigh Blank Rows (tá na cealla uile folamh); Aimsigh Super agus Fuzzy Aimsigh i go leor Leabhar Oibre; Roghnaigh go randamach ...
  • Cóip Díreach Cealla Il gan tagairt fhoirmle a athrú; Tagairtí Cruthaigh Auto chuig Bileoga Il; Cuir Urchair isteach, Boscaí Seiceála agus go leor eile ...
  • Sliocht Téacs, Cuir Téacs leis, Bain de réir Poist, Bain Spás; Subtotals Paging a chruthú agus a phriontáil; Tiontaigh Idir Ábhar Cealla agus Tráchtanna...
  • Scagaire Super (scéimeanna scagaire a shábháil agus a chur i bhfeidhm ar bhileoga eile); Ard-Sórtáil de réir míosa / seachtaine / lae, minicíocht agus níos mó; Scagaire Speisialta le cló trom, iodálach ...
  • Comhcheangail Leabhair Oibre agus Bileoga Oibre; Cumaisc Táblaí bunaithe ar eochaircholúin; Roinn Sonraí i Ilbhileoga; Baisc Tiontaigh xls, xlsx agus PDF...
  • Níos mó ná 300 gné chumhachtach. Tacaíochtaí Office / Excel 2007-2019 agus 365. Tacaíonn sé le gach teanga. Imscaradh éasca i d’fhiontar nó d’eagraíocht. Gnéithe iomlána triail saor in aisce 30 lá. Ráthaíocht ar ais airgid 60 lá.
cluaisín kte 201905

Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
bun officetab
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    priya · 4 years ago
    tying to know the values of unique customer for different products, for ex: there are 100 customers, wanted to know out of those how many are unique customers who buy only those products.

    Likewise: total sales of products = 100
    apple = 40
    orange = 60

    how to find out customers who have brought only oranges and apples?
  • To post as a guest, your comment is unpublished.
    Alireza · 5 years ago
    in this formula,
    =SUM(IF(FREQUENCY(MATCH(B2:B10,B2:B10,0),MATCH(B2:B10,B2:B10,0))>0,1))
    can i add another "if"? for example i want count the range of unique text in B2:B150 if C2:C150=1 ???
    can i?
  • To post as a guest, your comment is unpublished.
    Meags · 5 years ago
    How would you seperate unique values in a cell? ie. #2,#2,#3 I only want the #2 to appear once?
  • To post as a guest, your comment is unpublished.
    Saurabh · 5 years ago
    no these formulas are not sufficient, in actual my problem is little bit big, there are lots of column in my sheet, with the name of store id and store name and months in three column respectively and there is repetition of store name in every month a no of time, i have to calculate the unique no of the store name with respect to month. please suggest me the exact formula accordingly.
  • To post as a guest, your comment is unpublished.
    Wendy · 5 years ago
    Order Rep Status Product Order Value
    A1 John Close Apple $1
    A1 John Close Pear $1.50
    A2 John Open Orange $0.50
    A3 John Close Grape $3.00
    A2 John Open Apple $1
    A4 John Close Orange $0.50
    A5 Mary Close Apple $1
    A6 Peter Close Grape $3.00

    Appreciate your advice on this...
    I am trying to count the unique number of order # (first column), where the rep is John and the order status is closed.
    the result to achieve is 3 unique orders (A1, A3 and A4). But if i do a countifs function, it literally count the number of 'Close' where rep=John, and that comes back with 4.


    Is this possible to count unique values against multiple conditions of other columns?
  • To post as a guest, your comment is unpublished.
    Snoo · 5 years ago
    Anyone know how to make the =SUM(IF(FREQUENCY(A1:A10, A1:A10)>0,1)) formula work to count the number of unique fields for a series of intervals?
    For example, I want to be able to find out the number of unique entries for each day. My data is structures as ID numbers in Column A, Dates in column B. The data is sorted by the date column.

    Any help would be very very much appreciated!
  • To post as a guest, your comment is unpublished.
    John Murray · 5 years ago
    Your formula works a treat and allows me to see the number of unique clients that I have in total (i.e. from all my sales people combined). I am struggling however, to update the formula so that it would allow me to see the number of unique clients an individual sales person would have. Any ideas?
  • To post as a guest, your comment is unpublished.
    Afhar Siyam · 6 years ago
    =SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10))when you are selecting the range make sure that the cells should not be blank.
  • To post as a guest, your comment is unpublished.
    Sam · 6 years ago
    Hi,

    Thank you for your help regarding the duplicates but I'd like to modify your formula =SUM(IF(FREQUENCY(A2:A800, A2:A800)>0,1)) and add this condition (assuming that all the cells are numbers) to count only between 402 to 460 and it goes on to 502 to 560; 602 to 660 (1 formula per range) would it be possible?

    Thank you very much!
  • To post as a guest, your comment is unpublished.
    Christopher · 6 years ago
    This is awesome. Follow-up question: how would you subtotal this if filters were applied?

    If I have:
    Apple
    Orange
    Grape
    Apple

    And filter out the range so only Apple is displayed, how would I get the total to display: "1"?

    Thanks!
    --
    Christopher
  • To post as a guest, your comment is unpublished.
    Jeswant Alexander · 6 years ago
    Your solution with SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10)) is awesome and save a lot of time. Can you please explain the logic as how it works. I'm very interested.
  • To post as a guest, your comment is unpublished.
    Jeswant Alexander · 6 years ago
    Your solution with =SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10)) is awesome and save a lot of time. To some extent I understand sumproduct and countif, but unable to catchup the logic has how this solution works. Can you please explain.
  • To post as a guest, your comment is unpublished.
    Jeswant Alexander · 6 years ago
    The solution with =SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10)) is awesome and saves a lot of time. I understand sumproduct and countif to an extent but unable to catchup the logic as how your solution formula works. Can you please explain me the logic.
  • To post as a guest, your comment is unpublished.
    Amit · 6 years ago
    To actually find the frequency distribution (no of repetition of unique values with in a range), You can use countif funcion. To the cell adjacent to the unique records found out from the original data range, just use funtion:
    = countif(Original Range, unique value)
    This will list out the frequency distributions!!!

    Cheers!
  • To post as a guest, your comment is unpublished.
    naveen · 6 years ago
    super boss... my friends wasted 2 hrs in searchig....u saved my time:-)
  • To post as a guest, your comment is unpublished.
    Fábio Makoto Kawanam · 6 years ago
    [b]Works fine, Thanks a lot![/b]
    :lol:
  • To post as a guest, your comment is unpublished.
    brian moffatt · 6 years ago
    Awesome, I tried many formulas and nothing worked. This worked on the first attempt, just changed teh cell range.
    Thanks! :roll: