# 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".

View 2 Replies
ADVERTISEMENT
Aug 5, 2012

I am using MS Office 2010. I want to count---on multiple sheets---the number of times that a given cell is greater than another cell if and only if a third cell is equal to a given value. I want to do this for 4 sets of data on each sheet. I thought I had it figured out with this formula---

=SUMPRODUCT(COUNTIF(INDIRECT("'"&$H$1:$H$43&"'!$R1"),2*(AND("'"&$H$1:$H$43&"'!$E1">"'"&$H$1:$H$43&"'!$F1"))))+SUMPRODUCT(COUNTIF(INDIRECT("'"&$H$1:$H$43&"'!$S1"),2*(AND("'"&$H$1:$H$43&"'!$G1">"'"&$H$1:$H$43&"'!$H1"))))+SUMPRODUCT(COUNTIF(INDIRECT("'"&$H$1:$H$43&"'!$T1"),2*(AND("'"&$H$1:$H$43&"'!$I1">"'"&$H$1:$H$43&"'!$J1"))))+SUMPRODUCT(COUNTIF(INDIRECT("'"&$H$1:$H$43&"'!$U1"),2*(AND("'"&$H$1:$H$43&"'!$K1">"'"&$H$1:$H$43&"'!$L1"))))

but it returns a value of zero each time. Clearly there is an error in the formula.

Here is some background:

-- $H$1:$H$43 is a block of cells that has the names of the sheets in the workbook

-- E1 and F1, G1 and H1, I1 and J1, K1 and L1 are the four groups of cells that I am comparing.

In the entire workbook, I want to add 1 (counting function) only when:

R1=2 AND E1>F1 or

S1=2 AND G1>H1 or

T1=2 AND I1>J1

U1=2 and K1>L1

on each appropriate sheet in the workbook.

View 1 Replies
View Related
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.

View 6 Replies
View Related
May 29, 2013

I have the following table

Team>

Team A

Team A

[Code].....

I need to fill the following table in another sheet counting the amount of Blank cell there are according to Month, Team and if the name row is filled. I have tried Sumifs, sumproduct,countblank typing them in as arrays but don't seem to be getting anywhere

April

May

Team A

6

1

Team B

11

1

View 2 Replies
View Related
Feb 9, 2014

I have saved this on a 2010 workbook as I am at home but this will be used on a 2003 workbook.

I have several projects on one spreadsheet which multiple users will be working and I am trying to create a summary sheet of the work carried out.

Each user is expected to carry out a task on each row of the data held in each worksheet (research, call, update etc) and each task (Option 1-5) is assigned a value. Each user is expected to meet a certain level of points per day to calculate productivity.

I am looking for a sumproduct along the lines of the summary sheet attached but mine just takes one sheet into consideration and I need one for all sheets.

View 12 Replies
View Related
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).

View 4 Replies
View Related
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"))

View 9 Replies
View Related
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?

View 3 Replies
View Related
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

View 7 Replies
View Related
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)

View 3 Replies
View Related
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

View 9 Replies
View Related
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.

View 9 Replies
View Related
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

View 9 Replies
View Related
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?

View 2 Replies
View Related
Mar 8, 2012

I have a row that contains a different time (hh:mm) in each column where each column represents a different date which is display in row 3. If there is no time the cell is populated with "N/A"

I want to count how many cells for a specified Month/year are not equal to "N/A". I have been able get each selction criteria to work but when I try merging numeric and non-numeric queries I lose it.

The following formula was able to give me the count of cells "N/A"

=COUNTIF('Master Data'!$UA59:$ALZ59, ">0")

and this gave me a count by Month/Year

=SUMPRODUCT(--(YEAR('Master Data'!$UA3:$ALZ3)=2012),--(MONTH('Master Data'!$UA3:$ALZ3)=1))

When I tried creating one COUNTIF I was unable to get it without an error as I needed the YEAR/MONTH functions.

View 7 Replies
View Related
Jun 26, 2014

I am working on an attendance spreadsheet in Excel 2003 at work that will display data showing number of learners allocated to an activity, number unallocated, number attended, number not attended, number of acceptable reasons and number of unacceptable reasons by Block Letter. My problem is that for a number of reasons the same learner number is allocated to a number of activities each day. I need to know how many learners from each block have been allocated, not how many allocations each learner has from each Block.

I have tried different formulas, but fast running out of time

I have attached a modified sample from the main spreadsheet

I need : Cell H4 to calculate the number of unique values from Column C on Mon tab but only meeting the following criteria Mon!$N$3:$N$4000="AM", Mon!$O$3:$O$4000=D4, Mon!$B$3:$B$4000="mon1" I can then apply to the other rows.

View 7 Replies
View Related
Oct 30, 2013

