Index / Match with Sum

volkl77

Board Regular
Joined
Apr 5, 2008
Messages
76
Just wondering if there is any way that i can use sum with index/match to return the sum of values meeting multiple criteria? I have a sheet with a row of dates across the top, and a column of categories down the side as well as a separate summary sheet. I would like to have my summary sheet add the values for a category based on a specified range of dates. So, the total for category "X" for the dates April 4-10. Thanks!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
You could use something like this:
A1: Category
A2: StartDate
A3: EndDate
Code:
=SUMPRODUCT((date_range>=A2)*(date_range<=A3)*(category_range=A1)*values_range)


Does that help?
 
Upvote 0
Just wondering if there is any way that i can use sum with index/match to return the sum of values meeting multiple criteria? I have a sheet with a row of dates across the top, and a column of categories down the side as well as a separate summary sheet. I would like to have my summary sheet add the values for a category based on a specified range of dates. So, the total for category "X" for the dates April 4-10. Thanks!
Dates in the range B1:J1
Categories in the range A2:A4
Numeric data in the range B2:J4

Use cells to hold the sum criteria:
  • A10 = some category
  • B10 = lower date boundary
  • C10 = upper date boundary
Then:

=SUMPRODUCT((A2:A4=A10)*(B1:J1>=B10)*(B1:J1<=C10)*B2:J4)
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,702
Members
452,938
Latest member
babeneker

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