LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Count on multiple parameters

Try:

=SUMPRODUCT(--('MIP Raised'!$E$2:$E$65336="Amy"),--('MIP
Raised'!$B$2:$B$65336="Closed"))

You missed out the -- which converts a true/False condition to 1/0 so you sum.

"TJ" wrote:

Thanks Alan, I have tried what you suggest and it is still not working. The
function reads
=SUMPRODUCT(('MIP Raised'!$E$2:'MIP Raised'!$E$65336="Amy"),('MIP
Raised'!$B$2:'MIP Raised'!$B$65336="Closed"))
If the are 20 entires for Amy between E2 and E65336 and of those 5 are
closed in B2 to B65336 then this formula should show a result of 15. Mine
shows 0. Is there anything I am doing wrong?
TJ

"Alan" wrote in message
...
=SUMPRODUCT(--(A1:A10="Amy"),--(B1:B10="Closed"))
You can also put 'Amy' and 'Closed' in two cells, say C1 and C2
=SUMPRODUCT(--(A1:A10=C1),--(B1:B10=C2))
Regards,
Alan.
"TJ" wrote in message
...
Hi
I have a spreadsheet which has 2 columns. Col A contains names and col b
contains either Open or Closed. I want to count the number of closed for
each name. E.g

Amy Open
Amy Closed
Amy Open
Steve Closed
Steve Closed

would give

Amy 1
Steve 2

I can count the names if a countif and the number of closed using
countif - I now want to CountIf(A1:A10,"=Amy") AND
CountIf(B1:B10,"=Closed")
Any help please
TJ





 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple parameters in MS Query Ken Excel Discussion (Misc queries) 1 August 19th 06 01:48 PM
How do I set multiple parameters using VLookup Danelle Boling, Sales Analyst Excel Worksheet Functions 1 August 1st 06 06:41 PM
get a count from multiple lookups andy62 Excel Worksheet Functions 10 July 12th 06 10:43 PM
Counting cells using multiple parameters tuph Excel Discussion (Misc queries) 3 June 19th 06 06:53 AM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM


All times are GMT +1. The time now is 08:15 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"