sumproductsumif

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Sumproduct/sumif

Sumproduct/sumif

resolvedResolved · Medium Priority · Version 2010

Raani has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Sumproduct/sumif

I'm trying to create a table which, from a data report, will sum the number of hours specific roles have worked on specific projects.
The issue I'm trying to get around is that some roles need to be added together into one cell and some projects are made up of multiple job codes which also need to be added together.

I initially named the range for the multiple job codes associated with the project. I then used the following formula to add the multiple roles and job
=SUMPRODUCT(MONTH!$I:$I,--ISNUMBER(MATCH(MONTH!$G:$G,{"Account Manager", "Architect"},0)),--ISNUMBER(MATCH(MONTH!$D:$D,JOB NAMED RANGE,0)))

This was fine for three months of data until I started the current month and I was getting an error message:
"Excel cannot complete this task with available resources. Choose less data or close other applications."

I then broke the links to the prior months so it would just do the formula for the current month but still got the same message and read on a forum that this could be due to the large data and volatility of SUMPRODUCT- is this correct?

Then, I tried to use a SUMPRODUCT(SUMIF) by naming the range of roles and job codes
=SUMPRODUCT(SUMIFS(APR!$I:$I,APR!$G:$G,Data roles,APR!$D:$D,ADMIN jobs))
However it's either returning nil values or not adding everything up and I'm not sure why as the data is consistent.

I hope this all makes sense...Any help would be very appreciated

Thanks

RE: Sumproduct/sumif

Hi Raani,

Thank you the forum question.

Is it possible to make an example file to show me what you want to do.

I can see that you refer to whole columns:(=SUMPRODUCT(MONTH!$I:$I,--ISNUMBER(MATCH(MONTH!$G:$G,{"Account Manager", "Architect"},0)),--ISNUMBER(MATCH(MONTH!$D:$D,JOB NAMED RANGE,0))) )

It will take a lot of memory to handle this.

Have you tried using dynamic tables (the format as table tool)? This will reduce have much memory you will need and also update your ranges if you add new records. If you want to test this you will need to change the functions to refer to the dynamic ranges instead of the whole columns.

If I get an example file I can have a look at it and try to help you.

Please forward it to:

info@stl-training.co.uk


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector


 

Excel tip:

Moving between split pane sections in a spreadsheet

If you have used the split panes feature in your worksheet, use the following keyboard shortcut keys to move quickly and effortlessly between paned sections:

F6 - Move to the next pane
Shift + F6 - Move to the previous pane

View all Excel hints and tips


Server loaded in 0.07 secs.