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

How to see full array of values returned by countif (excel)

I am trying to do a countif for the number of times each value in a list appears in that list using =COUNTIF(T19:T39,T19:T39&""). How do I see the full array that is output by this? Every time I try to calc the function it just returns 0. If I try…
0
votes
1 answer

SAS countif function without using proc

I need to do a frequency distribution of this one column data without using any proc freq; proc sql. I'm only allowed to use proc sort. In excel I would use a simple countif, but I don't know how to do this in SAS given above contraint. data…
Sam
  • 3
  • 3
0
votes
1 answer

Excel: Count if cell is not empty using the "=" operator (allowing for a switch)

I want to create a switch for one of my criteria in a countifs-formula, using a dropdown list. For example: I want to count all the companies that match criterion 1 (area), and then have a second criterion, size, whose value I can change using a…
Clemens
  • 3
  • 3
0
votes
3 answers

Excel: CountIfs with matching criteria on multiple rows counted by Group

I think this must be possible, but can't seem to figure it out. I have the following data: | responseid | Question | Answer | ________________________________________ | 1 | Favorite Color | Red | | 1 | Favorite Food |…
wellmstein
  • 113
  • 5
0
votes
1 answer

Excel: Need to count occurrences that values in column are greater than another column AND value in a third column is specified

The dummy data below is similar to the data I'm working with. I want to check how many instances that the value is greater than the goal, only in one region at a time. To clarify, I have already figured out how to count the number of occurrences in…
tdm
  • 131
  • 5
0
votes
1 answer

Escaping for Countif macro with wildcard cell reference

I cant for the life of me get the escapes working correctly for my macro. I am trying to input a Countif function that uses wildcards on either side of a cell reference value, it also finds the last row within a separate tab to help define the range…
C_Harris
  • 15
  • 2
0
votes
2 answers

Formula to count sum of cells if first 11 characters are the same?

Please look at this screenshot below. I'm trying to count sum of quantities for sites that have the same first 11 characters. If it's only one it has to be added to the table as well. Would anyone recommend which formula could help me with…
0
votes
1 answer

Countifs where using 2 criteria on different column Microsoft Excel

I've a table on excel as bellow : The problem I am facing now is that I want to calculate the amount of data with the following conditions: Scene 1: 1. Mikaela purchases DEV01 (can be DEV02 or DEV03) which has the MDN serial number: 88217094212 2.…
Buyung Afrianto
  • 51
  • 2
  • 12
0
votes
1 answer

Get Cell From Range

I am putting together a spreadsheet for my local soccer competition and am trying to autofill some cells. I have one sheet with all the teams, players and their stats in it and then another sheet which has all the goals. The sheet with all the goals…
Zac Warham
  • 158
  • 11
0
votes
2 answers

Excel COUNTIF Not Working

I have two columns that are adjacent to each other and I need to count the rows in those columns that are less than a value when divided. The function =COUNTIF(BG172:BG41552/BH172:BH41552,"<=.1") does not work and gives errors. EDIT: Per my…
0
votes
1 answer

Google Sheet Custom Formula for Duplicates in two columns

I've a working custom formula put in the data validation box in column A in a Google spreadsheet to disallow entering duplicates in the same column A. =countif($A$3:$A$1677,A3)<=1 Now i have another column, column B, and i want the above formula…
viv227295
  • 387
  • 2
  • 6
  • 17
0
votes
0 answers

Countifs and Partial Matching

Here is my code that is partially working{=IF(CG!D:D="*"&Homeports!B16:B42&"*"<>0,COUNTIFS(CG!C:C,"*MARMC*",CG!H:H,"*TECH*"),0)} My result should be to count the cells that contain MARMC and TECH, but only count them if columns CG!D:D and…
Luis
  • 13
  • 4
0
votes
0 answers

Using WorkSheet Function in a range from an opened workbook

I have a workbook that opens another workbook (Envision). I am then trying to use WorkSheet function CountIf in 'Envision' using a dynamic range (Drw_Search_Rng ). I keep getting Type mismatch error. What I am doing wrong? Dim EnViSioN As New…
M. Marzouk
  • 137
  • 2
  • 15
0
votes
1 answer

I need to create an Excel function that looks at one column then returns a value based on a difference in another column (Picture of example included)

I'm working for a company, and there was an error with sales entries, so tons of invoices got entered into our system twice. They're managed via CSV imports, and I have a huge list of invoice #s, and what their CSV source is. I have them sorted by…
0
votes
3 answers

How to count alphanumeric elements in excel?

My series is like below in excel. 804 335123 335123 1210FC245 1210FC245 182663 1220FC140 700107 139562 MANUAL The result should be '3' as it contains alphanumeric values but not only number or only characters.
Ashok
  • 1
  • 1
  • 1