# Counting By 2 Or More Criteria

Jun 2, 2009

i have to create a summary of the productivity of the administration staff in my office. i have a table of raw data that shows the jobs they open each day, but i need to find a way of counting the number of those jobs.

i've included an example so that its easier to understand what i'm getting at.

on the first sheet (Jobs) i have the table of raw data. each administrator opens jobs each day which can either be S (standard) or W (Warranty). the second sheet (Summary) shows the way i need the data to be summarised. effectively i need to narrow my count by 3 criteria (Date Opened, Job Type and Administrator).

i've used DCOUNT functions in the past to count data by more than 1 criteria, but as this system will be in place for every day of the year, that means i would have to produce a table for every administrator and every type of job and every day of the year. which would be 3650 different tables, and that's too many.

is there a way i can do this more effectively? or can i somehow make the DCOUNT tables relative so that the table can look up the date required, reducing the number of tables required to 10?

## Counting Until Criteria Met

Oct 18, 2009

I am looking for help on 2 aspects on my spreadsheet.

My first query is - How can I create a formula which will show in cell G3 the amount of cells from a number value in f3 (inclusive) down until the next number value is reached (but not including it)?

So for the first instance - it would be f3 down to f14 - which is 12

My second query is a little more complex...

I am looking to display - for the same criteria above - all entries in column B in their own seperate cell. So for the first number - it would show 02B:D5 in cell H3, 15B:C5 in I3 and so on...

## Counting Words Given Two Criteria

Jun 11, 2014

I want to count words given two criteria.

So I basically want to combine the COUNTA function and the COUNTIFS function.

I have attached a sample spreadsheet in the post.

Test Excel.xlsx

## Counting With Multiple Criteria

Oct 7, 2009

I have common tasks where I need to sort through large amounts of data to receive a total number of line entries matching multiple criteria in different columns. I've attached a Workbook with a simplified example. On STATS!B1 I would like to total, from DATA!, all lines which have "1A" in A:A and any of the following in E:E (RP, SAO, AE, RSNR).

## Counting Using Multiple Criteria

Jan 12, 2010

I am trying to count the total number of oil rigs which have revenue in column H (postive or negative revenue, just not zero), revenue in column L, and have the owner name "Transocean" in column B. I'm trying to use this SUMPRODUCT formula but it's not working.

=SUMPRODUCT(--('Golden Source'!H2:H6280),--('Golden Source'!L2:L6280),--('Golden Source'!B2:B628="Transocean"))

## Formula For Counting If Two Criteria Meet

Apr 6, 2013

I need to count the number of occurances that meet two criteria i.e.,

Status needs to be UNSOLD
Size needs to be =>10.5 and also <12.5

Dress
Status
Size

1
UNSOLD
9

2
10.5

3
12.5

4
UNSOLD
12

5
15

## Duplicates Counting With Plural Criteria

Jan 20, 2010

This is a follow-up of my previous post which was brilliantly solved. I found out that I need someting additional, which is over my head really.

I know have the following formula: IF(SUMPRODUCT((\$G\$4:\$G\$3000=\$G6)*(\$AA\$4:\$AA\$3000=AA6)*(\$O\$4:\$O\$3000=O6)*(\$I\$4:\$I\$3000=I6))>1,....

However, I want to change the end into something which can count the number of appearances of the duplications in a specific row, so I would get results saying that they appear 1 time, 2 times, 3 times or 4 times (4 being the most) in the list and could be placed after the text value of O and I (I398&" "&O398,"-"))?

I hope I formulated this well enough....

Also, does anybody have an idea how I can message my file? I've got close to 3000 rows all the way up to AB and my pc now starts to complain...

## Counting Cells With Multiple Criteria

Jan 23, 2010

Column A contains "Power","Instr","EHT", Column AJ contains "25M32", "25M35","25M39"and the a date is in column AE. I need to count how many time the date appears in AE if column the cell in A is "Power" and the cell in AJ is "25M32".

## Counting Even If Doesn't Meet Criteria

Jun 23, 2009

I am trying to use this function to figure out averages for tests. there can be up to 25 tests in the sheet which is where the "YES" comes in. If the test booklet was used for this class then YES will be placed in the cell in field B2:B26.

Now thes issue I'm having is that the formula is doing the math for the fields C2:C26 if there is a number in them if there is even if it does not say YES in the B2:B26 field.

Here is the formula/function I'm using:

=(COUNTA(C2:C26))/COUNTIF(\$B\$2:\$B\$26,"YES")

## Counting Rows Based On Different Criteria

Oct 28, 2008

I've got two worksheets. One contains data from a query, the other worksheet should count rows in the queryresults based on two criteria. See example.

I tried doing it with sumproduct in the normal variant and the array-variant...

## Counting Data Based On Two Criteria?

Aug 29, 2013

I have data in my worksheet as follows

