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
1 answer

Excel VBA - Looping to count cell values larger than / smaller than specific value

I'm currently working with a large amount of contract lists. Each list is in a separate worksheet for each year's quarter and it needs to stay that way. E.g.: 2007_Quarter1, 2007_Quarter2, etc. I have 10 years of data, so 40 quarter report…
MDMFD87
  • 31
  • 1
  • 1
  • 4
0
votes
1 answer

Excel - Count multiple occurances of a value based on a critera

I am trying to count occurances of an account number appearing in column A only when the value in column B = "abc". COUNTIFS(data!G2:N173529,A2) returns the count where the account number appears. However, it returns the complete count without…
Sarah
  • 1,895
  • 2
  • 21
  • 39
0
votes
0 answers

Converting COUNTIFS to SUMPRODUCT

I am making a interactive spreadsheet in which I dumped a bunch of data in one worksheet and then doing some quick analysis on another worksheet. From there I am making a Chart based on the analysis worksheet data. I was using…
user5548803
0
votes
0 answers

vlookup referencing countif formula

I am trying to create either a vlookup or index/match formula to populate cells based on a list data validated cell. The formula I currently have is as follows; =INDEX($D$4:$D$9,MATCH(A30&B30,$A$4:$A$9&$B$4:$B$9,0)) Where A30 and B30 are the 2…
G Cob
  • 21
  • 3
0
votes
2 answers

Count the number of items that contain "JJ number" and "JJ alphabet"

I have a column of data show as below. I would like to count the number of items that contain "JJ number", and "JJ alphabet", which are 6 and 4. I try to use countifs function with the first criteria as " JJ *`` " but then I fail to get the second…
YS Cheung
  • 9
  • 5
0
votes
1 answer

Comparing information/finding duplicates on two spreadsheets

I have two spreadsheets: one has a list of people currently working in my company and the other has a list of people that have ever worked at our company, including current and past employees. I somehow want to connect these two spreadsheets so that…
0
votes
2 answers

countif every nth cell for exact matches

I need to do a countif that will count every other, odd cell. It needs to countif for exact matches, so if I'm looking for "1", it doesn't also count when a 1 appears in 10, 11, 12, etc. I've referenced the question linked below, which has gotten…
Jessica
  • 1
  • 2
0
votes
1 answer

How to use countif and if and round in the same time

From this picture we know the data have mode 3.14 and the value 3.14 = value 3.1 , right? whereas the value 3.1 its not only 3.14 , but include 3.05, 3.06, 3.07, 3.08, 3.09, 3.10 , 3.11 , 3.12 , 3.13 , and 3.14 right ? the question is , how to let…
Revaldo
  • 3
  • 1
  • 3
0
votes
1 answer

COUNTIFS with different date formats in google sheets

I have two spreadsheets: (1) Contains an array of dates in this format: 22.08.2016 13:30 (2) Contains an array of ongoing month dates in this format: 08.2016 What I want to do is use "COUNTIF" to count all rows in spreadsheet (1) that match the…
FlorianT.
  • 833
  • 4
  • 14
  • 29
0
votes
1 answer

Highlight the duplicate in pair

I try to make colume A to check if there is duplicate, but I do need to have a total in A1, since A1 will have the number that can be equal to the data that fill in A5 and below, if I change the conditional format from =countif(A:A,A5)>1…
0
votes
1 answer

Excluding values based on countif functions and if statements

I may have an easy question for some of you, but so far it has vexed me thoroughly. I'm trying to pull data out of a worksheet based on Facility Name and Month for a particular set of Procedure Classes for my Hospital's inter-facility transfer…
mdaube
  • 81
  • 2
  • 2
  • 11
0
votes
0 answers

aggregate function in R with three restrictions

I have event file data from retrosheet.org. This is data on baseball games formatted such that each observation is the description of each play in each game of a baseball season (complete with reference variables for game, player, and play). >…
0
votes
2 answers

Excel range containing certain values

Good afternoon, I have a range of 3 cells A1:A3 which will contain either; "OK", "MISSING" or "Expired", or a combination of those. I'd like a formula which will scan the range and if it contains MISSING to say missing, if it only contains OK or…
Brian
  • 1
0
votes
1 answer

Using count if with dates

I am trying to count how many dates in the G column (or even better: column with the header "document date") are: 3 workdays old or less between 3 and 30 workdays over 30 workdays These are formulas that I use in excel but I would like to do it…
0
votes
1 answer

COUNTIF in R with multiple restrictions

I have event file data from retrosheet.org. This is data on baseball games formatted such that each observation is the description of each play in each game of a baseball season (complete with reference variables for game, player, and play). >…