Skip to main content

Conas luachanna uathúla a chomhaireamh sa tábla pivot?

De réir réamhshocraithe, nuair a chruthaímid tábla pivot bunaithe ar raon sonraí ina bhfuil roinnt luachanna dúblacha, áireofar na taifid go léir freisin, ach, uaireanta, ní theastaíonn uainn ach na luachanna uathúla a chomhaireamh bunaithe ar cholún amháin chun an ceart a fháil toradh scáileáin. San Airteagal seo, labhróidh mé faoi conas na luachanna uathúla sa tábla pivot a chomhaireamh.

Líon luachanna uathúla sa tábla pivot le colún cúntóra

Déan luachanna uathúla a chomhaireamh sa tábla mhaighdeog agus Socruithe Réimse Luacha ann Excel 2013 agus leaganacha níos déanaí


Líon luachanna uathúla sa tábla pivot le colún cúntóra

In Excel, ní mór duit colún cúntóir a chruthú chun na luachanna uathúla a aithint, déan na céimeanna seo a leanas le do thoil:

1. I gcolún nua seachas na sonraí, iontráil an fhoirmle seo le do thoil =IF(SUMPRODUCT(($A$2:$A2=A2)*($B$2:$B2=B2))>1,0,1) isteach i gcill C2, agus ansin tarraing an láimhseáil líonta chuig na cealla raon ar mhaith leat an fhoirmle seo a chur i bhfeidhm, agus aithneofar na luachanna uathúla mar atá thíos an pictiúr a thaispeántar:

2. Anois, is féidir leat tábla pivot a chruthú. Roghnaigh an raon sonraí lena n-áirítear an colún cúntóra, ansin cliceáil Ionsáigh > PivotTábla > PivotTábla, féach ar an scáileán:

3. Ansin sa Cruthaigh PivotTable dialóg, roghnaigh bileog oibre nua nó bileog oibre atá ann cheana inar mian leat an tábla pivot a chur, féach ar an scáileán:

4. Cliceáil OK, ansin tarraing an Rang réimse go Lipéid Rae bosca, agus tarraing an Helper gcolún réimse go luachanna bosca, agus gheobhaidh tú an tábla pivot seo a leanas nach bhfuil ann ach na luachanna uathúla a chomhaireamh.


Déan luachanna uathúla a chomhaireamh sa tábla mhaighdeog agus Socruithe Réimse Luacha ann Excel 2013 agus leaganacha níos déanaí

In Excel 2013 agus leaganacha níos déanaí, leagan nua Líon ar leith tá feidhm curtha leis sa tábla pivot, is féidir leat an ghné seo a chur i bhfeidhm chun an tasc seo a réiteach go tapa agus go héasca.

1. Roghnaigh do raon sonraí agus cliceáil Ionsáigh > PivotTábla, I Cruthaigh PivotTable bosca dialóige, roghnaigh bileog oibre nua nó bileog oibre atá ann cheana áit ar mhaith leat an tábla pivot a chur, agus seiceáil Cuir na sonraí seo leis an tSamhail Sonraí bosca seiceála, féach an pictiúr:

2. Ansin sa Réimsí PivotTable pána, tarraing an Rang réimse go dtí an Rae bosca, agus tarraing an Ainm réimse go dtí an luachanna bosca, féach an pictiúr:

3. Agus ansin cliceáil ar an Líon Ainm liosta anuas, roghnaigh Socruithe Réimse Luach, féach ar an scáileán:

4. Sa an Socruithe Réimse Luach dialóg, cliceáil Déan Luachanna a Achoimriú Le cluaisín, agus ansin scrollaigh chun cliceáil Líon ar leith rogha, féach an scáileán:

5. Agus ansin cliceáil OK, gheobhaidh tú an tábla pivot nach n-áirítear ach na luachanna uathúla.

  • nótaí: Má dhéanann tú seiceáil Cuir na sonraí seo leis an tSamhail Sonraí rogha sa Cruthaigh PivotTable bosca dialóige, an Réimse Ríofa díchumasófar an fheidhm.

