Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default SUMPRODUCT to find occurences within date range

I have the following formula:
=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3: $A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=DA TE(2009,4,3))))
I am using this formula in a rather large spreadsheet, A3:J48943, which is a
database logging daily activities of a Marketing Team. Column A contains date
values of the specific activity and Column C contains text values indicating
the activity type, i.e. Cold Calling, Client Visit, etc, etc.

I am trying to achieve the following: Counting the total number of
activities per week. Is my formula above correct? Somehow I doubt it because
when I run a COUNTA on Column C, I get a different value to the totals
reported per week using the above formula. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default SUMPRODUCT to find occurences within date range

Hi,

I can't see anything wrong with the formula so if your getting unexpected
results then maybe the dates are suspect, are they really dates or text that
looks like a date.

Mike

"WildWill" wrote:

I have the following formula:
=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3: $A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=DA TE(2009,4,3))))
I am using this formula in a rather large spreadsheet, A3:J48943, which is a
database logging daily activities of a Marketing Team. Column A contains date
values of the specific activity and Column C contains text values indicating
the activity type, i.e. Cold Calling, Client Visit, etc, etc.

I am trying to achieve the following: Counting the total number of
activities per week. Is my formula above correct? Somehow I doubt it because
when I run a COUNTA on Column C, I get a different value to the totals
reported per week using the above formula. Please help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default SUMPRODUCT to find occurences within date range

Hi Mike

This one has me puzzled - try as I may, I keep getting a difference between
my manual calculations and the results of the formula below. Any advice?

"Mike H" wrote:

Hi,

I can't see anything wrong with the formula so if your getting unexpected
results then maybe the dates are suspect, are they really dates or text that
looks like a date.

Mike

"WildWill" wrote:

I have the following formula:
=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3: $A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=DA TE(2009,4,3))))
I am using this formula in a rather large spreadsheet, A3:J48943, which is a
database logging daily activities of a Marketing Team. Column A contains date
values of the specific activity and Column C contains text values indicating
the activity type, i.e. Cold Calling, Client Visit, etc, etc.

I am trying to achieve the following: Counting the total number of
activities per week. Is my formula above correct? Somehow I doubt it because
when I run a COUNTA on Column C, I get a different value to the totals
reported per week using the above formula. Please help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default SUMPRODUCT to find occurences within date range

P.S. I forgot to add: when compared to manual calculations, the formula is
wrong.

"Mike H" wrote:

Hi,

I can't see anything wrong with the formula so if your getting unexpected
results then maybe the dates are suspect, are they really dates or text that
looks like a date.

Mike

"WildWill" wrote:

I have the following formula:
=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3: $A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=DA TE(2009,4,3))))
I am using this formula in a rather large spreadsheet, A3:J48943, which is a
database logging daily activities of a Marketing Team. Column A contains date
values of the specific activity and Column C contains text values indicating
the activity type, i.e. Cold Calling, Client Visit, etc, etc.

I am trying to achieve the following: Counting the total number of
activities per week. Is my formula above correct? Somehow I doubt it because
when I run a COUNTA on Column C, I get a different value to the totals
reported per week using the above formula. Please help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default SUMPRODUCT to find occurences within date range

Hi,

I still think the formula is fine and you have a data issue. In a spare
column enter

=isnumber(a3)

drag down and all should evaluate as TRUE and if they don't, your dates
aren't all dates and may be text.

Mike

"WildWill" wrote:

P.S. I forgot to add: when compared to manual calculations, the formula is
wrong.

"Mike H" wrote:

Hi,

I can't see anything wrong with the formula so if your getting unexpected
results then maybe the dates are suspect, are they really dates or text that
looks like a date.

Mike

"WildWill" wrote:

I have the following formula:
=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3: $A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=DA TE(2009,4,3))))
I am using this formula in a rather large spreadsheet, A3:J48943, which is a
database logging daily activities of a Marketing Team. Column A contains date
values of the specific activity and Column C contains text values indicating
the activity type, i.e. Cold Calling, Client Visit, etc, etc.

I am trying to achieve the following: Counting the total number of
activities per week. Is my formula above correct? Somehow I doubt it because
when I run a COUNTA on Column C, I get a different value to the totals
reported per week using the above formula. Please help.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default SUMPRODUCT to find occurences within date range

All came back "True" - can I not send you the database? (sorry if I am being
too forward - but this is an amazing situation to me)

"Mike H" wrote:

Hi,

