Questions tagged [countif]

COUNTIF is an Excel function which allows for the counting of values in a range where the values meet a criterion.

Microsoft describes the syntax so:

COUNTIF(range, criteria)

The COUNTIF function syntax has the following arguments:

Range Required. One or more cells to count, including numbers or names, arrays, or references that contain numbers. Blank and text values are ignored.
Criteria Required. A number, expression, cell reference, or text string that defines which cells will be counted. For example, criteria can be expressed as 32, ">32", B4, "apples", or "32".

Note

o You can use the wildcard characters - the question mark (?) and the asterisk (*) - in criteria. A question mark matches any single character, and an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) before the character.

o Criteria are case insensitive; for example, the string "apples" and the string "APPLES" will match the same cells.

COUNTIF has been appreciated for checking whether a value is present in a list of values (Super User).

The COUNTIFS function, introduced with Excel 2007, allows for multiple criteria and ranges within a single function, though more than one COUNTIF may be combined to similar effect.

1796 questions
0
votes
2 answers

COUNTIF returns either 0 or number of cells

When using COUNTIF function in making my VB sub I faced a problem: COUNTIF returns either zero or number of cells in a range. Moreover, sometimes it returns correct numbers when I use another data. Here is the code I use: Sub CountifPerc() Dim i As…
Alex
  • 265
  • 2
  • 15
0
votes
3 answers

Counting how many cells have a higher value than the cell below them (COUNTIF and OFFSET)

I am trying to count how many cells in a particular column have a higher value than the cell below them. This is how far I've gotten, but it doesn't work (it always returns 0, even if there is at least one cell bigger than the one below…
Christoph
  • 411
  • 5
  • 9
0
votes
1 answer

countif adding up how many are in a certain month

I am trying to get a formula that counts up how many cells contain this month and how many cell contain < than current month eg: in a column March 2015 January 2016 April 2016 May 2016 May 2016 May 2016 June 2016 And then have a cell at the…
Sarah-Jane
  • 19
  • 1
0
votes
1 answer

Complicated excel equation with multiple conditions

I have a sheet that I use to calculate my taxes, deductions, and 401k based on a timesheet. It also calculates my PTO, sick, and comp days (I don't get overtime, when I work overtime I get that time back at the end of the year as extra paid days…
Flynn
  • 193
  • 2
  • 5
  • 18
0
votes
1 answer

Month, Year and Countif

I am trying to develop a query which should pick out and count the data from a data pool corresponding to the year/month in the given (A106) cell. While such (array) construct…
JanisE
  • 37
  • 1
  • 8
0
votes
1 answer

Using countifs to count number of cells which could contain either 2 text based options in a column

I'm trying to count the number of cells which contain either a N or a A in one column and a Y in another column. I can get it to check for one value in each column (N in colB and Y in colJ) =SUM(COUNTIFS('Nov-Jan'!B$3:B$60,"N",…
Simon
  • 133
  • 1
  • 6
  • 15
0
votes
2 answers

Excel 2010: Vlookup Name from one column & Count and return data from another column

Hoping someone can help me here. :) I have two columns of data in Worksheet 1: COLUMN A = NAME (EG. TOM) COLUMN C = TYPE OF QUERY (FAX, TEL, EMAIL, MAIL) I would like to have in Worksheet 2: COLUMN A = NAME (EG TOM) COLUMN B = A COUNT OF HOW…
0
votes
1 answer

Countif function (excel) in R

I have a dataset "a" with a column "id" with about 23,000 rows, which are unique in this dataframe. I want to count the appearance frequency of these unique values in another two datasets "b" and "c". To do this, I tried the code: count1 <-…
Ramona
  • 11
  • 1
  • 3
0
votes
1 answer

Combine if and countif in Google Sheets

I am trying to make a list on Google sheets that increases according to the value of the number. So it would look like this as you go down: 2,2,4,4,4,4,6,6,6,6,6,6,8... I have tried putting 2 in column A1 and below it putting this formula:…
tardy pigeon
  • 225
  • 6
  • 18
0
votes
2 answers

Countif linked to all sheets in the workbook

Hello I am trying to use countif to add up how many cells have January in. For example I have 40 worksheets and I need to find out how many of them contain january in the date in cell C3 on all of the sheets. and put the answer in another sheet.
Sarah-Jane
  • 19
  • 1
0
votes
1 answer

Excel: CountIf Quandry

Thanks for your help in advance! So my problem is the following; I have a sheet which I use to log risks that come up in my project. They are graded from Critical to Low, and are either "Open" or "Closed". I want a formula that will count only the…
JavaStarta
  • 67
  • 1
  • 11
0
votes
1 answer

Countif DATE - Paste formula & increase date by 1 day, using same range to reference from

A beginners question I expect. I'm tinkering with a new Google sheet called AVAIL for work. It will show for each day how many guests are booked onto the dive boats we use, to help us plan future bookings. I'm referencing the same range from…
Matt
  • 165
  • 2
  • 3
  • 13
0
votes
3 answers

MS excel macro auto count function, result display in window pop up

Good day to all, currently I'm still facing problem of my boss task, to create a MS excel macro. Problem facing is still the same: auto count outdated data and show in the message box when user open worksheet. On previous question I'm already…
Han
  • 45
  • 1
  • 8
0
votes
2 answers

Using an array as a parameter to compare to using countif

I have this issue I haven't been able to work out. I have several teams with a lot of members. Each member uploads a lead to a system that has another column that writes down when the lead took to a proposal. I need to count how many leads did the…
0
votes
1 answer

CountIF With Manual Text Indents

I'm trying to count the specific times a word occurs, but I'm also using a manual indent in my cell. It is for groups of four in which each person answers a Yes/No question. Therefore, there's a number of possibilities that could occur. For…