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  

sumif? countif?



 
 
Thread Tools Display Modes
  #1  
Old September 3rd, 2008, 11:51 AM posted to microsoft.public.excel.worksheet.functions
Aaron Hodson \(Coversure\)
external usenet poster
 
Posts: 46
Default sumif? countif?

Hello,

I need some help with the following:

I require cell K3 (in worksheet named 'brokers') to count the number of
times the data in A3 matches those in mar!B:B.
I have acheived this by using formula: =COUNTIF(mar!B:B,Brokers!A:A)

However, i now need to insert another arguement, where in addition to the
above, only count if mar!M:M contains the letter 'y'.

Please help,

Thanks

Aaron

  #2  
Old September 3rd, 2008, 12:48 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default sumif? countif?

You can only use COUNTIF (and SUMIF) if there is only one condition.
Try this instead:

=SUMPRODUCT((mar!B1:B100=Brokers!A3)*(mar!M1:M100= "y"))

Note that you can't use full-column references (unless you have
XL2007), so adjust the ranges to suit.

Hope this helps.

Pete

On Sep 3, 11:51*am, "Aaron Hodson \(Coversure\)"
wrote:
Hello,

I need some help with the following:

I require cell K3 (in worksheet named 'brokers') to count the number of
times the data in A3 matches those in mar!B:B.
I have acheived this by using formula: =COUNTIF(mar!B:B,Brokers!A:A)

However, i now need to insert another arguement, where in addition to the
above, only count if mar!M:M contains the letter 'y'.

Please help,

Thanks

Aaron


  #3  
Old September 3rd, 2008, 02:45 PM posted to microsoft.public.excel.worksheet.functions
Aaron Hodson \(Coversure\)
external usenet poster
 
Posts: 46
Default sumif? countif?

Works perfectly!

Thank you very much for your help.

"Pete_UK" wrote in message
...
You can only use COUNTIF (and SUMIF) if there is only one condition.
Try this instead:

=SUMPRODUCT((mar!B1:B100=Brokers!A3)*(mar!M1:M100= "y"))

Note that you can't use full-column references (unless you have
XL2007), so adjust the ranges to suit.

Hope this helps.

Pete

On Sep 3, 11:51 am, "Aaron Hodson \(Coversure\)"
wrote:
Hello,

I need some help with the following:

I require cell K3 (in worksheet named 'brokers') to count the number of
times the data in A3 matches those in mar!B:B.
I have acheived this by using formula: =COUNTIF(mar!B:B,Brokers!A:A)

However, i now need to insert another arguement, where in addition to the
above, only count if mar!M:M contains the letter 'y'.

Please help,

Thanks

Aaron


  #4  
Old September 3rd, 2008, 04:35 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default sumif? countif?

You're welcome - thanks for feeding back.

Pete

On Sep 3, 2:45*pm, "Aaron Hodson \(Coversure\)"
wrote:
Works perfectly!

Thank you very much for your help.

 




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 07:07 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.