#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default count only if

How do I count the number of cells only if E1:E100 contains "ray" and F1:F100
contains a "d"? I only want the "d's" in column if column E has Raytheon.
Right now it's counting all the "d's" in column f and all the "ray's" in
column e, but I only want column f to count if column e has ray. Hope that
makes sense. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 226
Default count only if

not quite sure what you ant, nut give this a try

=SUMPRODUCT((E1:E100="Raytheon")*(F1:F100="d"))

--


Gary Keramidas
Excel 2003


"Erin" wrote in message
...
How do I count the number of cells only if E1:E100 contains "ray" and
F1:F100
contains a "d"? I only want the "d's" in column if column E has Raytheon.
Right now it's counting all the "d's" in column f and all the "ray's" in
column e, but I only want column f to count if column e has ray. Hope that
makes sense. Please help.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default count only if

I tried (the critera is on worksheet named masterlist)...

=SUMPRODUCT(--(MASTERLIST!E2:E100="*Ray"),--(MASTERLIST!F2:F100="*d"))

but it doesn't work. :-(

"Erin" wrote:

How do I count the number of cells only if E1:E100 contains "ray" and F1:F100
contains a "d"? I only want the "d's" in column if column E has Raytheon.
Right now it's counting all the "d's" in column f and all the "ray's" in
column e, but I only want column f to count if column e has ray. Hope that
makes sense. Please help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default count only if

That's because Sumproduct does not support wildcards. You need to do it this
way:
=SUMPRODUCT(--(ISNUMBER(SEARCH("ray",MASTERLIST!E2:E100))),--(ISNUMBER(SEARCH("d",MASTERLIST!F2:F100))))

Regards,
Fred


"Erin" wrote in message
...
I tried (the critera is on worksheet named masterlist)...

=SUMPRODUCT(--(MASTERLIST!E2:E100="*Ray"),--(MASTERLIST!F2:F100="*d"))

but it doesn't work. :-(

"Erin" wrote:

How do I count the number of cells only if E1:E100 contains "ray" and
F1:F100
contains a "d"? I only want the "d's" in column if column E has Raytheon.
Right now it's counting all the "d's" in column f and all the "ray's" in
column e, but I only want column f to count if column e has ray. Hope
that
makes sense. Please help.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default count only if

Shoot.....thank you, but it returned a 0.

I even tried ....

=SUMPRODUCT(--(MASTERLIST!E2:E100="Raytheon"),--(MASTERLIST!F2:F100="d"))

(the criteria is on the Masterlist worksheet) but that didn't work either. I
also tried:

=COUNTIF(MASTERLIST!E2:E100,"*Raytheon")+COUNTIF(M ASTERLIST!F2:F100,"*d")

but that counted all the d's in column f and all the raytheon's in column e

any other ideas?

"Gary Keramidas" wrote:

not quite sure what you ant, nut give this a try

=SUMPRODUCT((E1:E100="Raytheon")*(F1:F100="d"))

--


Gary Keramidas
Excel 2003


"Erin" wrote in message
...
How do I count the number of cells only if E1:E100 contains "ray" and
F1:F100
contains a "d"? I only want the "d's" in column if column E has Raytheon.
Right now it's counting all the "d's" in column f and all the "ray's" in
column e, but I only want column f to count if column e has ray. Hope that
makes sense. Please help.


.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default count only if

THANK YOU FRED! YOU ROCK! It worked like a charm.

Have a great night!

"Fred Smith" wrote:

That's because Sumproduct does not support wildcards. You need to do it this
way:
=SUMPRODUCT(--(ISNUMBER(SEARCH("ray",MASTERLIST!E2:E100))),--(ISNUMBER(SEARCH("d",MASTERLIST!F2:F100))))

Regards,
Fred


"Erin" wrote in message
...
I tried (the critera is on worksheet named masterlist)...

=SUMPRODUCT(--(MASTERLIST!E2:E100="*Ray"),--(MASTERLIST!F2:F100="*d"))

but it doesn't work. :-(

"Erin" wrote:

How do I count the number of cells only if E1:E100 contains "ray" and
F1:F100
contains a "d"? I only want the "d's" in column if column E has Raytheon.
Right now it's counting all the "d's" in column f and all the "ray's" in
column e, but I only want column f to count if column e has ray. Hope
that
makes sense. Please help.


.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default count only if

Glad to help. Thanks for the feedback.

Regards,
Fred

"Erin" wrote in message
...
THANK YOU FRED! YOU ROCK! It worked like a charm.

Have a great night!

"Fred Smith" wrote:

That's because Sumproduct does not support wildcards. You need to do it
this
way:
=SUMPRODUCT(--(ISNUMBER(SEARCH("ray",MASTERLIST!E2:E100))),--(ISNUMBER(SEARCH("d",MASTERLIST!F2:F100))))

Regards,
Fred


"Erin" wrote in message
...
I tried (the critera is on worksheet named masterlist)...

=SUMPRODUCT(--(MASTERLIST!E2:E100="*Ray"),--(MASTERLIST!F2:F100="*d"))

but it doesn't work. :-(

"Erin" wrote:

How do I count the number of cells only if E1:E100 contains "ray" and
F1:F100
contains a "d"? I only want the "d's" in column if column E has
Raytheon.
Right now it's counting all the "d's" in column f and all the "ray's"
in
column e, but I only want column f to count if column e has ray. Hope
that
makes sense. Please help.


.


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
Count Employee Work Time - Don't Count Duplicates J Excel Worksheet Functions 3 May 1st 07 10:47 PM
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 03:42 PM.

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"