|
|
Two Condition - search
I am trying to pull value when two conditions are met.
want to count column "B" when it = "ETARC" and when column "J" is = "0" or a
negative number.
I have tried =COUNTIF(B11:B26,"=ETARC")+COUNTIF(J8:J24,""<>0)
the formula is only pulling the column "B" infor and the same number for
column "J". My answer should be 6 for column "B" and 2 for column "J",
instead I am getting the same 6 for the entire data reading only column "B"
|
|
0
|
|
|
|
Reply
|
Utf
|
5/24/2010 7:02:01 PM |
|
xl2007 has a new =countifs() function that you can read about in Excel's help.
In any version of excel, you could use a formula like:
=sumproduct(--(b11:b26="etarc"),--(j11:j26<=0))
(I made the rows for both ranges the same.)
Adjust the ranges to match--but you can't use whole columns (except in xl2007+).
=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.
Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html
linda wrote:
>
> I am trying to pull value when two conditions are met.
>
> want to count column "B" when it = "ETARC" and when column "J" is = "0" or a
> negative number.
>
> I have tried =COUNTIF(B11:B26,"=ETARC")+COUNTIF(J8:J24,""<>0)
> the formula is only pulling the column "B" infor and the same number for
> column "J". My answer should be 6 for column "B" and 2 for column "J",
> instead I am getting the same 6 for the entire data reading only column "B"
--
Dave Peterson
|
|
0
|
|
|
|
Reply
|
Dave
|
5/24/2010 7:07:26 PM
|
|
linda wrote:
> I am trying to pull value when two conditions are met.
>
> want to count column "B" when it = "ETARC" and when column "J" is = "0" or a
> negative number.
>
> I have tried =COUNTIF(B11:B26,"=ETARC")+COUNTIF(J8:J24,""<>0)
> the formula is only pulling the column "B" infor and the same number for
> column "J". My answer should be 6 for column "B" and 2 for column "J",
> instead I am getting the same 6 for the entire data reading only column "B"
You can also look here:
http://www.contextures.com/xlFunctions04.html#SumProduct
|
|
0
|
|
|
|
Reply
|
Glenn
|
5/24/2010 7:13:31 PM
|
|
|
2 Replies
202 Views
(page loaded in 0.086 seconds)
Similiar Articles: lookup second / last match with two conditions - microsoft.public ...Match values in more than one column - microsoft.public ... lookup second / last match with two conditions - microsoft ... Excel - Using Lookup To Find The First Occurance ... Two Condition Vlookup - microsoft.public.excel.miscSo basically if these two conditions are met then I want to see the result from using worksheet 2 as the lookup reference table. Does anyone know the correct format ... Sum If - 2 conditions - microsoft.public.excel.worksheet.functions ...I want to sum a # field if the 2 conditions are met. 1 - the month = February and 2, the $'s are sales Data is like this D F ... query multiple non-consecutive dates - microsoft.public.access ...If you need both conditions, at the same time, write the two conditions, separated with an AND conjunction: .... WHERE ( dateTimeFIeld BETWEEN firstDate AND lastDate ... How do I search for the second largest value in the array ...Find second to last value in cell - microsoft.public.excel ... lookup second / last match with two conditions - microsoft.public ... How do I search for the second largest ... Count cells with specific text between two dates? - microsoft ...Count cells matching two criteria (DATE & TEXT) - microsoft ... Count based on cell value between ... Excel - Count Number Of Cells Based On Two Conditions (2 Different ... ... Nested IF(OR(AND) Statement with Two AND Conditions - microsoft ...Nested IF(OR(AND) Statement with Two AND Conditions Follow ... You may also contact Pizza Hut and find out about our catering services for ... Returning a value if multiple conditions are met - microsoft ...I am trying to develop a method which will return a value if each of three conditions are met. The three conditions, each with a differing number o... Sum if Condition is Equal in Range Date and find column ...Sum a column if two criteria are met - microsoft.public.excel ... Sum if Condition is Equal in Range Date and find column ... Sum a column is criteria in two in column and ... Open form with 2 criteria - microsoft.public.access.forms ...I need to open a form which need to satisfy 2 conditions. I know how to specify 1 condition but no idea how to specify 2. ... Search Condition (Transact-SQL) - Microsoft Corporation: Software ...Combines two conditions and evaluates to TRUE when both of the conditions are TRUE. For more information, see AND (Transact-SQL). OR . Combines two conditions and evaluates ... Search Condition (Transact-SQL) - Microsoft Corporation: Software ...Is a combination of one or more predicates that use the logical operators AND, OR, and NOT. Use <search_condition> in a DELETE, MERGE, SELECT, or UPDATE statement to ... Rails - Find Condition of two model fields - Stack OverflowI'm trying to find the results of a model where it queries as the result of two conditions. I have a search tag that looks for . Model.find(:all, :conditions => "name ... Specify Multiple Search Conditions for One Column (Visual Database ...In some instances, you might want to apply a number of search conditions to the same data column. For example, you might want to: SQL WHEREThe SQL WHERE clause works in conjunction with other SQL clauses like SELECT, INSERT and UPDATE to specify a search condition for these statements. 7/25/2012 12:15:47 PM
|
|
|
|
|
|
|
|
|