I am using Excel 2010.

BTES worksheet:

acct# Oct-13 Nov-13 Dec-13

13245 850

12458 850

45864

12385 1500

MainList - F2= (current month)

Based on the current month (which I planned on typing in) on the MainList worksheet I need to count how many blank cells are in the table above. The information above is on a separate worksheet but I can change that in the formula. Every month gets a new column.

This is what I have but its not working correctly: =SUMPRODUCT(--(BTES!AD1:BQ18=F2),--(BTES!AD1:BQ18" "))

View 2 Replies
View Related
Aug 14, 2008

I have a large list of items and I want to be able to count and sum up the cells based on multiple conditions. Lets just say for example I have a list like this, also the list updates and adds more rows for more information, so its not confined.

xxx Open

xxx Complete

yyy Complete

yyy Open

xxx Complete

xxx Open

I want to be able to count how many xxx are Open. I assume it involves either CountA, CountIF, If, And but I keep getting errors when It searches for text. I can use CountA and have it search for text of a single columb just fine, but I cant do contitions based on multiple columbs with just a cell formula.

View 9 Replies
View Related
Aug 15, 2014

I have a spreadsheet, similar to the one attached, that monitors deliveries. The reasons for deliveries not being made on time are merged across to have one reason per delivery vehicle.

I am trying to count the number of times a reason occurs, but utilizing a COUNTIF function it will only count a merged cell as one count, rather than per each delivery.

Merged Count if examples.xlsx

View 8 Replies
View Related
Mar 10, 2009

I'm on Excel 2003 and have a sheet to track people who have read my emails. I want to know the answers to the questions below. I've included a fake sample to show what I'm looking at. The number of cells in each column is much higher and not the same per column. I've tried variations of MATCH, VLOOKUP, SUMPRODUCT, etc. but haven't found a good way to set up a formula.....

View 6 Replies
View Related
Aug 16, 2008

I have a list of brands in one worksheet that are abbreviated (Brand 1 = "AB-"). In another Worksheet I have a list of products that start with various brand abbreviations (ex: AB-12345, BP-12345), and in another column on the worksheet I have codes that represent certain characteristics of that style ("1"=flat shot), "2"=shot on model, etc). Now what I want to do is count how many instances I have of products that begin with "AB-" and have a "1" in the other column so I can get a count of how many flat shots i have to do for that brand.

So far I am using the below code to get a TOTAL count of products that start with "AB-", but i cant figure out how to write it so that it checks additional criteria in another column.

=SUMPRODUCT(--(ISNUMBER(SEARCH(A3,(OFFSET('photo list'!G2:G5001,,,,))))))

A3 contains the text "AB-" and 'photo list'!G2:G5001 contains the list of products that may or may not contain the text string "AB-". Column S (not shown in this code) contains the codes for how to shoot. Hope someone can make sense of this and give me a hand.

View 9 Replies
View Related
Aug 31, 2012

I have a worksheet entitled 'Data'. In this worksheet there is a table consisting of 4 columns plus relevant data:

TABLE 1:

Project

Benefit Type

Delivered or Enabled

Benefit

PJ1

Financial

Delivered

Saving of $4M over 24 months.

[code]....

I have been trying to create a formula that will enable me to pull data from the 'benefit' column(column D) so that the cell contents populate in a single cell in a table in a different worksheet.

TABLE 2:

Financial - Delivered

Financial - Enabled

Tech - Delivered

Tech - Enabled

Green - Delivered

Green - Enabled

[code]....

So, as an example, I am hoping that a formula can be created which pulls the text from relevant cells in column D when criteria from columns A, B and C are met e.g. Tech benefits that are Delivered in PJ2 would populate cell E3 ('Tech -Enabled') in Table 2 with:

Continued maintenance of hardware.

Increased capacity.

View 1 Replies
View Related
Feb 24, 2014

Im struggling to find a formula to populate cells based on values to be checked in two fields (ICODE, COMPANY) as shown below.

In the example here, all records where ever the ICODE = 49, i need to populate the fields(columns) AD1,AD2,AD3 or AD4 with the product name of the same company where the ICODE <> 49. There could be between 1-7 products per company.

CURRENT SHEET

ICODE PRODUCT COMPANY AD1 AD2 AD3 AD4

89PENS ABC STATIONERY CO LLC [code]....

The attached example file may be a better alternative to view this problem.

View 2 Replies
View Related
Feb 1, 2012

Worksheet 1: In column A I have a people's initials. In coumn B I have text boxes with miscellaneous text. (The same person could have multiple rows within this sheet.)

e.g.

AAA blue

BBB orange

AAA round

CCC smelly

AAA elongated

Worksheet 2 I want to show:

