Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default sumproduct to count two arguments

I have an excel test so please bear with me that what I am asking for
may not be the best way to do this. Here is what I have been asked to
do.

I have daily dates from the beginning of this year to now and
corresponding data.

Using the sumproduct function I want to count the number of time that
the data is less than 1 and at the end of the month. Here is what I
have:

=SUMPRODUCT((--($K$3:$K$151=EOMONTH($K$3,1)))*--($A$3:$A$151<1))


I am stuck on the eomonth part..can anyone help?

Many thanks.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default sumproduct to count two arguments

You're use of EOM is evaluating to the NEXT month:

K3 = 1/1/2006

EOMONTH(K3,1) = 2/28/2006

Maybe you want something like this:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<1))

Note that Sumproduct will evaluate EMPTY cells as 0 and this could cause a
problem with your second array: ($A$3:$A$151<1).

So, you may want to add another array to the formula to test for that:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<""),--($A$3:$A$151<1))

Biff

wrote in message
oups.com...
I have an excel test so please bear with me that what I am asking for
may not be the best way to do this. Here is what I have been asked to
do.

I have daily dates from the beginning of this year to now and
corresponding data.

Using the sumproduct function I want to count the number of time that
the data is less than 1 and at the end of the month. Here is what I
have:

=SUMPRODUCT((--($K$3:$K$151=EOMONTH($K$3,1)))*--($A$3:$A$151<1))


I am stuck on the eomonth part..can anyone help?

Many thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default sumproduct to count two arguments

Gentlemen,

Thanks a ton for the responses. Though neither of them worked out the
way I wanted. The result is supposed to be six and I got 1. There
aren't any empty cells in either of the ranges. I'm thinking that I
may have an issue with date formatting..should it be in serial format?
I have been working on this problem for a few days now, asked numerous
people and I'm beginning think it is impossible.

Does anyone want to take a look at the workbook?



Biff wrote:
You're use of EOM is evaluating to the NEXT month:

K3 = 1/1/2006

EOMONTH(K3,1) = 2/28/2006

Maybe you want something like this:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<1))

Note that Sumproduct will evaluate EMPTY cells as 0 and this could cause a
problem with your second array: ($A$3:$A$151<1).

So, you may want to add another array to the formula to test for that:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<""),--($A$3:$A$151<1))

Biff

wrote in message
oups.com...
I have an excel test so please bear with me that what I am asking for
may not be the best way to do this. Here is what I have been asked to
do.

I have daily dates from the beginning of this year to now and
corresponding data.

Using the sumproduct function I want to count the number of time that
the data is less than 1 and at the end of the month. Here is what I
have:

=SUMPRODUCT((--($K$3:$K$151=EOMONTH($K$3,1)))*--($A$3:$A$151<1))


I am stuck on the eomonth part..can anyone help?

Many thanks.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default sumproduct to count two arguments


Biff wrote:
You're use of EOM is evaluating to the NEXT month:

K3 = 1/1/2006

EOMONTH(K3,1) = 2/28/2006

Maybe you want something like this:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<1))

Note that Sumproduct will evaluate EMPTY cells as 0 and this could cause a
problem with your second array: ($A$3:$A$151<1).

So, you may want to add another array to the formula to test for that:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<""),--($A$3:$A$151<1))

Biff

wrote in message
oups.com...
I have an excel test so please bear with me that what I am asking for
may not be the best way to do this. Here is what I have been asked to
do.

I have daily dates from the beginning of this year to now and
corresponding data.

Using the sumproduct function I want to count the number of time that
the data is less than 1 and at the end of the month. Here is what I
have:

=SUMPRODUCT((--($K$3:$K$151=EOMONTH($K$3,1)))*--($A$3:$A$151<1))


I am stuck on the eomonth part..can anyone help?

Many thanks.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default sumproduct to count two arguments

Try this:

Just a hunch that this is what you're trying to do:

=SUMPRODUCT(--(K$3:K$151=DATE(YEAR(K$3:K$151),MONTH(K$3:K$151)+1 ,0)),--(A$3:A$151<1))

You want to count based on *EVERY* EOM date?

Biff

wrote in message
ps.com...
Gentlemen,

Thanks a ton for the responses. Though neither of them worked out the
way I wanted. The result is supposed to be six and I got 1. There
aren't any empty cells in either of the ranges. I'm thinking that I
may have an issue with date formatting..should it be in serial format?
I have been working on this problem for a few days now, asked numerous
people and I'm beginning think it is impossible.

Does anyone want to take a look at the workbook?



Biff wrote:
You're use of EOM is evaluating to the NEXT month:

K3 = 1/1/2006

EOMONTH(K3,1) = 2/28/2006

Maybe you want something like this:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<1))

