A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help with Excel



 
 
Thread Tools Display Modes
  #1  
Old November 8th, 2009, 11:52 PM posted to microsoft.public.excel.misc
Owen
external usenet poster
 
Posts: 80
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  
Old November 9th, 2009, 12:41 AM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
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  
Old November 9th, 2009, 12:46 AM posted to microsoft.public.excel.misc
Bernard Liengme[_2_]
external usenet poster
 
Posts: 1,027
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  
Old November 9th, 2009, 01:13 AM posted to microsoft.public.excel.misc
FSt1
external usenet poster
 
Posts: 2,788
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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.