#1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Countif

I need to countif 2 diff criteria's are met in diffrent columns for ex:
A B

1. FCC 18/01/2008
2. FID 18/01/2008
3. PTZ 16/01/2008
4. FCC 22/01/2008

If FCC in appears in column A1 and there is a date in B it must count it as
1 in case the answer would be =2
Any ideas ?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Countif

Maybe...

=sumproduct(--(a1:a100="fcc"),--(isnumber(b1:b100))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Dan wrote:

I need to countif 2 diff criteria's are met in diffrent columns for ex:
A B

1. FCC 18/01/2008
2. FID 18/01/2008
3. PTZ 16/01/2008
4. FCC 22/01/2008

If FCC in appears in column A1 and there is a date in B it must count it as
1 in case the answer would be =2
Any ideas ?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Countif

Ps. If you have other numbers in column B, it's more difficult to distinguish
real dates from plain old numbers.

Dan wrote:

I need to countif 2 diff criteria's are met in diffrent columns for ex:
A B

1. FCC 18/01/2008
2. FID 18/01/2008
3. PTZ 16/01/2008
4. FCC 22/01/2008

If FCC in appears in column A1 and there is a date in B it must count it as
1 in case the answer would be =2
Any ideas ?


--

Dave Peterson
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???? Vicki Leatherberry Excel Worksheet Functions 2 February 28th 06 08:01 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


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