Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default Problem with a sumproduct

Dear,

I am struggling with a formula to count the number of mails received on a
particular day within a particular time slot. This data is copied from an
outlook and sorted according using a macro.

In sheet1 i have the raw data in column A to D as From, Subject, Date and
Time respectively. The date is in format 14-May and time in the format 15:00.
Now in the sheet2 in a cell I need a formula to calculate the number of mails
received on 20-Jun from 15:00 to 15:59 hours.

I am trying to use the below formula but is not identifying the date value
in column C and not giving the desired result.

=SUMPRODUCT((Raws!D2:D5000=--"15:00:00")*(Raws!D2:D5000<=--"15:59:59")*(Raws!C2:C5000="20-Jun"))

Please help me in correcting the above formula or suggest me another one to
get the desired result.

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Problem with a sumproduct

=COUNTIF(Raws!D2:D5000= DATEVALUE("6/20/2009 3:00 PM") -
COUNTIF(Raws!D2:D5000= DATEVALUE("6/20/2009 4:00 PM")

should be even easier

"Sasikiran" wrote:

Dear,

I am struggling with a formula to count the number of mails received on a
particular day within a particular time slot. This data is copied from an
outlook and sorted according using a macro.

In sheet1 i have the raw data in column A to D as From, Subject, Date and
Time respectively. The date is in format 14-May and time in the format 15:00.
Now in the sheet2 in a cell I need a formula to calculate the number of mails
received on 20-Jun from 15:00 to 15:59 hours.

I am trying to use the below formula but is not identifying the date value
in column C and not giving the desired result.

=SUMPRODUCT((Raws!D2:D5000=--"15:00:00")*(Raws!D2:D5000<=--"15:59:59")*(Raws!C2:C5000="20-Jun"))

Please help me in correcting the above formula or suggest me another one to
get the desired result.

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Problem with a sumproduct

=SUMPRODUCT((Raws!D2:D5000=--"15:00:00")*(Raws!D2:D5000<=--"15:59:59")*(Raws!C2:C5000="20-Jun"))

If the times are true Excel times and the dates are true Excel dates:

=SUMPRODUCT(--(HOUR(Raws!D2:D5000)=15),--(Raws!C2:C5000=DATE(2009,6,20)))

--
Biff
Microsoft Excel MVP


"Sasikiran" wrote in message
...
Dear,

I am struggling with a formula to count the number of mails received on a
particular day within a particular time slot. This data is copied from an
outlook and sorted according using a macro.

In sheet1 i have the raw data in column A to D as From, Subject, Date and
Time respectively. The date is in format 14-May and time in the format
15:00.
Now in the sheet2 in a cell I need a formula to calculate the number of
mails
received on 20-Jun from 15:00 to 15:59 hours.

I am trying to use the below formula but is not identifying the date value
in column C and not giving the desired result.

=SUMPRODUCT((Raws!D2:D5000=--"15:00:00")*(Raws!D2:D5000<=--"15:59:59")*(Raws!C2:C5000="20-Jun"))

Please help me in correcting the above formula or suggest me another one
to
get the desired result.

Thanks in advance.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default Problem with a sumproduct

Dear Valko,

The formula you've suggested isn't helping according to my need :(

=SUMPRODUCT(--(HOUR(Raws!D2:D5000)=15),--(Raws!C2:C5000=DATE(2009,6,20)))

"T. Valko" wrote:

=SUMPRODUCT((Raws!D2:D5000=--"15:00:00")*(Raws!D2:D5000<=--"15:59:59")*(Raws!C2:C5000="20-Jun"))


If the times are true Excel times and the dates are true Excel dates:

=SUMPRODUCT(--(HOUR(Raws!D2:D5000)=15),--(Raws!C2:C5000=DATE(2009,6,20)))

--
Biff
Microsoft Excel MVP


"Sasikiran" wrote in message
...
Dear,

I am struggling with a formula to count the number of mails received on a
particular day within a particular time slot. This data is copied from an
outlook and sorted according using a macro.

In sheet1 i have the raw data in column A to D as From, Subject, Date and
Time respectively. The date is in format 14-May and time in the format
15:00.
Now in the sheet2 in a cell I need a formula to calculate the number of
mails
received on 20-Jun from 15:00 to 15:59 hours.

I am trying to use the below formula but is not identifying the date value
in column C and not giving the desired result.

=SUMPRODUCT((Raws!D2:D5000=--"15:00:00")*(Raws!D2:D5000<=--"15:59:59")*(Raws!C2:C5000="20-Jun"))

Please help me in correcting the above formula or suggest me another one
to
get the desired result.

Thanks in advance.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Problem with a sumproduct

Oh well!

--
Biff
Microsoft Excel MVP


"Sasikiran" wrote in message
...
Dear Valko,

The formula you've suggested isn't helping according to my need :(

=SUMPRODUCT(--(HOUR(Raws!D2:D5000)=15),--(Raws!C2:C5000=DATE(2009,6,20)))

"T. Valko" wrote:

=SUMPRODUCT((Raws!D2:D5000=--"15:00:00")*(Raws!D2:D5000<=--"15:59:59")*(Raws!C2:C5000="20-Jun"))


If the times are true Excel times and the dates are true Excel dates:

=SUMPRODUCT(--(HOUR(Raws!D2:D5000)=15),--(Raws!C2:C5000=DATE(2009,6,20)))

--
Biff
Microsoft Excel MVP


"Sasikiran" wrote in message
...
Dear,

I am struggling with a formula to count the number of mails received on
a
particular day within a particular time slot. This data is copied from
an
outlook and sorted according using a macro.

In sheet1 i have the raw data in column A to D as From, Subject, Date
and
Time respectively. The date is in format 14-May and time in the format
15:00.
Now in the sheet2 in a cell I need a formula to calculate the number of
mails
received on 20-Jun from 15:00 to 15:59 hours.

I am trying to use the below formula but is not identifying the date
value
in column C and not giving the desired result.

=SUMPRODUCT((Raws!D2:D5000=--"15:00:00")*(Raws!D2:D5000<=--"15:59:59")*(Raws!C2:C5000="20-Jun"))

Please help me in correcting the above formula or suggest me another
one
to
get the desired result.

Thanks in advance.






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
SumProduct problem John Excel Worksheet Functions 5 February 23rd 09 01:52 AM
SUMPRODUCT problem juliejg1 Excel Worksheet Functions 4 January 30th 08 08:43 PM
SUMPRODUCT problem Joe M. Excel Discussion (Misc queries) 6 January 30th 08 04:44 PM
Sumproduct problem [email protected] Excel Worksheet Functions 1 January 4th 07 06:41 AM
Sumproduct Problem Andibevan Excel Worksheet Functions 4 August 17th 05 09:39 AM


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