#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default CountIF Formula

I currently have a spreadsheet were Column D is set to Status and Column M is
set to "YES" or "NO." Column D shows me if a Class is OPEN, CLOSED, OR
PENDING and Column M shows me if the Class is Required "YES" "NO"

I want to count the number of classes that are open and are not required.
Which means column D set to "OPEN" and Column M set to "NO"

I tried this formula but it is counting all the "NO" in column M:
=IF(AND(D2="open",M2="no"),COUNTIF(M2:M146,"no")," ")

I need a formula that will count between column D and M based on the
information.

Any Ideas?????

Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default CountIF Formula

Hi!

Try this:

=SUMPRODUCT(--(D2:D146="open"),--(M2:M146="no"))

Biff

"Marilyn" wrote in message
...
I currently have a spreadsheet were Column D is set to Status and Column M
is
set to "YES" or "NO." Column D shows me if a Class is OPEN, CLOSED, OR
PENDING and Column M shows me if the Class is Required "YES" "NO"

I want to count the number of classes that are open and are not required.
Which means column D set to "OPEN" and Column M set to "NO"

I tried this formula but it is counting all the "NO" in column M:
=IF(AND(D2="open",M2="no"),COUNTIF(M2:M146,"no")," ")

I need a formula that will count between column D and M based on the
information.

Any Ideas?????

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default CountIF Formula

HI Marilyn,

In your first empy comumn enter the following:

=(D2&M2)

Then paste it down to the bottom of your data

Then, I will assume you have used column N,

=countif(Nx:Ny,"Open No")

Where x is the first rom and y the last.

Thanks,

Simon


Marilyn wrote:
I currently have a spreadsheet were Column D is set to Status and Column M is
set to "YES" or "NO." Column D shows me if a Class is OPEN, CLOSED, OR
PENDING and Column M shows me if the Class is Required "YES" "NO"

I want to count the number of classes that are open and are not required.
Which means column D set to "OPEN" and Column M set to "NO"

I tried this formula but it is counting all the "NO" in column M:
=IF(AND(D2="open",M2="no"),COUNTIF(M2:M146,"no"), "")

I need a formula that will count between column D and M based on the
information.

Any Ideas?????

Thanks,


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200610/1

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default CountIF Formula

=sumproduct(--(D2:D146="open"),--(M2:M146="no"))
see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

http://mcgimpsey.com/excel/formulae/doubleneg.html

happy Thanksgiving (in the true north)
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Marilyn" wrote in message
...
I currently have a spreadsheet were Column D is set to Status and Column M
is
set to "YES" or "NO." Column D shows me if a Class is OPEN, CLOSED, OR
PENDING and Column M shows me if the Class is Required "YES" "NO"

I want to count the number of classes that are open and are not required.
Which means column D set to "OPEN" and Column M set to "NO"

I tried this formula but it is counting all the "NO" in column M:
=IF(AND(D2="open",M2="no"),COUNTIF(M2:M146,"no")," ")

I need a formula that will count between column D and M based on the
information.

Any Ideas?????

Thanks,



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default CountIF Formula

It seemed to have worked!!!! Thank you so much!!!

Can you explain to me what the (-- means in the formula?

=SUMPRODUCT(--(D2:D146="open"),--(M2:M146="no"))

Thanks a Bunch!!


"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(D2:D146="open"),--(M2:M146="no"))

Biff

"Marilyn" wrote in message
...
I currently have a spreadsheet were Column D is set to Status and Column M
is
set to "YES" or "NO." Column D shows me if a Class is OPEN, CLOSED, OR
PENDING and Column M shows me if the Class is Required "YES" "NO"

I want to count the number of classes that are open and are not required.
Which means column D set to "OPEN" and Column M set to "NO"

I tried this formula but it is counting all the "NO" in column M:
=IF(AND(D2="open",M2="no"),COUNTIF(M2:M146,"no")," ")

I need a formula that will count between column D and M based on the
information.

Any Ideas?????

Thanks,






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default CountIF Formula

Hi,


Best explanation of the double unary operator is available at Bob's
site :

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Carim

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default CountIF Formula

You're welcome. Thanks for the feedback!

Can you explain to me what the (-- means in the formula?


See the link posted by Carim for a detailed explanation.

Biff

"Marilyn" wrote in message
...
It seemed to have worked!!!! Thank you so much!!!

Can you explain to me what the (-- means in the formula?

=SUMPRODUCT(--(D2:D146="open"),--(M2:M146="no"))

Thanks a Bunch!!


"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(D2:D146="open"),--(M2:M146="no"))

Biff

"Marilyn" wrote in message
...
I currently have a spreadsheet were Column D is set to Status and Column
M
is
set to "YES" or "NO." Column D shows me if a Class is OPEN, CLOSED, OR
PENDING and Column M shows me if the Class is Required "YES" "NO"

I want to count the number of classes that are open and are not
required.
Which means column D set to "OPEN" and Column M set to "NO"

I tried this formula but it is counting all the "NO" in column M:
=IF(AND(D2="open",M2="no"),COUNTIF(M2:M146,"no")," ")

I need a formula that will count between column D and M based on the
information.

Any Ideas?????

Thanks,






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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
countif formula Todd Nelson Excel Discussion (Misc queries) 1 September 21st 05 11:27 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
COUNTIF formula problems artisanpp Excel Discussion (Misc queries) 2 June 5th 05 01:30 AM


All times are GMT +1. The time now is 05:30 PM.

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

About Us

"It's about Microsoft Excel"