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

or

Conas a chomhaireamh an bhfuil téacs nó cuid de théacs in Excel sa chill?

Má tá na sonraí thíos agat, agus gur mhaith leat líon na gcealla ina bhfuil an téacs a chomhaireamh "Apple", tá an téacs i líon na gcealla"Oráiste"agus tá cealla"Peach"ar leithligh, conas é a chur i gcrích? Sa rang teagaisc seo, mínímid an COUNTIF feidhmiú go mion chun cabhrú leat líon na gcealla a chomhaireamh go tapa má tá téacs nó cuid de théacs ar leith in Excel iontu. Thairis sin, tugaimid gné uamhnach isteach chun é a aclaíocht go héasca gan ach cad a tharlaíonn nuair.


Comhairigh má tá téacs nó cuid de théacs leis an bhfeidhm COUNTIF sa chill

Is féidir le feidhm COUNTIF cuidiú le cealla ina bhfuil cuid den téacs a chomhaireamh i raon cealla in Excel. Déan mar a leanas le do thoil.

1. Roghnaigh cill bhán (mar E5), cóipeáil an fhoirmle thíos isteach agus ansin brúigh an Iontráil eochair. Agus ansin tarraing an Láimhseáil Líon isteach chun na torthaí go léir a fháil.

=COUNTIF(B5:B10,"*"&D5&"*")

Comhréire

=COUNTIF (range, criteria)

Argóintí

  • Raon (riachtanach): An raon cealla is mian leat a chomhaireamh.
  • Critéir (riachtanach): Uimhir, slonn, tagairt cille, nó sreangán téacs a chinneann cé na cealla a áireofar.

nótaí:

  • San fhoirmle, is é B5: B10 an raon cealla is mian leat a chomhaireamh. Is é D5 an tagairt cille ina bhfuil na rudaí a theastaíonn uait a lorg. Féadfaidh tú an chill tagartha agus na critéir san fhoirmle a athrú de réir mar is gá duit.
  • Más mian leat an téacs a chlóscríobh go díreach san fhoirmle le comhaireamh, cuir an fhoirmle thíos i bhfeidhm:
    =COUNTIF(B5:B10,"*Apple*")
  • Tá an fhoirmle seo cás-neamhíogair.

Ní féidir ach cúpla cliceáil a chomhaireamh má tá téacs nó cuid de théacs in Excel sa chill:

An Roghnaigh Cealla Sonracha fóntais de Kutools le haghaidh Excel is féidir leis cabhrú leat líon na gcealla i raon a chomhaireamh go tapa má tá téacs áirithe nó cuid de théacs iontu. Tar éis an toradh a fháil i mbosca dialóige aníos, roghnófar gach cealla comhoiriúnaithe go huathoibríoch. Cliceáil chun sonraí a fháil.
Íoslódáil Kutools le haghaidh Excel anois! (Conair saor in aisce 30 lá)


Tá téacs ag feidhm chomhaireamh le feidhm COUNTIF

Mar a thaispeántar an pictiúr thíos, más mian leat líon na gcealla i raon áirithe nach bhfuil iontu ach téacs a chomhaireamh, is féidir leis an modh sa chuid seo cabhrú leat.

1. Roghnaigh cill bhán chun an toradh a aschur, cóipeáil an fhoirmle thíos isteach agus brúigh an Iontráil eochair.

=COUNTIF(B5:B10,"*")


Comhairigh má tá téacs nó cuid den téacs le Kutools for Excel sa chill

Leid: Seachas an fhoirmle thuas, tabhair isteach gné uamhnach anseo chun an fhadhb seo a réiteach go héasca. Leis an Roghnaigh Cealla Sonracha fóntais de Kutools le haghaidh Excel, is féidir leat a chomhaireamh go tapa má tá téacs nó cuid de théacs le cad a tharlaíonn i gcill. Is féidir leat comhaireamh a dhéanamh fiú le OR nó And condition mar a theastaíonn uait leis an ngné seo. Déan mar a leanas le do thoil.

Sula n-úsáidtear an Kutools le haghaidh Excel, ní mór duit nóiméad a thógáil chun íoslódáil saor in aisce agus é a shuiteáil ar dtús.

1. Roghnaigh an raon is mian leat líon na gcealla ina bhfuil téacs ar leith a chomhaireamh.

