#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default 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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"