Use a variable as a sum factor.

Holst

New Member
Joined
May 24, 2012
Messages
1
Hi Mr Excel
I run a small business, where I have a few employees.
I want to create a timesheet, where the weeks are divided into seperate sheets and in the end i have a aggregated sheet.
I need a formula that can aggregate all x, y and z seperately from the week into my aggregated sheet.

i will try to illustrate my problem below

Customer Monday Tuesday Wed .... Aggregated
1001 4 2 1 7
1002 3 2 3 8
1001 1 1 1 3


Aggregated for: 1001 = 10
1002 = 8
I need a formula to aggregate all 1001, 1002 etc..
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Maybe this way.
Excel Workbook
ABCDE
1CustomerMondayTuesdayWedAggregated
210014217
310023238
410011113
5
6
7
8100153210
910023238
Blad1
Cell Formulas
RangeFormula
B8=SUMPRODUCT(($A$2:$A$6=$A8)*(B$2:B$6))
B9=SUMPRODUCT(($A$2:$A$6=$A9)*(B$2:B$6))
C8=SUMPRODUCT(($A$2:$A$6=$A8)*(C$2:C$6))
C9=SUMPRODUCT(($A$2:$A$6=$A9)*(C$2:C$6))
D8=SUMPRODUCT(($A$2:$A$6=$A8)*(D$2:D$6))
D9=SUMPRODUCT(($A$2:$A$6=$A9)*(D$2:D$6))
E8=SUMPRODUCT(($A$2:$A$6=$A8)*(E$2:E$6))
E9=SUMPRODUCT(($A$2:$A$6=$A9)*(E$2:E$6))
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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