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

Countif for counting data for a month

I have a data and have applied Count if formula to get the number, but need to filter more for a month which is not working for me. Now i have dates in Column F, and need to include it for the month of January for the below applied…
Chandrasekar R
  • 113
  • 2
  • 12
0
votes
1 answer

Countif and countifs on fairly large dataset - how can I improve?

Good day - thanks in advance for any help. Working with a moderately sized dataset (currently about 80,000 records, but it will grow over the next few months) and need to do a countif (to show how many instances of a record have been recorded) and…
JP_Romano
  • 61
  • 2
  • 9
0
votes
1 answer

How to count the name if the grade is 80 or higher

I want to count how many times each student has earned a grade of 80 or higher. In the image, the highlighted in yellow part is what I want. I did that manually, but is there any formula that would do it?
Ted111
  • 37
  • 1
  • 5
0
votes
1 answer

Using Countifs to count only unique values based on a defferent data range

I trying to create dynamic report out of a work sheet I have and I am kind of stuck not able to get unique values. In A1:A15000k I have Ticket/Task#, the ticket can be worked on more than once, i am trying to apply another criteria to my formula to…
OmarQA
  • 51
  • 4
0
votes
2 answers

Excel =CountIfs Not Giving Any Return

I am trying to use the =COUNTIFS formula to track incoming post. Column B is the date of incoming post, Column E is the date the post is worked. I want to count the number of rows where column B is less than today’s date and column E is blank. I am…
Emma
  • 13
  • 3
0
votes
1 answer

Using Wildcard with Countifs with Search Criteria in Cell

I have a set of data cells B1:C5 with Tests that are a mix of Alphanumeric characters along with data next to it. I am trying to create a formula for cells B8:C10 that will parse through the data in A2:C5 and, using the CountIfS function, count the…
0
votes
1 answer

Excel: COUNTIF + OFFSET in another worksheet

Not sure why this wouldn't work: COUNTIF(OFFSET(OtherSheet!F5,0,0,4,1),"<10") Trying to count values less than 10 in 4 rows of another worksheet. Of course, I can use OtherSheet!F5:F8 instead of the OFFSET like…
0
votes
1 answer

Using INDIRECT to refer to a cell range within a COUNTIFS/SUMIF(S) formula (Error occuring)

The below formula works, I am trying to change this using INDIRECT to be able to change the cell ranges so it can be updated easier. =SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!L2:L344)+SUMIF('Other materials'!B2:B344,…
D.Phillips
  • 13
  • 3
0
votes
1 answer

VBA: How to index through each value of a named range in a formula?

I'm writing a countifs formula in VBA, and I would like to do the following code in one line: Worksheets("Active_Users_Master").Range("I3").Value =…
wra
  • 237
  • 4
  • 7
  • 18
0
votes
1 answer

exxcel formula to count running duplicates in row

Dears, i want to count running duplicates in my excel for an upload. the target data should be as below: 1021023 0 1021023 1 1021023 2 1021034 0 1021034 1 1021039 0 1021039 1 1021039 2
0
votes
1 answer

Excel Countifs formula

I have nested the below IF/AND/COUNTIFS formula. The logic is based on the country in column N, refer to specific range on another sheet in the same WB. The problem I am running into is I am getting FALSE results when it should be TRUE. I have…
Scott
  • 69
  • 1
  • 1
  • 7
0
votes
0 answers

I can't get countif to find text in vba

I am trying to find the number of rows in a column that contain the letters "wand". I am using this code: Dim wand As Integer wands = Application.CountIf(Range("b:b"), "WAND*") I think I am telling it to look in Column B for any row that has the…
aoswald
  • 75
  • 2
  • 10
0
votes
1 answer

Finding the average transaction, per user in Excel. With two criteria to satisfy (user match and month match), each row is a transaction?

I am encountering something I am finding challanging to understand how to script and I was hoping maybe someone who has better excel knowledge may be able to help! UserID is in column A, and DateofTransaction Is in column I, I have a code that…
0
votes
2 answers

How to return a count using COUNTIF with VLOOKUP

I want to return a count of how many times the word FREE appears in a column (column B) which is tied to a style code (column E) Column B contains the "FREE" values Column C represents the style code for the free item (there will be duplicate style…
Fbooom
  • 1
  • 1
  • 1
0
votes
1 answer

COUNTIFS Function

can anyone help.. Trying to rank the times - quickest first but how do I do this and exclude the time 00:00:00 (ie a non finish or didnt show for race) Currently using =COUNTIFS(B$6:B$36, B16, H$6:H$36, "<"&H16)+1 but this ranks 00:00:00 as being…
J McBrien
  • 29
  • 2