Count With 2 Criteria In 2 Columns
Jan 25, 2008Countif must meet criteria in 2 different columns. I can get one criteria in, but not both.
View 3 RepliesCountif must meet criteria in 2 different columns. I can get one criteria in, but not both.
View 3 RepliesWhat I'm trying to do count the TRUE values in multiple columns, if the criteria is correct in another column.
I've tried countifs but end up having the company included into the count, or only count the row that matches all the criteria.
If I do =COUNTIFS(A2:A7,"A",B2:B7,"TRUE")+COUNTIF(C2:C7,"TRUE") then I get 5.
When I change it to +COUNTIFS(A2:A7,"A",C2:C7,"TRUE") it works but there's a time where I need to check up to 8 Options.
Company
Option 1
Option 2
a
True
True
b
True
False
c
True
False
a
True
False
a
True
False
b
True
True
Basically, need to count rows that have 5 columns of data in it. If all 5 columns within a row have something in them greater than one character, that row needs to be counted.
View 1 Replies View RelatedI am trying to figure out how to create a formula using multiple criteria in different columns. Ideally, I need to use the whole column (i.e. E:E rather than E2:E400) because I don't want to have to update the formula every time I input data.
I will simplify my spreadsheet for example purpose. Basically, column A has a unique identifier that either begins with an "M" or an "R." Column B either contains a person's name or a "-". Column C contains a dollar amount.
1. I need to be able to count all the cells in Column A that begin with an "M" AND have a "-" in Column B.
2. I need to be able to SUM the $ amounts in Column C ONLY for the items that begin with an "M" in Column A and have a "-" in Column B.
Is there any sort of formula that might do this? I have tried SUM arrays but as I said before, I would rather be able to use the whole column.
I am trying to use a "=COUNT(IF(..." formula to count the number of hourly employees that have start dates older than 3 years. Column A has the start dates and column B has the salary status (S/H). =COUNT(IF(AND(A2:A1000<DATE(2004,1,1),B2:B1000="H"),A2:A1000)) This formula returns 1 no matter what I change the data to.
View 3 Replies View RelatedI am trying to add separate columns together to get a total count of a specific criteria. The formula I am using is:
View 3 Replies View RelatedI want to be able to look at two columns and set a criteria to count. I want to look at column A and if its blank then look at column B and if it has a value of more than 0 then count.
A B
1 1.00
2 Yes 4.78
3
4 5.00
5 Yes 4.89
6 11.99
So this example would count 3
I am trying to use the DCOUNT function to count based on two different criteria in adjacent columns is this applicable.
Situation:
I have column B that contains initials and I have column C that contains a type (of store) so it'd look like this
jp RET
jp RTO
jb RET
ma RTO
Rn CI
ma Fur
tc CI
ma RET
jp RET
and I want to have a count of how many RET's there are for Initials JP ect
I have a table with 3 columns with an unkown number of rows (text, date, date) that is being imported daily.
I want to create a 4th column with dates starting from today and each subsequent row be one day earlier. I want to look at 30 previous days.
I then want to count the number of rows (looking at column 1-3) with the following criteria:
Countif column2<= "date in colum4" AND column3< "date in column4"
Here is what I have. 4 Worksheets. The first worksheet is a summary page. I have 350 personnel that are broken down into three different groups. So each group has it's own sheet. Here is what I need to accomplish. Results need to be posted on the summary sheet.
I need to compare cells B2 & D3 for each row on a worksheet and display the number of times they match on a worksheet. For example how many times does EP & EP match on a certain row. I need to compare cells B2 & D3 for each row on a worksheeet and display the number of times they don't match on a worksheet. For example how many times does EP & MP occur. I've attached an example for reference
ABCDE1DATEEMP1Days Between SalesEMP2Days Between Sales
23/6/2012 YES0NO 33/5/2012NO NO 43/4/2012NO NO 53/3/2012 YES2NO 63/2/2012NO NO 7 3/1/2012 YES1YES682/29/2012 YES0NO 92/28/2012NO NO 102/27/2012 YES1NO 112/26/2012 YES0NO 122/25/2012NO YES4
I believe I need a loop code to do what I need, because none of the functions I've tried have worked. I want to start at B2 and go down the column until I come to a YES. When I find a YES, I want to know the number of NOs that preceded it. Then I want to go from that YES(#1) to the next YES(#2) and count the number of NOs between YES(#1) and YES(#2) and so forth, until I run out of rows. For example, in C5, the answer is 2, because there are 2 NOs between YES#1 and YES#2 in coulmn B, and a 1 in C7, because there is 1 NO between YES(#2) and YES(#3) in column B.
I have a spreadsheet which lists letters issued, the date issued and the potcode. I need a formula that counts, on a weekly basis, the number of letters issued to postcodes in Sutton and Bexley.
I have a count sheet set up on one worksheet and the list of postcodes applicable to each area are listed on another worksheet. I have been playing around with sumif, sumproduct etc, but these don't seem to work as I am pointing the formula to a list of postcodes and not an individual postcode. For example, the formula for one week needs to tell me, the number of letters issed to Sutton between 26/07/08 - 01/08/08. This is what I tried -
=SUMPRODUCT(('MU63 NC'!$F$2:$F$10>=COUNT!B$2)*('MU63 NC'!$F$2:$F$10<=COUNT!B$3)*('MU63 NC'!$D$2:$D$10=Sutton!$A$2:$A$50))
But I get #N/A - if I change the last refernce to a specific cell instead of a range it works, but this will make the process very lengthy as there are lots of postcodes!
I have been using the wrong formula to count total entries in columns and only just found this error. The MAX formula in cell B4 is: =MAX($B$12:$B$36). If the all the rows are full within range F12:F36, then the MAX formula is fine to count the total within range B12:B36 (25) so I thought. But sometimes there are omissions between F12:F36. If there are 2 blank cells anywhere within F12:F36 for example, then B4 needs to show 23 respectively. In the sample WkBk B4 needs to show 8
View 2 Replies View RelatedI need a way to find a value in a column which has one or more corresponding values in an adjacent column. Then take all of the corresponding values found and count all occurrences of the found values in another column. But I only want to count the entries if an adjacent column is not blank.
Not the easiest thing to describe. Starting to wonder if I need to think in reverse. I hope the attached example makes more sense.
Book1.xlsx
I've got a sheet where I've got products in one column.
The second criteria is "week #" for which the row remains consistent but the column varies e.g. "week 8" could be in cell L12 today and in L18 tomorrow.
I would like to return the value of the cell at which a particular product and week intersect. e.g. if "product a" is in B20 and "week 8" is in L18, I want the value of cell "L20" returned.
Product to determine Row #, Week to determine Column # for returning value.
If they interest multiple times, I would like to sum up the values intersecting.
Neither product nor week # is unique in the sheet.
I am a bit struggling to solve this problem. I have tried Dcount, pivot table but still can't get my head around. Here is the example: ....
View 6 Replies View RelatedProblem I was having in peforming a 'Count & Sum' routine for records which met certain criteria.
Unfortunately I wasn't able progress this any further, and I take full responsibility for this, because I caused issues by incorrectly specifying the criteria in my initial post.
What I'm trying to achieve is a follows:
Search the range "ADPeriod" (Which is column J on the "All Data" sheet)for the value shown in cell in B2 on the "Expected Outcome" sheet, andSearch the range "ADPLOB"(Which is column B on the "All Data" sheet), for the value in the rows of column B on the "Expected Outcome" sheet,andSearch the range "ADJRole" (Which is column I on the "All Data" sheet) for the value in row 2 on the "Expected Outcome Sheet"Where all three are found,Count the number of unique values in the range "ADSName" (Which is column D on the "All Data" sheet) and enter the value in the applicable rows in column C of the table on the "Expected Outcome" sheet, thenSum the associated value in the range "ADAFTE" (Which is column N on the "All Data" sheet), and place in the respective row in column D of the table on the "Expected Outcome" sheet.
This is the link to the file: [URL] .....
As before I will be adding further values in row C of the table on the "Expected Outcome" sheet, but I just wondered whether someone may be able to show me how I may be able start which I can build upon.
I have a dataset with odds for soccermatches, and results.
I want to count each time a specified odds has won the match, but i cannot find out which formula to use.
For example:
HTeam ATeam Res H-Odds D-Odds A-Odds
1.Team1 Team2 H 1.60 2.10 4.30
2.Team1 Team2 D 1.64 2.30 3.30
3.Team1 Team2 H 1.60 2.60 4.35
4.Team1 Team2 A 3.10 2.80 1.60
5.Team1 Team2 A 1.60 2.10 3.30
6.Team1 Team2 D 1.60 1.60 4.30
HTeam= Home team
ATeam= Away team
Res = Result, Home, Draw, or Away
H-Odds= Home odds
D-Odds= Draw odds
A-Odds= Away odds
Defining my problem:
I want to count the times the odds; 1.60 was the winning odds.
I imagine i need to set up 3 columns: Homewins, Draws, Awaywins.
Kind of like:
=COUNTIF(A1:A50,"1.60"),IF(B1:B50,"H")
like that, only that is not correct
{=COUNT(IF((NewProduct2006!$C$9:$C$2000="New Prod"),(NewProduct2006!$H$7:$H$2000="In Process"),(NewProduct2006!$E$1=$A3)))}
This forumal is presently giving me a 0 value.
I am tasked with creating a matrix which indicates the amount of active customers in a given week, and a given segment. These make up the rows (segments) and columns (weeks). I have a big sheet of data so started to use COUNTIFS.
=COUNTIFS(UsageWeek,M$2,Segment,$L3)
Problem is that if there is usage more than once in a given week that customer will be counted twice or more. Can I make one criteria for a third (customer) range but with a critera that is counted only once?
I want to COUNT the occurance of the id's number appears in a cell F2 (I do not want to SUM them - counting more than 1 criteria). How can I exclude "0" from being counted. Based on the table it sholud show id 1120 - 4 occurance, but my formula show 0 ......
View 9 Replies View RelatedAt the moment I have a problem as per example attached, that I need to select values from row and populate respective column based on the following.
1. A top row contains non-negative values
2. Rows below it contain blanks, negative values and positive value.
3. Last column to be populated with a value from the top row if the value in the rows below top row contains the last negative value before the first positive value. There could be blanks between the last negative and the first positive, but I want the last negative to be used as a criteria for selection of corresponding value from top row. I hope my question is clear with the attached example. The column to be populated is FY.
if possible, with a Excel formula. Assuming a column (M7:M200) has this information:
John
Mary
Lisa
Mark
John
Albert
|_Empty _|
|_Empty _|
|_Empty _|
I would get the sum of the cells except "empty", "John" and "Mark". The result would be: John: 2 | Mark: 1 | Others: 3 (My only interest is the formula to get the result "Others: 3") I tried with this formula: = COUNTIF (M7:M200, "<> John") but remains exclude "empty" cells and "Mark."
In H:5 I am trying to count B:2 through B:200 if it has an x and A: through A:200 has Post put value in H:5
h.png
I need to count cells with certain criteria.....look at my example as it is kinda hard to describe without looking at it. EXAMPLE.xls
View 3 Replies View RelatedI have been trying to figure this out for some time and cannot seem to
get it to work. I am using Excel 2003
I need to know the number of times a certain situation occurs across
12 worksheets.
Workbook has 12 sheets named Jan, Feb, Mar, etc to Dec
All 12 sheets exactly the same (different data)
In column F12 to F62 is a range of numbers like 1010, 1056, 1168. All
are four digits and there may or may not be repetitions of the
numbers. The numbers could be any number from 1000 to 1200 (total of
200 possible numbers)
In column G12 to G62 there are 5 different names. Bill, Bob, Mike,
Helen and Sally that may or may not be repeated or not entered.
On a separate sheet I need to figure out the following.
In rows I want to put all the numbers.
In columns I want to put the names.
What I want to do is to count how many times Bill gave away item #
1056, 1137 etc. So that in the column below Bill beside each number
it will give me a total of instances Bill gave that item away in 12
months or a 0 if none of any number. It would be nice if it auto
updated when Bill gives away item # 1423 next month.
I want to do the same for all five people.
I have visited many web sites and tried numerous formulas but just
cannot get anything that works.
What I need to know how to do, is automatically count, in column 'd', the number of days its been since the number in column 'c' (same row) has shown up in column 'b'.
Attatched is an example of column 'd' already filled in with the correct answer, however, I want it to be calculated automatically.
I am trying to count AE2:AE601 if AE2:AE601 <= 2 and if AF2:AF601 = the value of AH2 but the formula that I have create returns a 0 when it should be returning a 1.
Where did I go wrong? Here is what I have so far.
=COUNT((AE2:AE601)*(IF(AE2:AE601,"<=2",IF(AF2:AF601,"="&AH2))))
I'm looking for another twisted forumla / array. Here's what I'm trying to do?
When the value in data!G$2:G$51000 = Yes
AND
The value in data!J$2:J$51000 is Unique (counted once if more than 1 total matches)
AND
The value in data!H$2:H$51000 is
formula that will check cells E2:E700 and if it contains the text "RED" then count the number of cells populated in adjacent F2:F700...eg....
E F
RED 2
RED
XXX 2
CCC
RED 6
FFF 3
result from above would be 2