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
3 answers

How to count based on 2 columns?

Column A is age, 22,23,24,25,etc. Column B is Heart Rate, 65,66,67,68 Now I want filter: How many records are there when A=22 & (B>=65 & B<=68)? How to do it,please? @_@
Albert Gao
  • 3,653
  • 6
  • 40
  • 69
0
votes
2 answers

Calling(run) a private Sub worksheet_Change(ByVal Target As Range) from public sub

I am wondering if it is possible to call a private Sub worksheet_Change(ByVal Target As Range) type of sub from another public sub? I know that you can't really 'call' the sub but Run it, however my attempts at running the sub doesn't seem to work.…
Charlie West
  • 61
  • 2
  • 12
0
votes
2 answers

CountIF(s) for out of range criteria

I am trying to work out working formula for CountIF with criteria which is out of the range and I am not sure if "If and Count" would be any differen. Nonetheless, the combination I am trying brings "0" which is certainly not correct. Can someone…
NFS63
  • 9
  • 7
0
votes
1 answer

COUNTIF used on two different cell ranges

I'm having a little trouble with figuring out an Excel formula. What I have are two columns of data in my business, one that tracks if I have a paper receipt for a transaction and one if I have an e-receipt for that same transaction. To this end, I…
Steve G.
  • 411
  • 1
  • 7
  • 21
0
votes
2 answers

Count entries for current month

So I want to count how many entries have been filed in the month of July. Could someone help me how to do that so every month when the new data is added it automatically updates and gives new data for each month. I know I need to use combination of…
Nika Dolidze
  • 33
  • 1
  • 1
  • 5
0
votes
2 answers

COUNTIF Function, reset count if value equals a specific value

I need to list a running count in column A of each occurrence of the value "4A" in column B, but the count needs to reset to 0 if the value in column B equals "2B". I have attached a sample of my workbook, column A shows how I need the count to…
dman
  • 57
  • 1
  • 8
0
votes
1 answer

Alternative to CountIf Worksheet Function

I am trying to use the CountIf WorksheetFunction to show how many values are above and below a given value. The only catch is, I use a filter prior to that, and the ranges that are used are broken ranges. I just learned that the CountIf function…
cam
  • 57
  • 1
  • 11
0
votes
1 answer

excel formula to entries that match a certain cell

example gift card Store Card Amount Kroger 4242 100 On a different sheet entries Store Card Amount kroger 4242 50 kroger 4242 30 kroger 4242 20 Is there a formula that can subtract from the…
0
votes
1 answer

How Do I Autofill a Column Where the Data is Being Pulled from Another Sheet?

Generally this would be a simple task, however, I am working between two sheets. The first sheet is my Summary sheet, the sheet I am using to summarize my data that I will later use to build some charts. The other sheet I am working in is…
0
votes
1 answer

counting multiple columns that pass given criteria in excell

I really need help guys. Please, someone tell how to count how many times an agent passed the condition: AIP Goals please refer to the image. Agents who reached the goal for a specific metric (eq. r30, AHT, Dispatch Rate.. etc) have scores…
0
votes
2 answers

excel how do I count the number of rows containing data?

In Excel, I am attempting to count the number of rows that contain data in a 31 by 17 table. The following formula does the job, but it is cumbersome and not dynamic. Is there a way to improve this formula using a function or array…
0
votes
1 answer

EXCEL-Sum total surgerie duration of surgeries in the weekend and before or after working hours (with overlap)

First I had to determine per specialty the total percentage of surgeries that started outside the regular working hours or in weekends. The final line became: =SUMPRODUCT(((Table1[Start surgery]>TIME(17;0;0))*(WEEKDAY(Table1[Surgery…
user3755730
  • 27
  • 1
  • 3
0
votes
1 answer

Count unique values in column A based on a moving range of criteria in column B

Okay, so this is my first question, let's hope I can explain it well... Essentially, I would like to count the number of unique values in column A, but from a subset of those which have, in column B, a value that falls within a specified…
0
votes
1 answer

Countif offset formula comparing 2 values in same column

Need help with a formula that will count a value only if it's 3 rows below a different value. Both values are in Column c. Example. "Value1" is listed 5 times. So I have a countif for a total of 5. 2 times it is 3 rows below "value2". I want a…
0
votes
1 answer

Counting if multiple Columns has multiple criteria

I have three columns, A, B, C. They can all have three different values. I want to count the row if all three columns contain "x" OR "y" in each of the column. For example {x,y,x} is counted, but {x,t,x} is not counted. If one of the three doesn't…
Kat
  • 2,460
  • 2
  • 36
  • 70