If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Help with Excel
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? |
#2
|
|||
|
|||
Help with Excel
=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 he 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() Owen wrote: 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? -- Dave Peterson |
#3
|
|||
|
|||
Help with Excel
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/xlFunctio...tml#SumProduct -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Owen" wrote in message ... 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? |
#4
|
|||
|
|||
Help with Excel
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 "Owen" wrote: 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? |
Thread Tools | |
Display Modes | |
|
|