2. cliceáil Kutools > Roghnaigh > Roghnaigh Cealla Sonracha.

3. Sa Roghnaigh Cealla Sonracha bosca dialóige, ní mór duit:

  • Roghnaigh Cell rogha sa Cineál roghnúcháin alt;
  • sa Cineál sonrach alt, roghnaigh sa liosta anuas, iontráil Apple sa bhosca téacs;
  • Cliceáil ar an OK cnaipe.
  • Ansin tagann bosca pras suas chun a insint duit cé mhéad cealla a mheaitseálann an riocht. Cliceáil ar an OK roghnaítear cnaipe agus gach cealla cáilithe ag an am céanna.

 Leid. Más mian leat triail saor in aisce (60 lá) a bheith agat ar an bhfóntas seo, cliceáil le do thoil chun é a íoslódáil, agus ansin téigh chun an oibríocht a chur i bhfeidhm de réir na gcéimeanna thuas.


Earraí gaolmhara

Úsáid countif le critéir iolracha in Excel
In Excel, d’fhéadfadh feidhm COUNTIF cabhrú linn líon luach áirithe i liosta a ríomh. Ach uaireanta, caithfimid ilchritéir a úsáid chun comhaireamh a dhéanamh, beidh sé seo níos casta. Taispeánfaidh an rang teagaisc seo modhanna duit chun é a bhaint amach.
Cliceáil chun níos mó eolais a fháil ...

Comhairigh má tá cealla ag tosú le téacs sonrach in Excel nó ag críochnú leis
Má tá raon sonraí agat agus gur mhaith leat líon na gcealla a thosaíonn le “kte” a chomhaireamh nó a chríochnaíonn le “kte” i mbileog oibre. Tugann an t-alt seo roinnt cleasanna isteach in ionad comhaireamh láimhe duit.
Cliceáil chun níos mó eolais a fháil ...

Déan luach sonrach a chomhaireamh thar iliomad bileoga oibre
Conas a d’fhéadfá luachanna ar leith a chomhaireamh thar bhileog oibre iolrach? Mar shampla faigh an líon teagmhas de luach sonrach “Excel” ó iliomad bileoga oibre. Tugann an rang teagaisc seo modhanna isteach chun é a chur i gcrích.
Cliceáil chun níos mó eolais a fháil ...


Taispeántas: Áireamh má tá téacs nó cuid de théacs le Kutools for Excel sa chill



  • 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 agus Sonraí a Choinneáil; Ábhar Cealla Scoilt; Comhcheangail Sraitheanna Dúblacha agus Suim / Meán... 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 ...
  • Foirmlí is Fearr agus Cuir isteach go tapa, Ranganna, Cairteacha agus Pictiúir; Cealla a Chriptiú le pasfhocal; Cruthaigh Liosta Ríomhphoist agus seol ríomhphoist ...
  • 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...
  • Grúpáil Tábla Pivot de réir uimhir na seachtaine, lá na seachtaine agus níos mó ... Taispeáin Cealla Díghlasáilte, Faoi Ghlas de réir dathanna éagsúla; Aibhsigh Cealla a bhfuil Foirmle / Ainm orthu...