Ailt níos coibhneasta PivotTable:

  • Cuir an Scagaire céanna i bhfeidhm ar Táblaí Il Pivot
  • Uaireanta, is féidir leat roinnt táblaí pivot a chruthú bunaithe ar an bhfoinse sonraí céanna, agus anois scagaíonn tú tábla pivot amháin agus ba mhaith leat táblaí pivot eile a scagadh ar an mbealach céanna freisin, ciallaíonn sé sin gur mhaith leat scagairí tábla pivot iolracha a athrú ag an am céanna. Excel. An t-alt seo, labhróidh mé faoi úsáid gné nua Slicer in Excel 2010 agus leaganacha níos déanaí.
  • Nuashonraigh Raon Tábla Pivot I Excel
  • In Excel, nuair a dhéanann tú sraitheanna nó colúin a bhaint nó a chur leis i do raon sonraí, ní nuashonraíonn an tábla pivot coibhneasta ag an am céanna. Anois inseoidh an teagasc seo duit conas an tábla pivot a nuashonrú nuair a athraíonn sraitheanna nó colúin an tábla sonraí.
  • Folaigh Rónna Bána I PivotTable In Excel
  • Mar is eol dúinn, tá tábla pivot áisiúil dúinn anailís a dhéanamh ar na sonraí i Excel, ach uaireanta, tá roinnt ábhar bán le feiceáil sna sraitheanna mar atá thíos seó scáileáin. Anois inseoidh mé duit conas na sraitheanna bána seo a cheilt sa tábla mhaighdeog i Excel.

Uirlisí Táirgiúlachta Oifige is Fearr

Oifig Tacaíochta/Excel 2007-2021 agus 365 | Ar fáil i 44 Teanga | Éasca le Díshuiteáil go hiomlán

Gnéithe Coitianta: Aimsigh/Aibhsigh/Aithnigh Dúblaigh   |  Scrios Sraitheanna Bána   |  Comhcheangail Colúin nó Cealla gan Sonraí a Chailleadh   |   Babhta gan Foirmle ...
Cuardaigh Super: Ilchritéir VLookup    VLookup Illuachanna  |   VLookup Trasna Ilbhileoga   |   Amharc doiléir ....
Liosta anuas Casta: Go tapa Cruthaigh Liosta Anuas   |  Liosta anuas Cleithiúnach   |  Liosta Buail Isteach Ilroghnacha ....
Bainisteoir Colún: Cuir Líon Sonrach Colún leis  |  Colúin Bog  |  Scoránaigh Stádas Infheictheachta na gColún Ceilte  |  Déan comparáid idir Raonta & Colúin ...
Gnéithe Réadmhaoin: Fócas Eangaí   |  Amharc Dearaidh   |   Barra Mór na Foirmle    Leabhar Oibre & Bainisteoir Bileog   |  Leabharlann Acmhainní (Uaththéacs)   |  Piocálaí Dáta   |  Comhcheangail Bileoga Oibre   |  Criptigh/Díchriptigh Cealla    Seol Ríomhphost trí Liosta   |  Scagaire Super   |   Scagaire Speisialta (scagaire trom/iodálach/stailc tríd...) ...
Barr 15 Uirlisí12 Téacs uirlisí (Cuir Téacs, Bain Carachtair,...)   |   50 + Cairt cineálacha (Cairt Gantt,...)   |   40+ Praiticiúil Foirmlí (Ríomh aois bunaithe ar lá breithe,...)   |   19 Insertion uirlisí (Cuir isteach Cód QR, Ionsáigh Pictiúr ón gCosán,...)   |   12 Tiontú uirlisí (Uimhreacha go Words, Comhshó Airgeadra,...)   |   7 Cumaisc & Scoilt uirlisí (Sraitheanna Comhcheangail Casta, Cealla Scoilt,...)   |   ... agus eile

Kutools for Excel Tá breis is 300 gné ann, A chinntiú nach bhfuil uait ach cliceáil ar shiúl...

Supercharge Do Excel scileanna: Éifeachtúlacht Taithí Mar Riamh Roimhe Le Kutools for Excel  (Triail Iomlán 30-Lá Saor in Aisce)

cluaisín kte 201905

Ráthaíocht Neamhchoinníollach Airgid Ar Ais 60-LáLeigh Nios mo... Íoslódáil saor in aisce ... Ceannach ... 

Office Tab Tugann sé comhéadan Tabbed chuig Oifig, agus Déan do chuid Oibre i bhfad níos éasca

  • Cumasaigh eagarthóireacht agus léamh tabáilte isteach Word, Excel, Pointe cumhachta, 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éaduithe ar do tháirgiúlacht faoi 50%, agus laghdaítear na céadta cad a tharlaíonn nuair luiche duit gach lá! (Triail Iomlán 30-Lá Saor in Aisce)
