Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Multiple Criteria for SUMIF

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.
--
<Insert witty comment here
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Multiple Criteria for SUMIF

Thank you very much.
I knew it would be something simple I was overlooking.
--
<Insert witty comment here


"Don Guillett" wrote:


=sumproduct((month(a2:a22)=1)*(b2:b22="whattype")* d2:d22)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Duncan" wrote in message
...
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.
--
<Insert witty comment here



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Multiple Criteria for SUMIF

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


"Duncan" wrote in message
...
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.
--
<Insert witty comment here





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Multiple Criteria for SUMIF

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:A1000TODAY()-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
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme



"Duncan" wrote in message
...
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.
--
<Insert witty comment here


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
SUMIF WITH MULTIPLE CRITERIA? kahuna Excel Worksheet Functions 5 October 2nd 07 06:05 PM
Sumif with multiple criteria tina Excel Discussion (Misc queries) 4 February 2nd 07 09:10 PM
Sumif with multiple criteria jn77 Excel Worksheet Functions 5 July 19th 06 09:52 PM
SUMIF With Multiple Criteria Mike Excel Worksheet Functions 1 November 2nd 05 11:08 PM
Sumif - multiple criteria Anat Excel Discussion (Misc queries) 1 July 14th 05 03:01 AM


All times are GMT +1. The time now is 01:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"