SumProduct and Sumif formula with two Named Ranges not working.

excelisagony

New Member
Joined
Sep 23, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I'm at my wits end.

The following formula works perfectly:

=SUMPRODUCT((SUMIFS(E:E,C:C,DEVELOPMENT,B:B,"1660-Company")))

However, if I add a second named range it gives me an incorrect value:

=SUMPRODUCT((SUMIFS(E:E,C:C,DEVELOPMENT, D:D, TOTALEMPCOMP, B:B,"1660-Company")))

Any thoughts on what I am doing incorrectly?

Thank you, Excel Experts!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You formula seems perfect to me.

Can you post a small sample using XL2BB tool so that we can have a look at your data and find out what is wrong with it?
 
Upvote 0
If both DEVELOPMENT and TOTALEMPCOMP are vertical (or horizontal) named ranges the formula doesn't work properly. One should be horizontal and the other vertical.

See if this works
=SUMPRODUCT(SUMIFS(E:E,C:C,DEVELOPMENT,D:D,TRANSPOSE(TOTALEMPCOMP),B:B,"1660-Company"))
confirmed with Control+Shift+Enter

M.
 
Upvote 0

Forum statistics

Threads
1,215,503
Messages
6,125,175
Members
449,212
Latest member
kenmaldonado

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