Ráthaíocht Neamhchoinníollach Airgid Ar Ais 60-LáLeigh Nios mo... Íoslódáil saor in aisce ... Ceannach ... 
 
Comments (27)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks ! Saved me a lot of hours, me and my friend !
This comment was minimized by the moderator on the site
My Excel dont have check box " Add this data to the Data Model"
So, What can i do?
This comment was minimized by the moderator on the site
Hello, Jay,
Which Excel version do you use? This option is only added for Excl 2013 and later versions. If you do not find this option, please apply the first method in this article.
https://www.extendoffice.com/documents/excel/2127-excel-pivot-table-count-unique-values.html#a1

Thank you!
This comment was minimized by the moderator on the site
Thank you so much !!!!!
This comment was minimized by the moderator on the site
I cannot edit after I save. Can yo tell me why?
This comment was minimized by the moderator on the site
sorry, this still doesn't provide a solution for me in excel 2010. You're =if(sumproduct() formula doesn't work. It misses the values for the if formula if you use it like you put it and it doesn't count unique values in my excel sheet if I add =if(>1,01;1;0)...
This comment was minimized by the moderator on the site
oh man... you saved me so so so much time !!!
thanks a lot !!!!
This comment was minimized by the moderator on the site
Distinct count Option not shown in summarize value by - Excel version 2013
This comment was minimized by the moderator on the site
Please verify that you have ticked the "Add this data to data model" check in the CreatePivot dialog box :)
This comment was minimized by the moderator on the site
I faced the same issue and then found the resolution.
Seems that it's available only when you tick the "Add this data to the Data Model" checkbox in the Create PivotTable dialog box.
Please try if that helps
This comment was minimized by the moderator on the site
same for me! Any suggestion?
This comment was minimized by the moderator on the site
These all work but only to an extent. I'm trying to find a solution for the issue with all of these. When I create a helper column and use the formula =IF(SUMPRODUCT(($A$2:$A2=A2)*($B$2:$B2=B2))>1,0,1) I do indeed get the distinct count. But how do you resolve the issue were you need the pivot fields to include one of the lines of data where the formula gives a zero? I also tried using the Data Model and distinct count. This gives the correct count but when you double click the data to drill down you do not get the data specified in the pivot.
This comment was minimized by the moderator on the site
Amazing! thanks a tons - this worked for me on Excel 2016.
This comment was minimized by the moderator on the site
I don't see the Distinct Count under Summarize Value By tab. My "Add this data to the Data model" check box is also grey out. How can I change this setting?
This comment was minimized by the moderator on the site
Ran into the same issue... it is probably because the file you opened was as a csv. When I reopened my file as an excel file (either start a new one, copy+paste or save as), I have the functionality of adding to data model
This comment was minimized by the moderator on the site
omg!!! yes...thanks for this!!!!
This comment was minimized by the moderator on the site
Thanks. It is helpful..
This comment was minimized by the moderator on the site
Thank you. saved lot of hours.
This comment was minimized by the moderator on the site
I am using excel 2016 but I am not seeing the Count Distinct option in the pivot Value Fields Settings window. There are only Sum, Count, Average, Max, Min, Product, Count Numbers, StdDev, StdDevp, Var and Varp. Any thoughts on how to find it?
This comment was minimized by the moderator on the site
Hello, Nick,
You should check Add this data to the Data model check box in the first step when you creating the pivot table, see screenshot:
This comment was minimized by the moderator on the site
Hi Skyyang, Thank you, I did select this but once it is selected, I am not able to add calculated fields. Do you know how to add in calculated fields using this method?
This comment was minimized by the moderator on the site
very helpful!
This comment was minimized by the moderator on the site
So glad I came across this.
This comment was minimized by the moderator on the site
Very helpful !
This comment was minimized by the moderator on the site
Never used that Add this data to the data model before, great tip! Thanks!
This comment was minimized by the moderator on the site
Awesome ... thank you.
This comment was minimized by the moderator on the site
I own and love KuTools, but to find unique values (using 2010) whether with helpers cells or Kutools, do does the data have to be sorted so that the unique field can be found? Thank you.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations