Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Count if on Single Criteria with multiply conditions

Am trying to do a countif when the criteria can be one of many from a list

I am currently using

=(COUNTIF(INDEX(A1:j12,,2),Sheet2!$C$3))+(COUNTIF( INDEX(A1:J12,,2),Sheet2!$C$4))+(COUNTIF(INDEX(A1:J 12,,2),Sheet2!$C$5))+(COUNTIF(INDEX(A1:J12,,2),She et2!$C$6))+(COUNTIF(INDEX(A1:J12,,2),Sheet2!$C$7)) +(COUNTIF(INDEX(A1:J12,,2),Sheet2!$C$8))+(COUNTIF( INDEX(A1:J12,,2),Sheet2!$C$9))

this is only one of around 100 calculations of the same format within this
spreadsheet as you can see very messy is there a way of been able to do a
countif if the criteria is part of a list eg

=COUNTIF(INDEX(A1:j12,,2),Sheet2!$C$3:$C$9)

i know this formula doesnot work and will not work but is there some way of
making it so it counts these values

any way around this would be great


Thanks Damien
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Count if on Single Criteria with multiply conditions

Try this:

=SUMPRODUCT(--(ISNUMBER(MATCH(INDEX(A1:J12,,2),Sheet2!C3:C9,0))) )

Biff

"dpgraves" wrote in message
...
Am trying to do a countif when the criteria can be one of many from a list

I am currently using

=(COUNTIF(INDEX(A1:j12,,2),Sheet2!$C$3))+(COUNTIF( INDEX(A1:J12,,2),Sheet2!$C$4))+(COUNTIF(INDEX(A1:J 12,,2),Sheet2!$C$5))+(COUNTIF(INDEX(A1:J12,,2),She et2!$C$6))+(COUNTIF(INDEX(A1:J12,,2),Sheet2!$C$7)) +(COUNTIF(INDEX(A1:J12,,2),Sheet2!$C$8))+(COUNTIF( INDEX(A1:J12,,2),Sheet2!$C$9))

this is only one of around 100 calculations of the same format within this
spreadsheet as you can see very messy is there a way of been able to do a
countif if the criteria is part of a list eg

=COUNTIF(INDEX(A1:j12,,2),Sheet2!$C$3:$C$9)

i know this formula doesnot work and will not work but is there some way
of
making it so it counts these values

any way around this would be great


Thanks Damien



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
Total Summed Count of Numeric Repeat (Paired /Double Instance) Criteria Sam via OfficeKB.com Excel Worksheet Functions 2 March 20th 06 02:29 AM
how to count unique values in excel based on multiple criteria IDBUGM Excel Worksheet Functions 3 March 15th 06 04:00 PM
Count Multiple Criteria Brian Excel Worksheet Functions 2 February 27th 06 02:44 PM
I need to count while using multiple criteria Larry Excel Worksheet Functions 1 July 21st 05 04:56 PM
Count using complex criteria Rob Excel Worksheet Functions 2 May 4th 05 02:34 PM


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