Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 83
Default calculating by month

Hello,

I was trying to use sumproduct to calculate if column a was a date and
column b was item and column c was a dollar amount so I would know how many
items sold during a specific month and year. It works to calculate the exact
date (7/2/2007 or 7/4/06) but I want it to calculate by month (i.e. all july
07) so I will know how many items sold in a given month and year. Many
thanks.
--
Jake
--
Jake
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default calculating by month

=SUMPRODUCT(--(YEAR(A2:A200)=2007),--(MONTH(A2:A200)=7),--(B2:B200="item"))

for the count, and

=SUMPRODUCT(--(YEAR(A2:A200)=2007),--(MONTH(A2:A200)=7),--(B2:B200="item"),C2:C200)

for the amount

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jake" wrote in message
...
Hello,

I was trying to use sumproduct to calculate if column a was a date and
column b was item and column c was a dollar amount so I would know how
many
items sold during a specific month and year. It works to calculate the
exact
date (7/2/2007 or 7/4/06) but I want it to calculate by month (i.e. all
july
07) so I will know how many items sold in a given month and year. Many
thanks.
--
Jake
--
Jake



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
Calculating Time by Month Steve Excel Discussion (Misc queries) 1 July 9th 07 03:02 PM
Need a formulea for calculating a month drizzy Excel Discussion (Misc queries) 3 April 30th 07 07:26 AM
Calculating Month Name RestlessAde Excel Discussion (Misc queries) 2 August 1st 05 10:10 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM
Calculating days in a month STFC Excel Discussion (Misc queries) 23 January 26th 05 05:58 PM


All times are GMT +1. The time now is 07:52 PM.

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"