G Guest Jun 8, 2006 #1 I have a spreadsheet were I want to get the count if column A is Jet and Column B is yes. Thanks
D Dave Peterson Jun 8, 2006 #2 =sumproduct(--(a1:a999="Jet"),--(b1:b999="yes")) Adjust the ranges to match--but you can't use whole columns. =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
=sumproduct(--(a1:a999="Jet"),--(b1:b999="yes")) Adjust the ranges to match--but you can't use whole columns. =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