Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default If/Then formula using ranges

I'm trying to create a formula that will count cells that contain and F, but
only if a different column equals a specified word. Example

Column A Pass/Fail
Network F
Strat 1 P
Strat 3 P
Network F
Strat 3 F
Strat 1 P

So how do I get it to look at all of column A and only count those that
equal Network and that column B (pass/fail) equals F? I've tried
if(a1:a6="Network",(countif(b1:b6),"F),""). It seems that the problem is the
ranges.

Any help would be great!
Thanks
Suzanne
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default If/Then formula using ranges

=SUMPRODUCT(--($A$2:$A$7="Network"),--($B$2:$B$7="F"))


"SBecker" wrote in message
...
I'm trying to create a formula that will count cells that contain and F,
but
only if a different column equals a specified word. Example

Column A Pass/Fail
Network F
Strat 1 P
Strat 3 P
Network F
Strat 3 F
Strat 1 P

So how do I get it to look at all of column A and only count those that
equal Network and that column B (pass/fail) equals F? I've tried
if(a1:a6="Network",(countif(b1:b6),"F),""). It seems that the problem is
the
ranges.

Any help would be great!
Thanks
Suzanne



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default If/Then formula using ranges

Hi,
=sumproduct(--(a6:a50="Network")+(B6:B50="F"))

"SBecker" wrote:

I'm trying to create a formula that will count cells that contain and F, but
only if a different column equals a specified word. Example

Column A Pass/Fail
Network F
Strat 1 P
Strat 3 P
Network F
Strat 3 F
Strat 1 P

So how do I get it to look at all of column A and only count those that
equal Network and that column B (pass/fail) equals F? I've tried
if(a1:a6="Network",(countif(b1:b6),"F),""). It seems that the problem is the
ranges.

Any help would be great!
Thanks
Suzanne

  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default If/Then formula using ranges

Thank you!

"Bassman62" wrote:

=SUMPRODUCT(--($A$2:$A$7="Network"),--($B$2:$B$7="F"))


"SBecker" wrote in message
...
I'm trying to create a formula that will count cells that contain and F,
but
only if a different column equals a specified word. Example

Column A Pass/Fail
Network F
Strat 1 P
Strat 3 P
Network F
Strat 3 F
Strat 1 P

So how do I get it to look at all of column A and only count those that
equal Network and that column B (pass/fail) equals F? I've tried
if(a1:a6="Network",(countif(b1:b6),"F),""). It seems that the problem is
the
ranges.

Any help would be great!
Thanks
Suzanne




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default If/Then formula using ranges

Thanks for your help...

"Eduardo" wrote:

Hi,
=sumproduct(--(a6:a50="Network")+(B6:B50="F"))

"SBecker" wrote:

I'm trying to create a formula that will count cells that contain and F, but
only if a different column equals a specified word. Example

Column A Pass/Fail
Network F
Strat 1 P
Strat 3 P
Network F
Strat 3 F
Strat 1 P

So how do I get it to look at all of column A and only count those that
equal Network and that column B (pass/fail) equals F? I've tried
if(a1:a6="Network",(countif(b1:b6),"F),""). It seems that the problem is the
ranges.

Any help would be great!
Thanks
Suzanne

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
how copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
Formula ranges Metolius Dad Excel Worksheet Functions 2 March 1st 07 07:14 PM
Date ranges in a sum formula Marcus Caterino Excel Worksheet Functions 2 June 26th 06 10:44 PM
Formula with ranges Manos Excel Worksheet Functions 3 May 23rd 06 10:41 AM
Different ranges in formula Jan Excel Worksheet Functions 6 March 29th 06 06:45 PM


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