Note that Sumproduct will evaluate EMPTY cells as 0 and this could cause
a
problem with your second array: ($A$3:$A$151<1).

So, you may want to add another array to the formula to test for that:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<""),--($A$3:$A$151<1))

Biff

wrote in message
oups.com...
I have an excel test so please bear with me that what I am asking for
may not be the best way to do this. Here is what I have been asked to
do.

I have daily dates from the beginning of this year to now and
corresponding data.

Using the sumproduct function I want to count the number of time that
the data is less than 1 and at the end of the month. Here is what I
have:

=SUMPRODUCT((--($K$3:$K$151=EOMONTH($K$3,1)))*--($A$3:$A$151<1))


I am stuck on the eomonth part..can anyone help?

Many thanks.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default sumproduct to count two arguments

Has anyone every called you genius? If not, let me be the first.
Thanks a ton!


Biff wrote:
Try this:

Just a hunch that this is what you're trying to do:

=SUMPRODUCT(--(K$3:K$151=DATE(YEAR(K$3:K$151),MONTH(K$3:K$151)+1 ,0)),--(A$3:A$151<1))

You want to count based on *EVERY* EOM date?

Biff

wrote in message
ps.com...
Gentlemen,

Thanks a ton for the responses. Though neither of them worked out the
way I wanted. The result is supposed to be six and I got 1. There
aren't any empty cells in either of the ranges. I'm thinking that I
may have an issue with date formatting..should it be in serial format?
I have been working on this problem for a few days now, asked numerous
people and I'm beginning think it is impossible.

Does anyone want to take a look at the workbook?



Biff wrote:
You're use of EOM is evaluating to the NEXT month:

K3 = 1/1/2006

EOMONTH(K3,1) = 2/28/2006

Maybe you want something like this:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<1))

Note that Sumproduct will evaluate EMPTY cells as 0 and this could cause
a
problem with your second array: ($A$3:$A$151<1).

So, you may want to add another array to the formula to test for that:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<""),--($A$3:$A$151<1))

Biff

wrote in message
oups.com...
I have an excel test so please bear with me that what I am asking for
may not be the best way to do this. Here is what I have been asked to
do.

I have daily dates from the beginning of this year to now and
corresponding data.

Using the sumproduct function I want to count the number of time that
the data is less than 1 and at the end of the month. Here is what I
have:

=SUMPRODUCT((--($K$3:$K$151=EOMONTH($K$3,1)))*--($A$3:$A$151<1))


I am stuck on the eomonth part..can anyone help?

Many thanks.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default sumproduct to count two arguments

You're welcome. Thanks for the feedback!

Biff

wrote in message
ups.com...
Has anyone every called you genius? If not, let me be the first.
Thanks a ton!


Biff wrote:
Try this:

Just a hunch that this is what you're trying to do:

=SUMPRODUCT(--(K$3:K$151=DATE(YEAR(K$3:K$151),MONTH(K$3:K$151)+1 ,0)),--(A$3:A$151<1))

You want to count based on *EVERY* EOM date?

Biff

wrote in message
ps.com...
Gentlemen,

Thanks a ton for the responses. Though neither of them worked out the
way I wanted. The result is supposed to be six and I got 1. There
aren't any empty cells in either of the ranges. I'm thinking that I
may have an issue with date formatting..should it be in serial format?
I have been working on this problem for a few days now, asked numerous
people and I'm beginning think it is impossible.

Does anyone want to take a look at the workbook?



Biff wrote:
You're use of EOM is evaluating to the NEXT month:

K3 = 1/1/2006

EOMONTH(K3,1) = 2/28/2006

Maybe you want something like this:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<1))

Note that Sumproduct will evaluate EMPTY cells as 0 and this could
cause
a
problem with your second array: ($A$3:$A$151<1).

So, you may want to add another array to the formula to test for that:

=SUMPRODUCT(--($K$3:$K$151=EOMONTH($K$3,0)),--($A$3:$A$151<""),--($A$3:$A$151<1))

Biff

wrote in message
oups.com...
I have an excel test so please bear with me that what I am asking for
may not be the best way to do this. Here is what I have been asked
to
do.

I have daily dates from the beginning of this year to now and
corresponding data.

Using the sumproduct function I want to count the number of time
that
the data is less than 1 and at the end of the month. Here is what I
have:

=SUMPRODUCT((--($K$3:$K$151=EOMONTH($K$3,1)))*--($A$3:$A$151<1))


I am stuck on the eomonth part..can anyone help?

Many 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
Formula to count values in two columns JBurlage Excel Discussion (Misc queries) 6 August 31st 06 12:59 PM
Using sumproduct to count number by date JerryS Excel Worksheet Functions 2 June 6th 05 10:37 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM


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