table.tableizer-table {
border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif
font-size: 12px;

[Code]....

I want to create a sum of all values in column B (Data Size) that correspond to the same Dept-div code in column A

Ex: 0667 the total should equal 43268.8 for the two cells.

I need to count all cells in these columns versus a specific range?

## Counting Result Within Date Criteria

Feb 28, 2014

I am trying to make a document that counts some results within a range. The criteria of that sum is that it needs to be within a date range. I made a small example in a new document to make things clearer.

Link if it does not work for image: Image - TinyPic - Gratis foto's delen en afbeeldingen & video's hosten

The results between D10 and lower need to be count towards the total on top in one of the cells of January or february (And more in the real document). I need it to automatically stick it in the total of January or February. I need excel to check the Cells in C10 and lower for the date. If the date is in January i want it to automatically write it in total of the corresponding month.

## Formula For Counting Based On 3 Criteria

Aug 15, 2007

Need to writing a formula that will calculate the number of times a contract is used each month. Problem is that RMA numbers sometimes repeat. So I need to count the contract number for every unique RMA in a month......

## Counting Data Based On Criteria

Aug 11, 2008

I need to set up a formula that will count the number of dates (Items) in column K that is applicable to the item in column H for eg Advertisements, Referrals etc . There can also be blank items in column K which can be ignored

## Counting Entries Using Time Criteria

Jun 6, 2006

I need to generate a report that indicates how long it took a vendor to respond, and indicate if the time was less than 2 hours.

I'm having trouble with a formula that will indicate how long it took for the vendor to respond during business hours (8-5 monday through friday). I can easily calculate the total elapsed time, but I'm at a loss on how to account for the after hours time period.

Would this be better handled with VBA?

## Counting Items With Multiple Criteria

Sep 8, 2006

In column A, it contains the monthly salary data of each employee, then in column B, it contains the classification level data, Like Grade A, Grade B and Grade C. In this exercise, it want to find out the statistic as follows:

1. How many employee's monthly salary is below 10K and their classification level is Grade A, B or C
2. How many employee's monthly salary is above 10K and their classification level is Grade A, B or C

So any formulars can do that in instead of using the sorting method?

## Formula For Counting Row Once When Two Columns Meet Criteria?

May 17, 2014

BP Formula.xlsxI'm not sure what formula to use or if Excel can do this. I want to use it to determine number of blood pressures in a certain range. So if I use column A for SBP (systolic BP) and column B for DBP (diastolic BP). I want a formula to tell me if column A is between 140-159 or column B is between 90-99. I can get that part, but what I'm having trouble with is it counting each row twice if both column A and B meet the criteria, whereas I want every row (person) to only be counted once if either column A OR column B meet the criteria. (See attachment)

## Counting Unique Values With Multiple Criteria?

Aug 13, 2014

I am looking to count the unique amount of customers who are listed in column C based on the criteria that they purchased the product on the 1/08/2014 and that the product came from Department 3. The output I am looking for in this example would be 3. I can do it for this example but when I have 300 different customers it starts getting tricky and I'm a bit stumped on how to incorporate an array formula into a countifs() function or whether there is an alternative.

Date DepartmentCustomer
1/08/2014 3 A
1/08/2014 3 B
1/08/2014 2 C
1/08/2014 3 D
4/08/2014 3 A
5/08/2014 2 A
5/08/2014 3 D

## Counting Multple Criteria In Multiple Cells

May 7, 2009

In the attachment at the bottom of the page I want to count the symbols in the blue selected area when they are apear into the cells in the red selected area. The catch is that I want to treat the each of the "RED", "BLUE", "GREEN" as a single colum so to speak and have a value "1" or "0" apear in the back circled area.

Eg, For MrB there is nothing in the "RED" column (B7:D7) so that gives a value of zero in cell cell "P7". In the "BLUE" column (E7:G7) there is a circle which will give a value of "1" in cell "Q7". In the "GREEN" column (H7:I7) there is a double circle and a square symbol and that will return a value of "1".

I hope this makes sense. I have tried to do this with counta, but that will also count cells when a space bar is used and that makes it difficult to make sure that I am getting the right info. I also tried VLOOKUP and COUTIF but this is beyond my level.

## Counting A Column Based On Two Sets Of Criteria

Jul 23, 2009

I'm using a sumproduct forumla to count rows based on specific data in multiple columns. So if column A equals 1 and column G does not equal 6 and column M equals 4 then count that row. I know how to do this. The problem I'm having is that I want to count column A if equals 1 or 2. I tried adding an OR comand in with my sumproduct but it doesn't seem to work that way.

## Counting Unique Entries That Meet Certain Criteria

Oct 7, 2009

Every other line is the planned production and the others are filled in after as the actual production
I have a sumproduct formula right now that looks if the line is considered planned production and then if there is a number greater than 0 planned on that day. The idea is to tell me the number of Stations scheduled to run that day.

Here is my problem- if a station is running two different products it gets counted twice.
I am trying to find a way that once a station is counted it only gets counted once even though they are on seperate lines.
Attached is an example of what I have with the formula and below that is what I am looking for

## Formula For Counting 2 Different Criteria In Multiple Columns?

Jun 17, 2014

Fixed data labels over a number of columns and i want to count the number of times 2 of these appear however when ive tried to use the countifs function it will only count if in the first colum of the range selected and for example if A2 says 'FRANCE' and D1 'RED'

Ie i have been using COUNTIFS('Datasheet'!BB:BE,A1,'datasheet'!BE:BH,D1)

## Counting Unique Values With Multiple Criteria?

Feb 25, 2009

I'm trying to get a count of unique values in column B when criteria matches for columns A,C and D. The worksheet I'm trying to complete looks like this:

2366 2005 T [number of corresponding unique values of B]

For example:

--D---C---A-B
2366 2005 T 2
(as opposed to 3)

A
B
C D
T
655 2005 2366 T
656 2005 2366 T
656 2005 2366 W
659 2005 2367 W
659 2008 2369 W
659 2006 2370 F
659 2005 2370 W
660 2005 2370 W
660 2008 2371 W
660 2006 2371 T
660 2005 2371 W
661 2005 2372 W
661 2007 2372

## Counting Number Of Rows With Multiple Criteria

Dec 8, 2006

I have a sheet with "Yes", "No', and "N/A' in most of the Columns. (E - Q) and about 100 rows of data.

I only want to count the number of rows that have "No" in column E and Yes in all the others. If "no" occurs in any of the other columns in that row (D-Q) I dont want it to be part of the count.

## Counting Unique Values Based On 2 Criteria

Aug 11, 2007

Is it possible to count unique values in one column based on that column and another column? I have a report that has a column of dates (B:B), column of month and year (C:C), and a column of RMA numbers(A:A). The RMA numbers repeat if there is more than one part on the RMA. I would like to count the number of RMA created each month. Below should be Jan = 2; Feb = 2; Mar = 1............

I have a CSE formula that allows me to count based on two criteria but it does not count unique values and you have to specify the two criteria.

## Counting Unique Values With Multiple Criteria

Feb 26, 2009

I'm trying to get a count of unique values in column B when criteria matches for columns A,C and D. The worksheet I'm trying to complete looks like this:

2366 2005 T [number of corresponding unique values of B]

For example:

--D---C---A-B
2366 2005 T 2
(as opposed to 3)

A
B
C D
T
655 2005 2366 T
656 2005 2366 T
656 2005 2366 W
659 2005 2367 W
659 2008 2369 W
659 2006 2370 F
659 2005 2370 W
660 2005 2370 W
660 2008 2371 W
660 2006 2371 T
660 2005 2371 W
661 2005 2372 W
661 2007 2372

## Counting Instances Of Text Based On 2 Criteria

Aug 17, 2006

Need a way to count the number of times a certain bit of text occurs in a range based on a given criteria? Say I've got a column of names and another column with true or false in it (next to each name), how could a do a total of how many times 'TRUE' occurs next to each name?

## Counting Cell With Partial Text Criteria

Feb 28, 2007

Greetings, I have a particular column containing data similar to:
X24A
X15B
G15A
X23S

I have sorted the data to have all the X marks together, and now I want to run a counter so i can select the data and delete. Following is a sample of the code that is NOT working:

'Delete X Piece Mark Rows

Range("L2").Select
counter = 0
ActiveCell.Select

Do While ActiveCell = "X" & "*" ' This is the line that crapping out
If ActiveCell = "X" & "*" Then counter = counter + 1
ActiveCell.Offset(1, 0).Select
Loop

Range("A2").Select
Range("A2", "L" & counter + 1).Select

Selection.Delete Shift:=xlUp
Range("A1").Select

## Excel 2010 :: Bottom To Top Counting With One Criteria (Up To Blank)

Jul 7, 2014

find the attached excel 2010 file <Count LBP or UBP.xlsx>.

My requirement is if `LBO' is available (in Column A) then the formula should count the number of `LBP' available above the `LBO' upto the blank cell. If there is no `LBP' above the `LBO' then it should plot zero in Correponding Column B Cell. If 2 `LBP's available above the `LBO' upto balnk space it should plot `2' in Correponding Column B Cell.

As like `LBO' and `LBP' the formula should work for `UBO' & `UBP'. refer the attached excel file.

## Counting Unique / Different Values Based On Multiple Criteria?

Jan 21, 2014

I have a large sheet (several thousand rows and growing) - see a small cut of the data. The columns following on from this have a list of people's names, hence why a lot of the data repeats (as a number of people attended each program).

Program
Clinic Title
Start Date

[Code].....

formula that will automatically give me that answer?