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

Require a COUNTIF Formulation that is not available on search option

Could you please help I need a COUNTIF formula. The range is Cell A1 to Cell N1, the criteria is if there is a text with A the value of A should be 1 in the answer, and if the text is H the value should be 0.5?
Adel
  • 1
  • 2
0
votes
1 answer

COUNTIF formula with multiple criteria and table

I have a list of four developers (A1="Dev1", A2="Dev2", A3="Dev3" and A4="Dev3"). Within a working week calendar, I have 5 columns, one for each day of the week (C1="Monday", D1="Tuesday", E1="Wednesday", F1="Thursday, G1="Friday"). If developer…
fmagosso
  • 3
  • 4
0
votes
5 answers

Counting the number of times a value is repeated twice in a row

I want to count how many times 0 occurs twice consecutively. See link at the bottom (blue text). I've tried: =SUM(IF(FREQUENCY(IF(C7:BA7="0";ROW(C7:BA7));IF(C7:BA7="0";ROW(C7:BA7)))=2;1)) With Ctrl+Shift+Enter, but it is not working…
Laesn
  • 3
  • 4
0
votes
1 answer

AVERAGEIFS: Weighted rankings

I have a formula for calculating rankings of certain events across different organizations: =AVERAGEIFS(C2:C100, B2:B100, "A", C2:C100, ">0") * IF(COUNTIF(B2:B100, "A") < 3, 0.7, IF(COUNTIF(B2:B100, "A") < 10, 0.9, IF(COUNTIF(B2:B100, "A") > 30,…
0
votes
2 answers

SUMIF over multiple sheets

On the main sheet I have a list of names where I have successfully counted the number of times they appear on another twenty 'project' sheets in the cell range C10:C100. On Cell B5 on every project sheet there is a figure. I want to return the sum…
Rg786
  • 305
  • 3
  • 8
  • 26
0
votes
2 answers

worksheetfunction.countifs is giving an error in VBA code when counting non-blank cells

I have Dim tape, out As Worksheet Set tape = ThisWorkbook.Sheets("Agg") Set out = ThisWorkbook.Sheets("output") out.Cells(1, 2).Value = WorksheetFunction.CountIfs(tape.Range("IG1:IG10000"), "<>" & "", "<>" & " ", "<>" & " ") So generally I am…
Jenny Shu
  • 47
  • 2
  • 4
  • 12
0
votes
2 answers

"Count if" in Crystal Reports (horizontally)

I'm using Crystal Reports. I want to count all cells having "Yes" and all cells having "No" for each line as in following image:
0
votes
1 answer

Countifs in Excel with Exlusion and list of names as criteria

Tryingto CountIf with Exclusions and multiple criteria, Here's an example of just multiple critera: =SUM(COUNTIFS(A1:A9,"YES",B1:B9,{"JOHN","GEORGE","RINGO","PAUL"})) Here's an example of just…
TimandTed
  • 3
  • 7
0
votes
2 answers

Deleting specific rows

I have to generate a Excel VBA macro for a chainage calculator, so I have to leave the first entry and last entry of a specific name and delete all the values in between. For example: EXAMPLE DATA IMAGE So I want to leave the first Rivor Minor253…
yabxi
  • 3
  • 3
0
votes
3 answers

Counting instances of each Month based on IF statements

Assume I have the following table setup: Date Product Type Supplier 12-May-2015 C XX 23-Sep-2015 B XK 12-May 2015 C XA How can I count the…
noname738
  • 61
  • 6
0
votes
1 answer

Excel COUNTIFS filtered

I am trying to extract specific filtered data. Example Unfiltered table: A B C 1 Ext Room 1 Present 2 Ext Room 1 Present 3 Int Room 1 Present 4 Int Room 2 Present 5 Int Room 2 Present So if I want to get…
0
votes
2 answers

Google Sheets Import Data and COUNTIF?

I am using google sheets and trying to Import Data from another sheet into the current sheet, but looking for this imported data to pull certain values. For example, I need to know how many incomplete assignments were submitted by males. This is…
Billy
  • 1
  • 1
  • 2
0
votes
1 answer

How do I utilize both date and time in excel countifs formula

I am currently using the formula below to count occurrences between a date range where column BB is greater than 2000. "Year" is a variable from another cell. Column H is in date time format MM/DD/YY HH:MM. =COUNTIFS('Heat…
Xgrunt24
  • 25
  • 1
  • 4
0
votes
1 answer

Countifs on dates and between times

EXCEL COUNT IFS Code dates and between times. Example of Image with Formula: I have a range called dates IN (xx/xx/xxxx) in column A and dates OUT in column C. Time IN (XX:XX) in column B and Time OUT in column D. My entry date is in column…
Mikey
  • 1
  • 1
0
votes
1 answer

COUNTIFS with value to be tested being an array

I am trying to perform a COUNTIFS function based on whether the cell value to be tested (the col sample data) appears in a array of values (Excel sample col). Obviously to do a COUNTIFS is easy enough: =COUNTIFS( $E$3:$E$13,A6 …
David
  • 5,897
  • 3
  • 24
  • 43
1 2 3
99
100