I still think the formula is fine and you have a data issue. In a spare
column enter

=isnumber(a3)

drag down and all should evaluate as TRUE and if they don't, your dates
aren't all dates and may be text.

Mike

"WildWill" wrote:

P.S. I forgot to add: when compared to manual calculations, the formula is
wrong.

"Mike H" wrote:

Hi,

I can't see anything wrong with the formula so if your getting unexpected
results then maybe the dates are suspect, are they really dates or text that
looks like a date.

Mike

"WildWill" wrote:

I have the following formula:
=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3: $A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=DA TE(2009,4,3))))
I am using this formula in a rather large spreadsheet, A3:J48943, which is a
database logging daily activities of a Marketing Team. Column A contains date
values of the specific activity and Column C contains text values indicating
the activity type, i.e. Cold Calling, Client Visit, etc, etc.

I am trying to achieve the following: Counting the total number of
activities per week. Is my formula above correct? Somehow I doubt it because
when I run a COUNTA on Column C, I get a different value to the totals
reported per week using the above formula. Please help.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default SUMPRODUCT to find occurences within date range

You can upload it here and post the link

http://www.savefile.com/

Mike

"WildWill" wrote:

All came back "True" - can I not send you the database? (sorry if I am being
too forward - but this is an amazing situation to me)

"Mike H" wrote:

Hi,

I still think the formula is fine and you have a data issue. In a spare
column enter

=isnumber(a3)

drag down and all should evaluate as TRUE and if they don't, your dates
aren't all dates and may be text.

Mike

"WildWill" wrote:

P.S. I forgot to add: when compared to manual calculations, the formula is
wrong.

"Mike H" wrote:

Hi,

I can't see anything wrong with the formula so if your getting unexpected
results then maybe the dates are suspect, are they really dates or text that
looks like a date.

Mike

"WildWill" wrote:

I have the following formula:
=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3: $A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=DA TE(2009,4,3))))
I am using this formula in a rather large spreadsheet, A3:J48943, which is a
database logging daily activities of a Marketing Team. Column A contains date
values of the specific activity and Column C contains text values indicating
the activity type, i.e. Cold Calling, Client Visit, etc, etc.

I am trying to achieve the following: Counting the total number of
activities per week. Is my formula above correct? Somehow I doubt it because
when I run a COUNTA on Column C, I get a different value to the totals
reported per week using the above formula. Please help.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT to find occurences within date range

=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3 :$A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=D ATE(2009,4,3))))

You have a misplaced parenthesis.

Try it like this:

=SUMPRODUCT(--(Input!$C$3:$C$48943<""),--(Input!$A$3:$A$48943=DATE(2009,3,30)),--(Input!$A$3:$A$48943<=DATE(2009,4,3)))

Better to use cells to hold the date criteria:

A1 = 3/30/2009
B1 = 4/3/2009

=SUMPRODUCT(--(Input!$C$3:$C$48943<""),--(Input!$A$3:$A$48943=A1),--(Input!$A$3:$A$48943<=B1))


--
Biff
Microsoft Excel MVP


"WildWill" wrote in message
...
I have the following formula:
=SUMPRODUCT((Input!$C$3:$C$48943<"")*(Input!$A$3: $A$48943=DATE(2009,3,30)*(Input!$A$3:$A$48943<=DA TE(2009,4,3))))
I am using this formula in a rather large spreadsheet, A3:J48943, which is
a
database logging daily activities of a Marketing Team. Column A contains
date
values of the specific activity and Column C contains text values
indicating
the activity type, i.e. Cold Calling, Client Visit, etc, etc.

I am trying to achieve the following: Counting the total number of
activities per week. Is my formula above correct? Somehow I doubt it
because
when I run a COUNTA on Column C, I get a different value to the totals
reported per week using the above formula. Please help.



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 to calculate unique occurences of string in column of d WildWill Excel Discussion (Misc queries) 3 April 3rd 09 03:16 PM
SUMPRODUCT: Help to use this to find min date in range for criter Gwynneth Excel Discussion (Misc queries) 13 November 16th 07 06:40 PM
Sumproduct with date range ermeko Excel Worksheet Functions 6 August 16th 06 05:17 PM
Sumproduct Will Not Find Date andyp161 Excel Worksheet Functions 2 January 29th 06 10:41 AM
How do I count occurences in a date range? Jeremy Excel Worksheet Functions 2 July 8th 05 11:21 PM


All times are GMT +1. The time now is 02:16 AM.

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"