Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Multiple Countif results

My heads hurting trying to sort this one out, and the answer will be so
obvious...but can anyone clear this up for me

I need to record multiple results based on set criteria being met i.e the
total number of Criteria A's for Staff Group B, Criteria A's for Staff Group
A and so on.

Staff Group A Criteria A
Staff Group B Criteria A
Staff Group A Criteria A
Staff Group B Criteria B
Staff Group B Criteria B

I've tried =SUMPRODUCT(--(Sheet1!B:B="Staff Group A")*(Sheet1!C:C="Criteria
A")) but keep getting #Num

Can anyone help
FtB
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Multiple Countif results

Hi,

you can not use B:B in a sumproduct function use B2:B1000 for eg. adjust for
your needs

hth
regards from Brazil
Marcelo

"Fez the Blue" escreveu:

My heads hurting trying to sort this one out, and the answer will be so
obvious...but can anyone clear this up for me

I need to record multiple results based on set criteria being met i.e the
total number of Criteria A's for Staff Group B, Criteria A's for Staff Group
A and so on.

Staff Group A Criteria A
Staff Group B Criteria A
Staff Group A Criteria A
Staff Group B Criteria B
Staff Group B Criteria B

I've tried =SUMPRODUCT(--(Sheet1!B:B="Staff Group A")*(Sheet1!C:C="Criteria
A")) but keep getting #Num

Can anyone help
FtB

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Multiple Countif results

You're really close... Change the "*" in your formula to ",--" and you will
be there.
--
Jim


"Fez the Blue" wrote:

My heads hurting trying to sort this one out, and the answer will be so
obvious...but can anyone clear this up for me

I need to record multiple results based on set criteria being met i.e the
total number of Criteria A's for Staff Group B, Criteria A's for Staff Group
A and so on.

Staff Group A Criteria A
Staff Group B Criteria A
Staff Group A Criteria A
Staff Group B Criteria B
Staff Group B Criteria B

I've tried =SUMPRODUCT(--(Sheet1!B:B="Staff Group A")*(Sheet1!C:C="Criteria
A")) but keep getting #Num

Can anyone help
FtB

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Multiple Countif results

SUMPRODUCT doesn't work with entire col references. Define the smallest range
size (identical size) which sufficient to cover, eg something like
(untested):
=SUMPRODUCT((Sheet1!B2:B100="Staff Group A")*(Sheet1!C2:C100="Criteria A"))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Fez the Blue" wrote:
My heads hurting trying to sort this one out, and the answer will be so
obvious...but can anyone clear this up for me

I need to record multiple results based on set criteria being met i.e the
total number of Criteria A's for Staff Group B, Criteria A's for Staff Group
A and so on.

Staff Group A Criteria A
Staff Group B Criteria A
Staff Group A Criteria A
Staff Group B Criteria B
Staff Group B Criteria B

I've tried =SUMPRODUCT(--(Sheet1!B:B="Staff Group A")*(Sheet1!C:C="Criteria
A")) but keep getting #Num

Can anyone help
FtB

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default Multiple Countif results

Hello,

I think you want this:
=SUMPRODUCT(--(Sheet1!B:B="Staff Group A"), --(Sheet1!C:C="Criteria A"))

see if this works.

Cheers,

Scott

"Fez the Blue" wrote:

My heads hurting trying to sort this one out, and the answer will be so
obvious...but can anyone clear this up for me

I need to record multiple results based on set criteria being met i.e the
total number of Criteria A's for Staff Group B, Criteria A's for Staff Group
A and so on.

Staff Group A Criteria A
Staff Group B Criteria A
Staff Group A Criteria A
Staff Group B Criteria B
Staff Group B Criteria B

I've tried =SUMPRODUCT(--(Sheet1!B:B="Staff Group A")*(Sheet1!C:C="Criteria
A")) but keep getting #Num

Can anyone help
FtB



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Multiple Countif results

Cheers Scott
Worked a treat
FtB

"Scott" wrote:

Hello,

I think you want this:
=SUMPRODUCT(--(Sheet1!B:B="Staff Group A"), --(Sheet1!C:C="Criteria A"))

see if this works.

Cheers,

Scott

"Fez the Blue" wrote:

My heads hurting trying to sort this one out, and the answer will be so
obvious...but can anyone clear this up for me

I need to record multiple results based on set criteria being met i.e the
total number of Criteria A's for Staff Group B, Criteria A's for Staff Group
A and so on.

Staff Group A Criteria A
Staff Group B Criteria A
Staff Group A Criteria A
Staff Group B Criteria B
Staff Group B Criteria B

I've tried =SUMPRODUCT(--(Sheet1!B:B="Staff Group A")*(Sheet1!C:C="Criteria
A")) but keep getting #Num

Can anyone help
FtB

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Multiple Countif results

Worked a treat

?? Must admit I'm surprised you managed to get Scott's version of the
SUMPRODUCT -- which is still using entire col references -- to work. I
thought that was the cause of your #NUM! errors in the first place <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CountIf formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM
abdualmohsn almedrahe abdualmohsn ahmad Excel Discussion (Misc queries) 1 November 19th 05 06:32 PM
Multiple COUNTIF formula JaB Excel Discussion (Misc queries) 2 September 29th 05 07:30 PM
Return Multiple Results with Lookup Josh O. Excel Worksheet Functions 1 February 4th 05 08:07 PM
CountIF across multiple sheets in a workbook Al Excel Worksheet Functions 1 October 29th 04 01:15 PM


All times are GMT +1. The time now is 04:17 AM.

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

About Us

"It's about Microsoft Excel"