Forum Discussion
Sumifs or other solution for both vertical & horizontal criteria
Thanks M for your explanation. I realised, I missed to explain, that the data is currently in the matrix and I want it in the following structure, but summed up, since currently (also in the matrix, there is double mentioning of names and dates possible (for the latter I hence also have the "plan"):
Jun 25 Jul 25 ......
Name 1
Name 2
Name 3
I'm sorry but I don't understand what else you need. Both Oliver and I provided solutions in the format where it summed the values for each combination. maybe provide a sample sheet of data and show how it should be summed/tabulated. if you can post here you can share it via cloud service like onedrive or google
- SergeiBaklanJul 07, 2025Diamond Contributor
Perhaps source data looks like
and expected answer
isn't it?
- m_tarlerJul 07, 2025Bronze Contributor
well maybe? I have attached your example data tables with an 'unpivot' and then repivot formulas:
- djclementsJul 08, 2025Silver Contributor
GROUPBY on both axes is also a potential option here:
=LET( Nz, LAMBDA(x,IF(ISBLANK(x),"",x)), y, TRANSPOSE(VSTACK(Nz(A3:F3),GROUPBY(Nz(A4:A8),B4:F8,SUM,3,0))), TRANSPOSE(GROUPBY(TAKE(y,,2),DROP(y,,2),SUM,3,0)) )