SUMIF formula with multiple criteria.

whitaker

New Member
Joined
Mar 7, 2009
Messages
17
:confused:My workbook contains two sheets. Sheet 1 is like a checkbook register. Sheet 2 is an expense summary . I need to summaries expenses by the person and by the date range or period. My header row on Sheet 1 is Row 7. Column C contains the “Date”. Column F contains the “Activity” ($ amount). Column J contains initials of the “Responsible Party”, ie “T W”. Question: From 03/01/2010 To 03/18/2010, what is the sum of “TW” expenses? And so on for each specific period. Summaries on Sheet 2. Enter query Date Range is Column A and B on Row 4.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try like this

=SUMPRODUCT(--(Sheet1!C8:C100>="03/01/2010"+0),--(Sheet1!C8:C100<="03/18/2010"+0),--(Sheet1!J8:J100="TW"),Sheet1!F8:F100)
 
Upvote 0
:confused:My workbook contains two sheets. Sheet 1 is like a checkbook register. Sheet 2 is an expense summary . I need to summaries expenses by the person and by the date range or period. My header row on Sheet 1 is Row 7. Column C contains the “Date”. Column F contains the “Activity” ($ amount). Column J contains initials of the “Responsible Party”, ie “T W”. Question: From 03/01/2010 To 03/18/2010, what is the sum of “TW” expenses? And so on for each specific period. Summaries on Sheet 2. Enter query Date Range is Column A and B on Row 4.
What version of Excel are you using?
 
Upvote 0
I'm using Office 2007.
VoG's formula will work in any version of Excel but since you're using Excel 2007 you can use the SUMIFS function.

I'd use cells to hold all the criteria:
  • A1 = lower date boundary = 3/1/2010
  • B1 = upper date boundary = 3/18/2010
  • C1 = TW
Then:

=SUMIFS(Sheet1!F8:F100,Sheet1!C8:C100,">="&A1,Sheet1!C8:C100,"<="&B1,Sheet1!J8:J100,C1)
 
Upvote 0
I saw that "SUMIFS" function but was unsuccessful in using it. I'll try your suggestion too. Thank you so much for the response.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top