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 / New Users / July 2007

Tip: Looking for answers? Try searching our database.

subtotals

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kanstrup - 11 Jul 2007 16:04 GMT
Hello,
I have a list of dollar amounts corresponding with days in the months.  I am
trying to create a subtotal for each month and not each day of the month.  
When I do subtotal I get a subtotal for each day of the month.  How do I get
a total just for the month?

Thanks,
Chris
Don Guillett - 11 Jul 2007 16:28 GMT
try this for the month (if dates in col a) and data to sum in col b

=sumproduct((month(a2:a200)=3)*b2:b22)
to add another variable
=sumproduct((month(a2:a200)=3)*(b2:b22="joe")*c2:c22)

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Hello,
> I have a list of dollar amounts corresponding with days in the months.  I
[quoted text clipped - 6 lines]
> Thanks,
> Chris
Don Guillett - 11 Jul 2007 17:25 GMT
BTW. You do NOT need to filter to use sumproduct.

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> try this for the month (if dates in col a) and data to sum in col b
>
[quoted text clipped - 12 lines]
>> Thanks,
>> Chris
Max - 12 Jul 2007 00:28 GMT
Typo:
> =sumproduct((month(a2:a200)=3)*b2:b22)

Think it was meant as:
=SUMPRODUCT((MONTH(A2:A200)=3)*B2:B200)

Ranges have to be identically sized
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

Don Guillett - 12 Jul 2007 13:33 GMT
Thanks for the catch

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Typo:
>> =sumproduct((month(a2:a200)=3)*b2:b22)
[quoted text clipped - 3 lines]
>
> Ranges have to be identically sized
Bob Phillips - 12 Jul 2007 11:07 GMT
Alternative.

Add a column to get the month (=MONTH(A2) for instance), and subtotal by
that column.

Signature

---
HTH

Bob

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

> Hello,
> I have a list of dollar amounts corresponding with days in the months.  I
[quoted text clipped - 6 lines]
> Thanks,
> Chris
 
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.