A2 = initials, B2 = first text box associated with that person, C2 = second text box (different row) associated with that person (if applicable), D2 = third text box (different row) associated with that person (if applicable), etc.

e.g.

AAA blue round elongated

BBB orange

CCC smelly

View 3 Replies
View Related
Apr 28, 2012

I am having such a difficult time creating a macro that will reduce the 5+hours I have to spend each week manually copying & pasting all of this data. I making an IMMENSE difference in this worker bee's life!

I have a workbook with two sheets (Sheet1 & Sheet2). Sheet1 has license #'s in column A and the state that the license belongs to in column B like this:

COLUMN ACOLUMN B11111Alaska11112Alabama11113Arkansas11114Arkansas

Sheet2 has three columns. Column A has the license #'s, column B has the state that the license belongs to and Columns C shows a line-of-authority tied to that license #.

COLUMN ACOLUMN BCOLUMN

C11111AlaskaProperty11111AlaskaCasualty11112AlaskaLife11112AlaskaHealth11112

AlabamaProperty11112AlabamaCasualty11113ArkansasLife11113ArkansasHealth11114

ArkansasLife11114ArkansasHealth12345ArizonaProperty

I'm trying to write a macro that will compare the license # and state in Sheet1 to the license # and state in Sheet2. If it matches, append the contents of Column C to the corresponding row in Sheet1.

Here's the thing...Sheet2 contains the entries for all licenses in the company (so this table is HUGE). And there are multiple entries for each state license # (notice how there's two entries above for AK license # 11111 - one for the Property line and one for the Casualty line.

After my macro is run, I want Sheet1 to show all the lines-of-authority on a single line. So if I ran my macro on the above example, after it's run I would have this in Sheet1:

COLUMN ACOLUMN BCOLUMN

C11111AlaskaProperty Casualty11112AlabamaProperty Casualty11113

ArkansasLife Health11114ArkansasLife Health

View 5 Replies
View Related
Nov 21, 2012

I am using this formula but I don't know how to get it to populate more than one cell.

Here is the formula:

=INDEX(APPROVED!$A$3:$A$1000,MATCH($F$4&$H$1,APPROVED!$D$3:$D$1000&APPROVED!$C$3:$C$1000,0))

It has multiple matches but I can only see the first match in the cell.

View 1 Replies
View Related
May 5, 2013

I have a spreadsheet that has about 50 sheets and a summary sheet at the front the layout of the summary sheet is column A has skill sets from A4 to A20 and across the top it has week commencing dates from F3 to about BA3 (dates go from w/c 06/05/13 to 08/12/14). On the other sheets they have the dates in the same columns but the skill sets vary as to each project, some projects may have two of the same skill set in column A because there is two people needed who can do the same thing, I need to total up the days over the sheets for each week and skill set.

I have been using the SUMIF formula as follows:

=SUMIF('Sheet2'!A8:A10,'Summary'!A4,'Sheet2'!F8:F10)+SUMIF('Sheet3'!A8:A15,'Summary'!A4,'Sheet3'!F8:F15)

And so on for each sheet and then change the formula for the next skill set and then again for the next column.

Is there a way of doing this without having to enter a formula into each cell, at the moment I am coping and pasting the formula into word to do a find and replace to change the SummaryA4 to SummaryA5 etc and then into the next cell for the corresponding date.

So to make this seem like it makes any sense I am looking for say an 'Administrator' in all the project sheets over all the dates and for it to add it up for the summary sheet. Under the corresponding week against the skill set.

So it would be F4:F20 for w/c 06/05/13, G4:G20 for w/c 13/05/13 and so on until all skill sets.

View 5 Replies
View Related
Sep 25, 2013

I would like a macro that select all cells based on multiple criteria. It's a big sheet, but I've made it smaller in the following example.

In row 1, there are 2 headers, in B1 (electricity) and C1 (gas) In column A, there are 3 houses, in A2, A6 and A10. The blocks of cells in between (e.g. B2:B5) have 2 headers, 'period' in B2, and 'account number' in B4. B3 and B5 have a list of options in them.

I want to select cells that meet certain criteria. Either electricity or gas, and either period or account number. So, if in cell D1 I choose electricity and in D2 period, I would like to select B3, B7 and B11. If I choose gas and account number, I wish to select C5, C9 and C13.

View 1 Replies
View Related
Jan 17, 2010

i want to add the cells in column d, if column A=E1, if Column B=F1.

View 14 Replies
View Related
Jul 9, 2009

I have tried many options but can't seem to figure this out.

I have two tabs:

Trial balance and Analysis

On the Analysis sheet, I have a cell where I want it to look on the Trial balance sheet, find all codes these codes (7813.1, 7813.2, 7813.89) which are in column A:A, then give them the totals of what is in G:G.

View 12 Replies
View Related