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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If Formula question Excel 2003



 
 
Thread Tools Display Modes
  #1  
Old January 5th, 2008, 07:56 PM posted to microsoft.public.excel.worksheet.functions
Tom
external usenet poster
 
Posts: 1,359
Default If Formula question Excel 2003

What is the proper syntax in Excel 2003 for the following:

If cells A6:A20="Tom" and cells B6:B20="a" then count the number of "a" in
cells B6:B20.

Thanks!
  #2  
Old January 5th, 2008, 08:16 PM posted to microsoft.public.excel.worksheet.functions
RagDyeR
external usenet poster
 
Posts: 3,482
Default If Formula question Excel 2003

Try this:

=Sumproduct((A6:A20="Tom")*(B6:B20="a")*B6:B20)

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Tom" wrote in message
...
What is the proper syntax in Excel 2003 for the following:

If cells A6:A20="Tom" and cells B6:B20="a" then count the number of "a" in
cells B6:B20.

Thanks!


  #3  
Old January 5th, 2008, 08:18 PM posted to microsoft.public.excel.worksheet.functions
RagDyeR
external usenet poster
 
Posts: 3,482
Default If Formula question Excel 2003

Drop the last argument ! ! !

=Sumproduct((A6:A20="Tom")*(B6:B20="a"))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Tom" wrote in message
...
What is the proper syntax in Excel 2003 for the following:

If cells A6:A20="Tom" and cells B6:B20="a" then count the number of "a" in
cells B6:B20.

Thanks!


  #4  
Old January 5th, 2008, 08:27 PM posted to microsoft.public.excel.worksheet.functions
Bill Kuunders
external usenet poster
 
Posts: 221
Default If Formula question Excel 2003

I assume you want to know the number of times
that both conditions are met.

=SUMPRODUCT((A6:A20="Tom")*(B6:B20="a"))


Greetings from New Zealand

"Tom" wrote in message
...
What is the proper syntax in Excel 2003 for the following:

If cells A6:A20="Tom" and cells B6:B20="a" then count the number of "a" in
cells B6:B20.

Thanks!



  #5  
Old January 7th, 2008, 12:38 AM posted to microsoft.public.excel.worksheet.functions
BIG D
external usenet poster
 
Posts: 14
Default If Formula question Excel 2003

On Jan 5, 2:27*pm, "Bill Kuunders" wrote:
I assume you want to know the number of times
that both conditions are met.

=SUMPRODUCT((A6:A20="Tom")*(B6:B20="a"))

Greetings from New Zealand

"Tom" wrote in message

...



What is the proper syntax in Excel 2003 for the following:


If cells A6:A20="Tom" and cells B6:B20="a" then count the number of "a" in
cells B6:B20.


Thanks!- Hide quoted text -


- Show quoted text -


If you wish to count only the occurance of "a" in conlum B try
countif(B6:B20,"a").
If you need to tie "Tom" and "a" togeather so both conditions must be
met try =IF(AND(A6="TOM",B6="A"),"A","") placed in column C then use
the countif statement adjusted to column C.

Regards

BigD
 




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 09:46 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.