cluaisín kte 201905
  • 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.
    Jan · 1 years ago
    Did someone check this on Macintosh? Im struggeling in Excel365, and cant get a substring to count. Something with using the asteric on the Mac? That blows!
  • To post as a guest, your comment is unpublished.
    lacristein@gmail.com · 2 years ago
    EXCELENTE MUCHAS GRACIAS!!!! ME SIRVIÓ DE MUCHO!!!!
  • To post as a guest, your comment is unpublished.
    Bala · 2 years ago
    Want to countif

    How many apple text in row2 when row 3 is apple farm
  • To post as a guest, your comment is unpublished.
    bubie · 2 years ago
    hi tolong. macam mana ni?
  • To post as a guest, your comment is unpublished.
    Brian · 2 years ago
    Okay, what if I want to do a countif on a specific position in the cell. I'm looking for an 'r' in the third character following a '-' in the cell. So in English count only cells where the third character following the dash ('-') is an 'r'.
    • To post as a guest, your comment is unpublished.
      crystal · 2 years ago
      Hi Brian,
      Sorry can't help you with that yet.
  • To post as a guest, your comment is unpublished.
    Renee · 3 years ago
    Hi,
    needing help please, i need this to do count over 33 work sheets with the same name. this is what i tried to start with =COUNTIF( "1 - 33'!,"*Bosch MIC 7000i IP7230 1080p*") - but no go. the 1 - 33 is the number range of spreadsheet names.

    How ever this is where it gets trickier.
    i need it to also include the totals in the individual spread sheet - name of product / part number and supplier....
    so simple hahahaha
    • To post as a guest, your comment is unpublished.
      crystal · 2 years ago
      Hi Renee,
      Thank you for sharing it.
  • To post as a guest, your comment is unpublished.
    Tresa · 3 years ago
    Is there a way to use the COUNTIF function but rather than typing in the word to count, the formula can look at another cell where the user could type the name into the cell and the cell next to it (with the COUNTIF function) will show how many time the typed in date is in the worksheet?
    • To post as a guest, your comment is unpublished.
      Honza · 3 years ago
      Yes, I've just used it. Assuming the cell where you type this word is C1, the syntax would be following: =COUNTIF(A2:A6,"*"&C1&"*"). Also works with SUMIF, you just add the third condition (sum range).
  • To post as a guest, your comment is unpublished.
    No · 3 years ago
    Thank you!
  • To post as a guest, your comment is unpublished.
    ravikumar · 3 years ago
    Dear Crystal ,

    Please find this Excel ..


    i cannot solve this ...


    My Problem is i want to show yes or no for column J reached 80 % (subtotal) other wise highlight the cell untill reached 80% of the total .and also give me the formula for the same.


    thanks a lot for your quick reply.
    • To post as a guest, your comment is unpublished.
      crystal · 3 years ago
      Dear ravikumar,
      Sorry for reply so late. I still can't find your uploaded file. Is there something wrong while uploading?
      You can send it to my email address: zxm@addin99.com or post your question to our forum: https://www.extendoffice.com/forum.html to get more Excel supports from our professional.
  • To post as a guest, your comment is unpublished.
    ravikumar · 3 years ago
    please find this picture and tell me the formula for count by name but remember vin is same or multiple entries done in the same vin ..so please tell me i want to count how many vin my no is +91 8655315561 or whats app me its urgent
    • To post as a guest, your comment is unpublished.
      crystal · 3 years ago
      Good Day,
      Haven't seen your picture. Please upload it with the below Upload files button.
  • To post as a guest, your comment is unpublished.
    rajesh · 3 years ago
    in the column A employee name is written and in column B car number is written and c column accessories amount is written ..etc


    i want count a how many car is billed with accessories in front of their name ...


    i want formula for count function i tried many function but unable to find it ...so please give me solution for this.
  • To post as a guest, your comment is unpublished.
    JoAnn · 3 years ago
    The formula only seems to work if the word I'm counting is the FIRST word in the cell. How do I count the number of cells that CONTAIN that word, whetheror not it's at the beginning of the cell?
    • To post as a guest, your comment is unpublished.
      crystal · 3 years ago
      Dear JoAnn,
      Thank you for your comment. The formula =COUNTIF(A2:A6,"*Apple*") can count the number of cells that contain the word Apple no matter which position it loactes in the cell. Please don't forget to enbrace the word with asterisks.
  • To post as a guest, your comment is unpublished.
    K · 3 years ago
    Hi,


    I have want to count the number of cells which has 2 specific words.

    Example, I have cells which may contain up to 6 words separated by a comma.

    Example:

    A1: banana,apple,orange
    A2: apple,orange,pineapple
    A3: pineapple,banana,guava
    A4: apple,banana,guava
    A5: orange,guava,pineapple
    A6: apple,guava,orange


    I want to count how many cells contain the words Apple AND Orange.


    In the above case, count would be 3


    Please Help, thanks


    K
    • To post as a guest, your comment is unpublished.
      crystal · 3 years ago
      Good Day,
      As the problem you mentioned, please try this array formula =SUM(--(IF((LOWER(LEFT(TRIM(A1:A6),LEN("apple")+1))="apple,"),TRUE,IF(LOWER(RIGHT(TRIM(A1:A6),LEN("apple")+1))=",apple",TRUE,(IF(ISERR(SEARCH(",apple,",TRIM(A1:A6))),FALSE,TRUE))))*IF((LOWER(LEFT(TRIM(A1:A6),LEN("orange")+1))="orange,"),TRUE,IF(LOWER(RIGHT(TRIM(A1:A6),LEN("orange")+1))=",orange",TRUE,(IF(ISERR(SEARCH(",orange,",TRIM(A1:A6))),FALSE,TRUE)))))) + Ctrl + Shift + Enter
  • To post as a guest, your comment is unpublished.
    Moataz · 3 years ago
    i have excel sheet containing 3 columns (Section / Name / Gender)
    what formula can count how many "male" or "female" in very section
    • To post as a guest, your comment is unpublished.
      crystal · 3 years ago
      Dear Moataz,
      Would you please provide a screenshot of your spreadsheet showing what you are exactly trying to do?
  • To post as a guest, your comment is unpublished.
    SUSH · 4 years ago
    I HAVE TO COUNT THE TOTAL CELL WHICH CONTAINS A NAME AND NUMBER, SO HOW TO COUNT NAMES AND NUMBERS IN EXCEL EX. CELL A1:A5 CONTAINS APPLE 2143 BALL 5431 CAT TELL ME HOW TO COUNT IT
    • To post as a guest, your comment is unpublished.
      Vvv · 4 years ago
      =COUNTIF(A1:A5,"APPLE")


      Sorry I am not sure I got your question. Would be nice if you could provide screenshot of what you are trying to do..
      • To post as a guest, your comment is unpublished.
        KyleM · 3 years ago
        Your response doesn't quite work, you must include * around the text you're searching. ie =countif(A1:A5, "*apple*")
      • To post as a guest, your comment is unpublished.
        Kyle · 3 years ago
        Your response does not work in this scenario.
  • To post as a guest, your comment is unpublished.
    Graham · 4 years ago
    Hi,

    Great tutorials.

    This is just what I have been trying to do, however with one exception.

    What I need to do is instead of search and count for a cell that contains apple I need it to search to see if the cells contain the contents of a another cell with wildcard.

    Currently using COUNTIF(I$8:O$30,B36) which is on the most part doing the job. Cell B36 will contain 2 or the initials, eg GP or TV, which works fine but what I need to do is count if the cells contains GP when cell b36 contains GP/TV.

    The formula COUNTIF(I$8:O$30,B36) does not then pick up and count that cell because it is not just GP.

    I know I could use =COUNTIF(A2:A6,"*GP*") however the cell for the code has 52 if commands in it and is repeated on 37 rows so its not ideal to use that.

    Can it be done?

    Thanks for looking
    • To post as a guest, your comment is unpublished.
      Luke · 4 years ago
      Graham, did you ever find a way to do this please? As I'm currently trying to find a way to do the exact same thing.

      Thank you
      • To post as a guest, your comment is unpublished.
        Asger T.P. · 3 years ago
        If we take Graham's example, then you can write: COUNTIF(I$8:O$30,"*"&B36&"*").

        Hope this helps :)
      • To post as a guest, your comment is unpublished.
        KyleM · 3 years ago
        When using =countif(s) you can use * around the specific text you're trying to look for in a statement. For example, I was looking to count cells where they had the word "ran" in them, when they would be vastly different entries. There would be such things as "ran off road", "animal hit/ran off road", "overturn/ran off road".

        So I did basically =countif(range, "*ran*") and it works fine. Hope this helps?
      • To post as a guest, your comment is unpublished.
        Kyle M · 3 years ago
        When using =countif(s) you can use * around the text you're trying to look for in a statement. For example, I was looking to count cells where they had the word "ran" in them, when they would be vastly different entries. There would be such things as "ran off road", "animal hit, ran off road", "overturn, ran off road".

        So I did basically =countif(range, "*ran*") and it works fine. Hope this helps?
    • To post as a guest, your comment is unpublished.
      Vvv · 4 years ago
      What i did before was place the this code: (=COUNTIF(A2:A6,"*GP*")) on 1 cell and another formula in another cell, then just click =SUM on the 2 cells with the code.
      • To post as a guest, your comment is unpublished.
        Tony · 3 years ago
        Try =COUNTIF(I$8:O$30,"="&"*"&B36&"*")
        • To post as a guest, your comment is unpublished.
          J · 3 years ago
          This worked for me, except I don't want it count if the cell is blank. Any suggestions?