Comments on: Excel COUNT and COUNTA functions to count cells

This short tutorial explains the basics of the Excel COUNT and COUNTA functions and shows a few examples of using a count formula in Excel. You will also learn how to use the COUNTIF and COUNTIFS functions to count cells that meet one or more criteria. Continue reading

Comments page 3. Total comments: 115

  1. If in one cell we will add 14 no e.g. =12+12+15+16+16....than by which formula we can count total entered now ie 14 no??

  2. How to be call apple/oranges in one column..!

  3. hi,
    please advise how can count multiple department who received quote and status closed

  4. Hi,
    I am trying to find the numbers of people from different districts, I have set all the details of people giving cascading options but in the analysis part, I want the numbers of districts chosen by the data collector, is there any particular formula? so that I can get these numbers of people were from this district and these from another district.
    Thanks
    Suresh,

  5. how to keep attendance daily wise even multiple visit count 1 per day in excel please help me...

    Name Date Visit
    Ram 2017/12/1 1
    Shyam 2017/12/1 1
    Hari 2017/12/1 1
    Ram 2017/12/1 1
    Ram 2017/12/2 1
    shyam 2017/12/2 1
    Ram 2017/12/31 1
    shyam 2017/12/31 1

    answer should be

    name month attendance
    ram December 3
    Shyam December 3
    Hari December 1

    how to do????

  6. Hi,
    How to count text mentioned as ''yes'' in different cells Example : count of Yes in cell No. A2 +A20+B15+c30+D25
    Please help

    1. Hello,

      Please try the following formula:

      =COUNTIF(A2,"=yes")+COUNTIF(A20,"=yes")+COUNTIF(B15,"=yes")+COUNTIF(C30,"=yes")+COUNTIF(D25,"=yes")

      Hope it will help you.

  7. Hello Hi
    Please sent my formoula
    for exmplale
    500-2=498 after one entry amount 498 next new figer enter in cell for
    exmpale 3 = 498-3= 495 amount
    plese sent me simple formoula

  8. Im trying to create a formula that counts yes and no without counting them more than once. The yes can apply to the same person but only need to count it once.

  9. Dear,

    How to use countifs function in I have sevaral answers in one column that will be counted?

    More precisely, if I want to count only "Yes" answers from one column and "Yes, always" and "Yes, sometimes" answers from another.

    Thank you in advance...

  10. Hello,

    2 questions:

    1. How to count cells in a row with certain color/s (I use only 2 colors) and return the result in another tab (summary).
    2. How to make sure that additional rows in a sheet are counted? I can't highlight the whole column (as range) as I include notes at the bottom of the working area. At the moment, I specify a range but when my list goes beyond the range, and I forget to update the formula, I miss the additional rows and my count is wrong.

    Appreciate the help. Thank you.

    1. Hello, Sarah,

      1 Here's a short tutorial about counting cells depending on their colours :)
      2 Perhaps, you could extend the range in the formula, but I'm not entirely sure whether you need all the cells from additional range to count or only some of them. And if only some of them, how you decide which ones?

  11. Hi, I'm looking for a formula where it only COUNTS a certain criteria in Sheet 2 if it matches my formula in Sheet 1 B2 which is: =COUNTIF(Sheet 2!$A$1:$A$120,"Dog")

    So imagine Sheet 1 B2 having the results already, I now wanted to count either A, B, or C in Sheet 2 if it EXACTLY matches the name I'm looking for in Sheet 1 A1.

    e.g: Sheet 1 A1=Dog B1=(count of Dog in Sheet 2) C1=A D1=B E1=C
    Sheet 2 A1,A4,A7,A10,A11=Dog
    Sheet 2 A2,A5,A8,A12=Cat
    Sheet 2 A3,A6,A9,A13=Sheep

    Sheet 2 B1=A C1=A D1=A
    Sheet 2 B4=B C4=A D4=A
    Sheet 2 B7=B C4=B D4=A
    Sheet 2 B10=A C10=A D10=A
    Sheet 2 B11=A C11=B D11=A

    So with this sample given, Sheet 1 B1 counted all "Dog" in Sheet 2. Sheet 1 B1,C1, and D1 is looking for A, B, and C, if all rows in in Sheet 2 says:
    [Dog][A][A][A]
    [Dog][B][A][A]
    [Dog][B][B][A]
    [Dog][A][A][A]
    [Dog][A][B][A]

    Thank you!!!

  12. Can someone help me?

    I need to Formal for Countif Formal
    Ex : Our Employees Duty Roster so Shift Based Job thats reason i Count Different Cell Select then Count How many Employees there Time was There LIke Please Help me

  13. Thank you so much for your reply, really appreciate it. I tried the formula but it doesnt give me what am looking for.
    This is the summary of the formula i need.
    discount of $37.9/MT for every pound below 49lbs to 47lbs. And discount of $75.8/MT below 47lbs to 46lbs and rejection for outturn below 46lbs.
    Discount of $5/MT for every nut above 210 to 215, and above 215 to be rejected.
    Discount of $20/MT for every 1% above 10% to 12% above 12% to be rejected. please i need this formula assistance. Thank you.

  14. Please i need a formula for a discount of $37.9 given when a purchase below 49lbs to 47lbs and also a discount of $75.8 is given when a purchase below 47lbs to 46lbs is been made. please i need a formula fo this please

    1. Hello.

      Thank you for contacting us.

      Please try the following formula to solve your task:

      =IF(AND(A1 >= 47,A1 <= 49), "$ 37.9", IF(AND(A1 >= 46, A1<47), "$ 75.8", 0))

  15. hello !
    I need more excel work in today, vlookup and count

    thanks in advance

  16. many number count

  17. Can someone help me?

    I have a column that has different cities in each cell some have just one city and some have Multiple destinations: city1, city2, city3. These cities overlap. Is there a function I can use to count all of "city 1"? I have tried =COUNTIF(F4:F29,"City 1 name") but it does not count the ones with multiple cities.

    Thanks,

  18. Could someone please suggest a formula for the following requirement:

    For Example: I have in Column range from B5 to B20 and B5, B6, B7, are with numerical data, and B8, B9 are blank, B10,B11 again with data.

    I want to have a formula which counts all the cells from B5 to the last active column which is B11 and the answer should be 7 for this – which is by counting all the way from B5 to B11. Many thanks.

    1. Dear all,

      I just got the formula which I was looking for, from another site:

      The following formula gives count of all the blank and non-blank, till the last cell with any data:
      =MAX(IFERROR(MATCH("ž", A:A),0),IFERROR(MATCH(1E+100, A:A),0))

      The following formula give the count of all the blank and non-blank cells till the last cell with the figures
      =MATCH(1E+100,A:A)

      Hope this would be helpful to someone with the same requirement as mine. God Bless. Thomas

  19. I want to count values those are in following ranges
    0 -19 ,20-34, 35-39,40-49,50-64,65-74,>75

  20. Svetlana - thank you for your blog. Your help on an array three years ago helped me greatly on my project. I have a new COUNTIF question. I have a file with 9895 rows of mailing information. The zip codes are either 5-digits or zip+4. I'm trying to count the number of zip codes in a few categories: 1) Number of 5-digit zip codes (I wrote that formula fine); 2) Number of zip codes that BEGIN with THREE specific numbers and DO NOT include any of the 5-digit zip codes I already counted. I can't seem to write a formula or array that gets me to the correct answer. I don't want to count any zip codes that INCLUDE the three specific numbers if they are NOT the first three numbers. I've used LEFT for a few formulas, but now I can't seem to eliminate those zip codes where the specific string is INSIDE the zip code, not the first three characters in the cell. Should the column of zip codes be a number or text? Here's my array attempt at counting: =SUM((LEN(LABELS!$B$2:$B$10000)-LEN(SUBSTITUTE(LABELS!$B$2:$B$9896,"958","")))/LEN("958"))-G2-G3-G4-G7-G8-G9-G10-G11-G12 that I thought searches for zip codes that begin with "958" and subtracts the 5-digit searches I already completed, but it's returning a count with the "958" included in the zip. Any thoughts?

  21. Hello
    I havew in my column A the fellowing values
    B-COM-TES-001
    V-MAN-ITF-005
    S-COM-TES-020
    V-COM-TES-008

    if I want to count the combine (COM-TES)In all the column
    How can I do

    Merci

    1. I have date in cell like below:
      TC1D 2
      TC1-D 5
      I want to count the date cell for both at a time and sum of the same.
      In that way like my count will come 2 and sum 7.
      Please help.

    2. =COUNTIF(J4:J7,"*com*")
      j4:j7 is data coloumn.

  22. Hello,

    Do you also have a tutorial on COUNT and COUNTA in Google Sheets?

    Yours,

    Robert

  23. Hi there,

    I want to count the number of blank cells and non-blank cells in column B,
    if column A is X and column C is X, Y and Z.

    Thank you

  24. I have data with family includes Self, spouse, children, parents. i want separate count of how many single child family and how may 2 children family are there in data.

    kindly help

  25. Hi,

    I would love to have some help on this:

    I have B5:B66 range and I want count ONLY if a certain value occurs 3 times or more (values 8,0

    Example: 8599962555
    I need to count: 999 = 1
    and: 555 = 1
    Then : 1+1 = 2

    How can I do this???
    thanks in advance!

  26. Extremely Helpful website.

  27. Hi, i have a certain name (wilium) in column A and against this name i have 2 option, 1 Done and 2 Inprogress. i want that i count done again wilium and count inprogress against wilium separately. which formula will work for it??

  28. how can I make formulas appear in all cells instead of the values

    1. ctrl+`

  29. I have query divide this no as an following way in different column if 4,50,00, 000 given then we will get
    2,00,00,000
    1,00,00,000
    1,00,00,000
    50,00,000

  30. Ok guys/girls i'm pulling my hair out with this formula, i'm fairly confident the problem is in the two cells with times in. cells h50:h5000 have two times combined in a cell with - as a division, all i need is the second part but using 'right' function doesn't appear to work as part of a larger countifs. these cells are imported and can be 1000's of rows long so creating another column to separate is awkward.

    f50:f5000=13:59 h50:h5000=12:33-17:00

    =COUNTIFS(C$50:C$5000,A6, X$50:X$5000, ">0", Y$50:Y$5000, ">0",F$50:F$5000, ">" & RIGHT(H$50:H$5000,5))

    The formula by itself (ctrl, shift, enter) appears to work fine but I require the other criteria.

    =COUNTIF(F$50:F$5000, ">" & RIGHT(H$50:H$5000,5))

    Any help would be greatly appreciated.

    Andy

  31. Hi,
    I am trying to use countifs to count no of cell which meet multiple criteria where each criteria has got different no fo rows and column compare to other.
    for example:
    i want to count no of cell from column D,E and F if value in column A is equal to X.
    Thanks in advance

  32. Hi Mam
    This list is % or marks
    100
    93
    91.4
    90.8
    90.6
    90
    88.6
    86.4
    85.2
    80.8
    79.2
    78.4
    75.8
    75
    73.6
    73.6
    73.6
    73.6
    73.6
    73.6
    73.6
    73.6
    71.6
    71.6
    71.4
    70
    69.6
    68.6
    66.2
    65.2
    I want result between 91 to 100 how many student
    81 to 90
    71 to 80
    61 to 70
    51 to 60
    41 to 50
    33 to 40
    below 33
    what formula use in it.

    1. =countifs(range of mark,">=71",range of mark,"<=80")

  33. Hello I am trying to find a formula which allows me to add 2 different words in 2 different columns with drop down menus in each. Here are an example of the words:

    "A" for Column E

    For Column G
    ACV, AMV, FIRE, PER INJ, OTHER, PMV2, PMV4, PMVO, PRO DMG, SUPLMT, WATER, WPN/ND, AV GND

    A certain combination will only work for a specific column. Example:
    Accident Class:
    A
    B
    C
    D
    E
    F
    OHR
    NR
    Each of these only work with one word at a time, but all of the combinations for "A" need to be tracked in a column (A3) for example.
    "B" would tracked in A4 and "C" would be tracked in A5 and so on. If B and ACV were in their respective columns (Say E5 and G5)on one sheet, then those 2 numbers would be tracked on another sheet on A3 as a number.

    I hope this explains it well enough, thank you.

    1. I found the solution, disregard, thank you.

  34. I am using this formula =IF(MAX($A$4:A263)=SUMPRODUCT(1/COUNTIF($B$5:B264,$B$5:B264)),"",(SUMPRODUCT(1/COUNTIF($B$5:B264,$B$5:B264)))) For Serial Number but it shows the sr no after missed some columns. whereas the sr. number column should be nill until the next particular not comes.

  35. I want to count enteries in a column and then multiple the number of entries by a set number. In other words, I have a spreadsheet, where different columns have different values. IF an entry is made in column A, it should be counted as 1 entry. But the value of second column is double and that of third is x 5.

    So I want to be able to count the number of entries in a particular column and then multiply it by 2/5/10. Whats the best formula for this?

    Thanks for your help.

  36. Write a Formula to count the number of Active Employees in Each City

    Employees Location Status
    Employee1 Manila Active
    Employee2 Manila Active
    Employee3 Mumbai Active
    Employee4 Surrey Active
    Employee5 Mumbai Inactive
    Employee6 Mumbai Active
    Employee7 Mumbai Active
    Employee8 Manila Inactive
    Employee9 Manila Active
    Employee10 Surrey Inactive
    Employee11 Surrey Active
    Employee12 Surrey Active
    Employee13 Manila Active
    Employee14 Manila Active
    Employee15 Manila Active
    Employee16 Manila Active
    Employee17 Manila Inactive
    Employee18 Surrey Active
    Employee19 Surrey Active
    Employee20 Mumbai Active

  37. HOW TO COUNT, I HAVE DATA OF STUDENTS FROM VARIOUS STATES, I WANT TO COUNT HOW MANY STUDENTS ARE FROM DELHI AND THERE SURNAME IS "REDDY" ? PLZ HELP

    1. =COUNTIFS(G2:G11,"****reddy",H2:H11,"delhi")

  38. I have want to count a range of cells. The =COUNTA('Employee Edu-Skills History'!A31:A55,"*")count the formulas. I only want to count the text in the cells

  39. Hello

    i want to count Yes and No in the rows

    That was no issue .
    But i want to stop the you after the first the NO

    has sombody a idea how to handle it ?

  40. I was Searching this topic since 3 weeks Now i Found in this articular Thanks a lot. its working in Drop Down list active Words.
    =COUNTIF(A2:A15, "apples")

  41. I have three worksheets two with the years dates in B3:NB3. the a1 column has text in it. I am trying to calculate how many time in a rolling 90 days the product in a1 sell mp I'm using this
    =COUNTIFS(A1,"<=today()-90",'2016'!B4:NB4,"MP")

    It count the MP but
    ie if today is 5/24/16 it should not count any mp before 2/27/16

    can you tell me what I'm missing. I'm getting "Value" in the output field

    thanks

  42. can u send me a drop down list examples in excel where there is huge data for e.g

    Divison Zone Region Area HQ
    Divan West Mumbai Mumbai Mumbai
    Divan West Mumbai Mumbai Goa
    Divan West Pune Pune Pune
    Divan West Pune Pune Pimpri
    Divan West Ahmdabd Rajkot Rajkot
    Siman North Delhi dELHI Delhi
    Siman North Delhi jAIPUR Kota
    Siman North Delhi Jaipur Jodhpur

    This list is huge. Please help how to prepare drop down list

    if we click on Division the Divison will show then after clicking on Zone the zone and clicking on the specific zone the zones area will reflect with HQ automatically.

    Please help.

  43. Pretty good ma'm, bundle of thanks :)

  44. how can we use "if" function when there is either text or number in cell..

    if the cell contain text then answer should be "Yes" or else the cell contain number then answer shold come "No"

    1. Please reply

      CUSTOMER1(CONTAINER1) AVAILABLE
      CUSTOMER2(CONTAINER1) AVAILABLE
      CUSTOMER1(CONTAINER2) AVAILABLE
      CUSTOMER2(CONTAINER2) AVAILABEL

      ANSWER SHOULD BE CUSTOMER1 2

    2. Hello Rinju,

      You can use a formula similar to this:

      =IF(ISTEXT(A1), "Yes", IF(ISNUMBER(A1), "No", ""))

      Additionally, you can check for blank cells:

      =IF(ISTEXT(A1),"yes", IF(ISNUMBER(A1),"no", IF(ISBLANK(A1),"blank","")))

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)