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 / May 2008

Tip: Looking for answers? Try searching our database.

Multiple Criteria for SUMIF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Duncan - 22 May 2008 15:50 GMT
Hello,
I'm having issues trying to sum data using more than a single criteria.
My layout is as such;
Col.A = Date
Col.B = Type
Col.C = Note
Col.D = Value

I am trying to sum all the Values within a single month (Jan, Feb, etc) of a
single type (Rent, Misc, Ent, etc).

I would also like to query the last 90 days (NOW()-90) for each Type.

What would be a good formula for these?

Thanks in advance.
Signature

<Insert witty comment here>

Don Guillett - 22 May 2008 16:06 GMT
=sumproduct((month(a2:a22)=1)*(b2:b22="whattype")*d2:d22)
Signature

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

> Hello,
> I'm having issues trying to sum data using more than a single criteria.
[quoted text clipped - 13 lines]
>
> Thanks in advance.
Duncan - 22 May 2008 16:36 GMT
Thank you very much.
I knew it would be something simple I was overlooking.
Signature

<Insert witty comment here>

> =sumproduct((month(a2:a22)=1)*(b2:b22="whattype")*d2:d22)
> > Hello,
[quoted text clipped - 14 lines]
> >
> > Thanks in advance.
Don Guillett - 22 May 2008 23:41 GMT
Glad to help

Signature

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

> Thank you very much.
> I knew it would be something simple I was overlooking.
[quoted text clipped - 18 lines]
>> >
>> > Thanks in advance.
Bernie Deitrick - 22 May 2008 16:12 GMT
A Pivot Table would be best for your summing all Values within different categories.  You could also
use the pivot table for the last 90 days, by using a column of formulas in your table based on the
date values:

=A2>(TODAY()-90)

and then using that column as one of the Row Fields in your Pivot table.

If you do not want to use a pivot table, then you could use SUMPRODUCT, but at the cost of
convenience, since you would need to write a formula for each, or set up a table of formulas with
headers and row labels (which is exactly what a pivot table handles so very well):

=SUMPRODUCT((MONTH(Dates)=2)*(Type="Rent")*Value)

HTH,
Bernie
MS Excel MVP

> Hello,
> I'm having issues trying to sum data using more than a single criteria.
[quoted text clipped - 12 lines]
>
> Thanks in advance.
Bernard Liengme - 22 May 2008 16:13 GMT
Assuming you do not have Excel 2007:
=SUMPROUDCT(--(MONTH(A1:A1000)=1),--(B1:B1000="Rent"), D1:D1000)
gives sum of rent in January
=SUMPROUDCT(--(A1:A1000>TODAY()-90),--(B1:B1000="Rent"), D1:D1000)
should give last 90 days (might be 89 or 91 but you need to test)

And then there are Pivot Tables.....
best wishes
Signature

Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

> Hello,
> I'm having issues trying to sum data using more than a single criteria.
[quoted text clipped - 13 lines]
>
> Thanks in advance.
 
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.