Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

calculating by month

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jake - 30 Mar 2008 17:18 GMT
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.
Signature

Jake
--
Jake

Bob Phillips - 30 Mar 2008 17:40 GMT
=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

Signature

---
HTH

Bob

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

> Hello,
>
[quoted text clipped - 7 lines]
> 07) so I will know how many items sold in a given month and year. Many
> thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.