SUMIFS in a 2-Dimensional Array, with 2 column conditions

dach_cowi

New Member
Joined
Mar 6, 2023
Messages
2
Office Version
  1. 365
Hi, i have this table (could not upload mini sheet) on multible sheets week is merged cells but here i have just wrote 1/2 in all cells
Week:
1111122222
useraabbccddeeaabbccddee
task 11423228469
task 23593274283
sum49116291261412

an other table in same workbook gives the names of all the sheets i want to summarize

eg.
project 1
project 2
project 3
project 4

Week12
aasum user "aa" across sheets "project 1';project 2;project 3;
project 4" for week 1
sum user "aa" across sheets "project 1';project 2;project 3;
project 4" for week 2
bbsum user "bb" across sheets "project 1';project 2;project 3;
project 4" for week 1
sum user "bb" across sheets "project 1';project 2;project 3;
project 4" for week 2

i have tried many things to get it to work, and i got it to work until i added week number including summarize across the sheets with =SUMPRODUCT(SUMIF(INDIRECT("'"&named_range&"'!range"),criteria,INDIRECT("'"&named_range&"'!sum_range")))

Kindly Daniel
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
The way I would do that is to concatenate the first two lines into a single line, you could do this in the same table if you have room, however you could do it on an entirely different sheet which could be hidden. Then a simple index match will give you the offset to do a straight sumif. then sum the sumifs for all the projects. If you have a lot projects I would then use VBA to write the formula, to ensure no errors. If you do it using vba to write formula you then rerun it if you add more projects
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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