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

I need to count number of dates in a range, that when compared to one specific date are more than a particular number of days (56 in my case)

How I see it what I need is =countif(C:C,"datedif(12-09-2015,C:C,"d")>56") My best guess is that within the datedif brackets I can't enter a date as C:C. I keep getting an error message or a zero. What I want to achieve is to have a monthly…
N.S.
  • 1
  • 1
0
votes
2 answers

countif: count all occurences of value in a column that match value from another cell?

I have the following data on sheet 2 Name Mark Jacob James Smith On sheet 1 I have a name column in column a and i want to count the total number of times the name in column a appears in the name column on sheet 2. Like so: Name …
Mark harris
  • 525
  • 15
  • 39
0
votes
2 answers

COUNTIF and VLOOKUP function across multiple pages

I want to calculate (count) the number of times entries appear to the right of someone's name across multiple worksheets (the name will appear on different rows on the different worksheets). I am calculating shifts on a roster. I have twelve…
Matt Allen
  • 11
  • 3
0
votes
2 answers

Count unique values with criteria

For this Google spreadsheet I would like to do the following: Count the Unique "Provider User IDs" (column C) that meet the following criteria: Column H = "Incomplete" OR "Provider Missed" Column K = 3/24/14 < Value <= 4/30/14 Column X = "School…
0
votes
1 answer

IF COUNTIFS() on filtered data

Question: =IF((COUNTIFS(Data!F:F,35,Data!H:H,E2))<=0,"Future",(COUNTIFS(Data!F:F,35,Data!H:H,E2))) The above doesn't work on filtered data. I've scowered the internet and failed to find a solution after hours of trying. I managed to find a solution…
0
votes
1 answer

Countifs with Or

I have column like this +------+-------------------------+-------------------------+ | Year | Status1 | Status2 | +------+-------------------------+-------------------------+ | 1 | [Blank] |…
pk028382
  • 95
  • 1
  • 10
0
votes
1 answer

COUNTIFS Statement Multiple Tabs in Google Spreadsheet

I can't seem to figure out if what is wrong with this statement. There's no error shown but if I manually calculate the values, I get a different number than the statement. I want to count how many cells are greater than zero in Round 1 (tab)…
Shawn
  • 633
  • 1
  • 6
  • 13
0
votes
0 answers

EXCEL VBA Countifs with dynamic range based on cell value

I need help writing a code for a work template. A macro that does a Countifs with dynamic ranges based on cell value: Countifs($H$5:$H$?,$K5,$I$5:$I:$?,N$4) "**?**" is dynamic based on the value of cell **L5**
ezeagwulae
  • 289
  • 7
  • 22
0
votes
1 answer

Cell variable inside COUNTIF

I have a column with many words in each cell. I want to count how many times a word is in the column and use: =COUNTIF(Data!C3:C9,"*word*") It works fine, now I want to reference a cell instead put the word. I am trying this, but it doesn't…
coyr
  • 659
  • 6
  • 9
0
votes
1 answer

Excel multiple criteria to retain rows that prioritise during deduplication - VBA macro or other method

I need a solution to this so would any kind people out there that can help a novice Excel user? I have three columns. Column A contains 10000 email addresses, Column B contains three values (Dr, Prof, Student), Column C contains title of project.…
0
votes
1 answer

COUNTIFS with two sheets of names...Works unless I copy paste data

I have created a rule for a sheet in Excel to color the two columns unless it matches on another sheet. We are using this for records management of users. Basically we want to paste a list of names on sheet2 and it tell us if they're on sheet1. We…
0
votes
1 answer

COUNTIFS on multiple columns

I would like to return the count of the number of rows for which ANY of the columns have the number 1. The table is three columns, and each column can contain either 0, 1, 2, or 3. Example: Col1 | Col 2 | Col 3 0 | 1 | 0 1 | 2 | 3 0 | 0 | 0 3 | 1 |…
0
votes
2 answers

R: Equivalent for Sumif and Countif by Categorical variable across columns in R

Say I have a data set with 10 columns . Of which 9 are numeric and one is categorical with values like HIgh Medium and Low. I want to summarise ( similar to sumif and countif in excel) by the categorical variable across all the 9 numeric columns in…
user36176
  • 339
  • 1
  • 2
  • 11
0
votes
1 answer

COUNTIF inside COUNTIFS

I have a table WHERE I need to count if values are equal to "A" OR "B" OR "C" in A1:A7, but only if B1:B7 is "XYZ". For example: A XYZ G AAA B ASO C XYZ D OOO F ASO A ASO In this example, it should return 2 values, because the first one…
Tiago
  • 625
  • 5
  • 16
0
votes
2 answers

Excel countif(s) multiples

I'm trying to calculate the count of multiple occurrences of a figure using countif. I have the range set but I need a calculation which can count in multiples of 50 without me having to type thousands of versions of countif…
1 2 3
99
100