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 use sumproduct in excel with multiple conditions in every nth cell in the same column

I am new to Excel and I have been trying to complete some work using Excel by googling formulas. I came across sumproduct and I believe it will work for what I need but I may not be writing the formula correctly. I need to count every nth cell in a…
0
votes
2 answers

COUNTIFS with unique values Excel

I am trying to produce a count of the number of times different strings come up in an Excel table. An example table, currently in SHEET1, would be this: I have another table in another spreadsheet where I want to indicate, for each letter on the…
franciscofcosta
  • 833
  • 5
  • 25
  • 53
0
votes
1 answer

Excel Check for multiple value in one row within a range

I have a spreadsheet with thousands of rows and numerous columns. What I am hoping to accomplish is to basically check column AB for a certain value. When it finds a row that contains (not exact match, just needs to include) the word "test" then I…
Jake P
  • 121
  • 1
  • 2
  • 9
0
votes
1 answer

sum value column b only if value in column a is unique

looking for direction on how to do the following, thank you in advance for any insight provided: I want to sum the total values in column C (Total Lines per order) ONLY once per the value in column A (Sales Order). So Sales Order "A" appears three…
DAV
  • 5
  • 1
0
votes
1 answer

Excel CountIF formula not working

I am not sure if this is the best way to go about this, but I am using the formula below to try and get a count. The formula if giving me the sum of fields M15:V15 that matsh the criteria listed. However I only want to have it display either "zero"…
Paul
  • 1
  • 2
0
votes
1 answer

COUNTIFS with multiple ANDS and ORS

I want to count the number of rows that meet certain criteria, with both AND and OR conditions. As long as I'm using only AND conditions, it works perfectly. Adding multiple OR conditions gives an #N/A output though. I can't find the solution…
nannev
  • 27
  • 1
  • 7
0
votes
1 answer

Excel function for SELECT DISTINCT.. WHERE

I am trying to filter data in an Excel sheet using functions based on multiple columns. For example, if column B has '*ABC*', I want to count the number of unique values in column A. A B --- --- 1 xyz 1 abc 2 ABCD 3 AB 4 …
dreadnought303
  • 147
  • 3
  • 12
0
votes
1 answer

Countblank in excel up to a certain row

I have an array of unsorted numbers and blank cells, and I would like to count the number of blanks within the entire column, but I would like to restrict this to a range up to and including a specific row number. This is because I will be adding…
WnGatRC456
  • 337
  • 1
  • 2
  • 12
0
votes
0 answers

Excel Wildcard not working on same data table

I use this: =COUNTIFS(Sheet2!N2:N5001, ">"&J1, Sheet2!N2:N5001, "<"&K1,Sheet2!P2:P5001,"*") and it returns a value, when I parse a different date range with this: =COUNTIFS(Sheet2!N2:N5001, ">"&J12, Sheet2!N2:N5001, "<"&K12,Sheet2!P2:P5001,"*") it…
jthornton
  • 15
  • 1
  • 4
0
votes
3 answers

SQL - Count instances in 1 field with variations in 2nd

Thanks for taking a second to read this... Have tried this in SQL, Python, and VBA with no luck (various reasons). The data and concept are, I think, pretty simple - but I can't seem to make it work. Column 1 has a stock market ticker; Column 2 has…
JP_Romano
  • 61
  • 2
  • 9
0
votes
1 answer

Excel: Check if a set of rows is equal to another set

Is there a command in Excel to check if a set of rows is directly equal to another set. For instance I want to check if the values inside rows 1 to 10 is equal to another set of rows 13 to 22. That is the values inside row 1 corresponds to row 13,…
jackuars
  • 1,193
  • 2
  • 12
  • 12
0
votes
1 answer

Counting the number of occurrences of a string in a column in R

I have a column containing different strings which are repeated along the column. I wanted to create another column which will basically sum up the number of occurrences of strings and fill this column with the number. This is equivalent to using…
0
votes
2 answers

Formula to check if the value of a cell in a column is in the range of a cell in another column and add a value on the same line

I want to find a formula to check if the value of a cell in a column is in the range of a cell in another column and then add a value comprised of another column on the same line of the matching cell you are looking for in the range, and then to be…
0
votes
2 answers

Insert a column in a dataframe with one condition

I have a data frame with three columns, the first one is the id, the second one when an event A happend and a third column when the event B happened. client <- rep(c("A","B","C"),5) event_a <- c("2017-04-02","2017-04-07","2017-04-10",…
0
votes
1 answer

duplicate formula with return info

I have a table with two columns A and B. On column A I have some ID s and on the B column and have dates. On A the Id s are not unique. I need you help to build a formula that will search on A for duplicates ID s and if there are, to show on C…
Iosif
  • 29
  • 1