Sum values based on 3 different criteria from database (SUMIF, MATCH, etc.)

gintonic

New Member
Joined
Oct 9, 2014
Messages
3
Hello everyone,

I've posted this on this older thread but maybe it has low visibility. I'm having a similar problem to that user, the only difference is that I have an extra criterion (date values) to be considered. I've tried variations of the solution presented in that post, unsuccessfully.


Could you please help me out?


- There's an example spreadsheet here
- What I need is the result of what is in G7:P10
- G1:I3 has the result of Domenic's formula from the above mentioned post


Note: I don't know much about queries, but for what I've seen so far, I'm trying to avoid query-based solutions because they don't seem to be 'dynamic', i.e. I need the cells to update correctly if I change columns, rows and/or dates (especially the latter).


Thanks in advance! Greets from Lisboa.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try this in I8:
Code:
=SUMIFS(INDEX($C$2:$E$17,0,MATCH($H8,$C$1:$E$1,0)),$B$2:$B$17,$G8,$A$2:$A$17,">="&I$7,$A$2:$A$17,"<"&J$7)

You will have to add a date on Q7 or it will return all zeros for july.
 
Upvote 0
Try this in I8:
Code:
=SUMIFS(INDEX($C$2:$E$17,0,MATCH($H8,$C$1:$E$1,0)),$B$2:$B$17,$G8,$A$2:$A$17,">="&I$7,$A$2:$A$17,"<"&J$7)

You will have to add a date on Q7 or it will return all zeros for july.

Fantastic, thank you very much! Kudos to you.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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