Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default SUMPRODUCT help with dates

I've got a list of dates dd/mm/yyyy in column A and a list of the numbers in
column B which is related to the number of occurrences of something on each
date listed. There are some gaps in the dates ie. it is not a continuous
calendar list.

What I need to do is count the total number of occurrences in April 2010 for
example. I've tried using SUMPRODUCT but I'm stuck! I've managed to count the
number of times a date in April 2010 is listed but not the sum of number of
occurrences in April 2010 from the column B? Hopefully that is semi-clear?!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default SUMPRODUCT help with dates

Try this€¦

=SUMPRODUCT((A1:A100=DATE(2010,4,1))*(A1:A100<=DA TE(2010,4,30)),(B1:B100))

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"steve_m" wrote:

I've got a list of dates dd/mm/yyyy in column A and a list of the numbers in
column B which is related to the number of occurrences of something on each
date listed. There are some gaps in the dates ie. it is not a continuous
calendar list.

What I need to do is count the total number of occurrences in April 2010 for
example. I've tried using SUMPRODUCT but I'm stuck! I've managed to count the
number of times a date in April 2010 is listed but not the sum of number of
occurrences in April 2010 from the column B? Hopefully that is semi-clear?!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default SUMPRODUCT help with dates

Try SUMPRODUCT() with TEXT()

=SUMPRODUCT((TEXT(A1:A100,"mmmyyyy")="Apr2010")*B1 :B100)

--
Jacob (MVP - Excel)


"steve_m" wrote:

I've got a list of dates dd/mm/yyyy in column A and a list of the numbers in
column B which is related to the number of occurrences of something on each
date listed. There are some gaps in the dates ie. it is not a continuous
calendar list.

What I need to do is count the total number of occurrences in April 2010 for
example. I've tried using SUMPRODUCT but I'm stuck! I've managed to count the
number of times a date in April 2010 is listed but not the sum of number of
occurrences in April 2010 from the column B? Hopefully that is semi-clear?!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default SUMPRODUCT help with dates

Thanks, that does the job! How could I modify this to only sum items in
column B if both the month in column A matches *and* a boolean value in
column C is true?

"Jacob Skaria" wrote:

Try SUMPRODUCT() with TEXT()

=SUMPRODUCT((TEXT(A1:A100,"mmmyyyy")="Apr2010")*B1 :B100)

--
Jacob (MVP - Excel)


"steve_m" wrote:

I've got a list of dates dd/mm/yyyy in column A and a list of the numbers in
column B which is related to the number of occurrences of something on each
date listed. There are some gaps in the dates ie. it is not a continuous
calendar list.

What I need to do is count the total number of occurrences in April 2010 for
example. I've tried using SUMPRODUCT but I'm stuck! I've managed to count the
number of times a date in April 2010 is listed but not the sum of number of
occurrences in April 2010 from the column B? Hopefully that is semi-clear?!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default SUMPRODUCT help with dates

Just add it as another condition. Assuming column C really has True/False
values in it, use:
=SUMPRODUCT((TEXT(A1:A100,"mmmyyyy")="Apr2010")*B1 :B100*C1:C100)

Regards,
Fred

"steve_m" wrote in message
...
Thanks, that does the job! How could I modify this to only sum items in
column B if both the month in column A matches *and* a boolean value in
column C is true?

"Jacob Skaria" wrote:

Try SUMPRODUCT() with TEXT()

=SUMPRODUCT((TEXT(A1:A100,"mmmyyyy")="Apr2010")*B1 :B100)

--
Jacob (MVP - Excel)


"steve_m" wrote:

I've got a list of dates dd/mm/yyyy in column A and a list of the
numbers in
column B which is related to the number of occurrences of something on
each
date listed. There are some gaps in the dates ie. it is not a
continuous
calendar list.

What I need to do is count the total number of occurrences in April
2010 for
example. I've tried using SUMPRODUCT but I'm stuck! I've managed to
count the
number of times a date in April 2010 is listed but not the sum of
number of
occurrences in April 2010 from the column B? Hopefully that is
semi-clear?!!


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 & dates [email protected] Excel Worksheet Functions 3 October 24th 07 03:03 AM
Sumproduct and dates Lee New Users to Excel 5 July 22nd 07 01:54 PM
SUMPRODUCT and Dates Joe Gieder Excel Worksheet Functions 2 June 6th 07 05:21 PM
sumproduct between two dates chased Excel Worksheet Functions 4 July 8th 05 05:24 PM
sumproduct between dates Dominique Feteau Excel Worksheet Functions 8 December 5th 04 09:56 PM


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