ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with Excel (https://www.excelbanter.com/excel-discussion-misc-queries/247895-help-excel.html)

Owen[_2_]

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?

Dave Peterson

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

Bernard Liengme[_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?




FSt1

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?



All times are GMT +1. The time now is 08:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com