Get sumproduct of a range defined dynamically

Cferron

New Member
Joined
May 20, 2011
Messages
44
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
I'd like to return a sumproduct of a ranged that can be dynamically modified.
I want to get the sum of a area based on the user, date min and date max criteria.

In this example result would be 5 since a sum of H3 to H6 would be made based on the criterias.
See spreadsheet.

How can this be acheived?


Analyse-rendement-V5-demiheure.xlsx
ABCDEFGHIJKLMNOPQR
1User1User2User3User4User5User6User7User8User9User10
2Période-SemMin. de DateMax. de Date2Name 1Name 2Name 3Name 4Name 5Name 6Name 7Name 8Name 9Name 10Total
3P12-S12024-01-282024-02-030
4P12-S22024-02-042024-02-101441322Dynamic input
5P12-S32024-02-112024-02-170Date 12024-01-28(min date column B)
6P12-S42024-02-182024-02-241113Date 22024-02-24(max date column C)
7P13-S12024-02-252024-03-0233User:User5Line 1
8P13-S22024-03-032024-03-0914
9P13-S32024-03-102024-03-1644
10P13-S42024-03-172024-03-231
Stats Erreurs
Cell Formulas
RangeFormula
N3:N6N3=SUM(D3:M3)
Q5Q5=MIN('Analyse Transactions'!C:C)
Q6Q6=MAX('Analyse Transactions'!C:C)
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
How about
Excel Formula:
=SUMPRODUCT((D1:M1=Q7)*(B3:B10>=Q5)*(C3:C10<=Q6)*(D3:M10))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,123,009
Members
449,093
Latest member
ikke

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