Help with Excel

O

Owen

I have a spreadsheet with 3 columns - I want to know the number of times col
A = texta, and col b = textb and col c = text c. how do I do this in excel?
 
D

Dave Peterson

=sumproduct(--(a1:a10="texta"),--(b1:b10="textb"),--(c1:c10="text c"))

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


====
And if you're using xl2007, take a look at excel's help for =countifs()
 
B

Bernard Liengme

Number of times texta is found in column A: =COUNTIF(A:A,"texta")

Number of times column A, B and C in the same row have specified text
=SUMPRODUCT(--(A1:A100="texta"), --(B1:B100="textb"), --(C1:C100="textc")
Adjust the ranges as needed

Only in Excel 2007 can us you full column references
=SUMPRODUCT(--(A:A="texta"), --(B:B="textb"), --(C:C="textc")
Adjust the ranges as needed

Also only in XL 2007:
=COUNTIFS((A:A, "texta", B:B, "textb", C:C,"textc")

More on SUMPRODUCT:
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
Debra Dalgleish
http://www.contextures.com/xlFunctions04.html#SumProduct
 
F

FSt1

hi
you could use this formula...

=Countif(A1:A100,"Texta")

you would need a formula for each text you want to count and would need to
adjust ranges.

Regards
FSt1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top