Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default sumproduct for month and year

Hi,

I am trying use sumproduct to add totals for a month when the criteria or
date column is in the date format mm/dd/yyyy.

For example the month column could have the following dates

06/04/2006
06/17/2006
06/21/2006
07/12/2006
07/18/2006
08/16/2006
08/24/2006
08/31/2006

I need to get the totals for the month 06/2006, 07/2006, and 08/2006

Thanks for your help.
--
Benjamin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default sumproduct for month and year

=sumproduct(--text(a1:a100,"yyyymm")="200606"),b1:b100)

Adjust the range, but don't use the whole column.



Benjamin wrote:

Hi,

I am trying use sumproduct to add totals for a month when the criteria or
date column is in the date format mm/dd/yyyy.

For example the month column could have the following dates

06/04/2006
06/17/2006
06/21/2006
07/12/2006
07/18/2006
08/16/2006
08/24/2006
08/31/2006

I need to get the totals for the month 06/2006, 07/2006, and 08/2006

Thanks for your help.
--
Benjamin


--

Dave Peterson
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 in a given year Bumblebee Excel Worksheet Functions 8 August 19th 06 06:59 PM
Vacation Time calculation... HELP! brubru Excel Discussion (Misc queries) 1 July 22nd 06 10:10 PM
Lookup returns wrong value motorjobs Excel Worksheet Functions 5 June 21st 06 11:49 PM
holiday dates bucci Excel Worksheet Functions 4 June 15th 06 09:35 AM
How do I get Excel to automatically calculate salaries actually received in financial year? Kei Excel Discussion (Misc queries) 0 March 3rd 06 10:26 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"