Forum

Notifications
Clear all

Sumifs for multiple horizontal and vertical criteria

4 Posts
3 Users
0 Reactions
321 Views
(@mreevies)
Posts: 6
Active Member
Topic starter
 

Hi,

I am trying to use a sumifs formula to pull back data based on multiple column criteria and a single row criteria but my formula just returns #value. I have attached a sample of the workbook with my formula in the green cell.

I could use sumproduct which I can get to work, but some sheets have over 4000 rows and the number of cells with formulas takes ages to calculate and I understand sumifs are far more efficient in their use of memory resources.

Any help greatly appreciated.

Thanks

Martin

 
Posted : 29/05/2020 5:00 pm
(@debaser)
Posts: 836
Member Moderator
 

SUMIFS won't work for that, you will need SUMPRODUCT. It won't be that much less efficient assuming you only refer to the necessary ranges and not entire columns.

 
Posted : 30/05/2020 6:32 am
(@mreevies)
Posts: 6
Active Member
Topic starter
 

That explains why I couldn't get it to work.

Many thanks for taking the time to respond

 
Posted : 30/05/2020 12:41 pm
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Hello,

I know you already got a sufficient answer, just want to add that you can use an array formula with SUM to get what you want. More about array formulas here in this blog post.

If you have Excel 365 then you don't need to finish off the array formulas with Ctrl+Shift+Return any longer, but if you or someone else who is to use this file have an older version then you must press Ctrl+Shift+Return to get the array formula working. See attached file for examples.

Br,
Anders

 
Posted : 01/06/2020 4:07 am
Share: