Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default repost: formula qhich checks mutliple criteria before counting

I was using the formula below:

=SUMPRODUCT(--(N1:N100<TODAY()),--(BM1:BM100="yes"))

and it doesnt actually only return the number of rows which have both a date
in the past in col N AND have a value of "yes" in col BM.
it is then returning the total amount of times "Yes" is in BM - not just the
amount of times that it occurs in a row where the date (col N) is before
today's date. Any idea how i can restrict it to just where the date is in the
past AND col BM ="Yes"?
thankx again...

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default repost: formula qhich checks mutliple criteria before counting

If you have empty cells in N1:N100 those would be counted if BM1:BM100 =
yes.

To prevent that:

=SUMPRODUCT(--(ISNUMBER(N1:N100)),--(N1:N100<TODAY()),--(BM1:BM100="yes"))


--
Biff
Microsoft Excel MVP


"JHolmes" wrote in message
...
I was using the formula below:

=SUMPRODUCT(--(N1:N100<TODAY()),--(BM1:BM100="yes"))

and it doesnt actually only return the number of rows which have both a
date
in the past in col N AND have a value of "yes" in col BM.
it is then returning the total amount of times "Yes" is in BM - not just
the
amount of times that it occurs in a row where the date (col N) is before
today's date. Any idea how i can restrict it to just where the date is in
the
past AND col BM ="Yes"?
thankx again...



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default repost: formula qhich checks mutliple criteria before counting

Thanks heaps, have triple checked and this definitely fixes the prob. I had
blanks which were being counted.

Thanks heaps also Tyro :) thanks

"T. Valko" wrote:

If you have empty cells in N1:N100 those would be counted if BM1:BM100 =
yes.

To prevent that:

=SUMPRODUCT(--(ISNUMBER(N1:N100)),--(N1:N100<TODAY()),--(BM1:BM100="yes"))


--
Biff
Microsoft Excel MVP


"JHolmes" wrote in message
...
I was using the formula below:

=SUMPRODUCT(--(N1:N100<TODAY()),--(BM1:BM100="yes"))

and it doesnt actually only return the number of rows which have both a
date
in the past in col N AND have a value of "yes" in col BM.
it is then returning the total amount of times "Yes" is in BM - not just
the
amount of times that it occurs in a row where the date (col N) is before
today's date. Any idea how i can restrict it to just where the date is in
the
past AND col BM ="Yes"?
thankx again...




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default repost: formula qhich checks mutliple criteria before counting

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JHolmes" wrote in message
...
Thanks heaps, have triple checked and this definitely fixes the prob. I
had
blanks which were being counted.

Thanks heaps also Tyro :) thanks

"T. Valko" wrote:

If you have empty cells in N1:N100 those would be counted if BM1:BM100 =
yes.

To prevent that:

=SUMPRODUCT(--(ISNUMBER(N1:N100)),--(N1:N100<TODAY()),--(BM1:BM100="yes"))


--
Biff
Microsoft Excel MVP


"JHolmes" wrote in message
...
I was using the formula below:

=SUMPRODUCT(--(N1:N100<TODAY()),--(BM1:BM100="yes"))

and it doesnt actually only return the number of rows which have both a
date
in the past in col N AND have a value of "yes" in col BM.
it is then returning the total amount of times "Yes" is in BM - not
just
the
amount of times that it occurs in a row where the date (col N) is
before
today's date. Any idea how i can restrict it to just where the date is
in
the
past AND col BM ="Yes"?
thankx again...






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
Formula which checks multiple criteria before counting JHolmes Excel Discussion (Misc queries) 10 February 22nd 08 03:57 PM
Formula for counting more than one criteria Els Excel Worksheet Functions 1 January 26th 08 01:03 AM
Mutliple Criteria Count function [email protected] Excel Worksheet Functions 1 September 7th 07 10:30 AM
Formula that checks several criteria before returing the value??? Apinun Excel Discussion (Misc queries) 4 September 19th 06 10:17 AM
COUNTIF statement with 3 criteria checks Malvaro Excel Discussion (Misc queries) 4 June 4th 06 11:40 PM


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