Can't handle named ranges in SUMIFS

dotsent

Board Regular
Joined
Feb 28, 2016
Messages
89
Office Version
  1. 365
Platform
  1. Windows
Hi!

I'd need some ideas in troubleshooting SUMIFS formula that returns #VALUE ! error
I have a named ranges (within a table) to check particular "Department" + named range to check particular "Cost_type" and summarize the match. So the formula looks something like:
Code:
=SUMIFS(Sums,Cost_type,"Telephone",Department,"Sales")

I have a table with close to 2000 rows, however just a handful match the SUMIFS criteria, so it shouldn't be the string limitation. Some weird behaviour:


1) If I swap the named ranges to actual ranges (e.g. B2:B2066 for sums etc), it will work - so I don't think it can be a string limitation

2) If I use the same named ranges in plain SUMIF formula, it will handle those ranges just fine, e.g:
Code:
=SUMIF(Department,"Sales",Sums)


Any idea what might be causing this? What could be wrong with my ranges? Tried to re-create them, but to no avail. Thanks!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Usually SUMIFS return a #VALUE ! error when the ranges do not have the same size.

To check the size of each range try in empty cells
=ROWS(Sums)
=ROWS(Cost_type)
=ROWS(Department)

M.
 
Last edited:
Upvote 0
I put in some fake data w/the same named ranges and it works ok. Can't replicate the error. Maybe the names are incorrectly entered?
 
Upvote 0
Had to expand and populate the table with data once more and that fixed it. Still not sure why SUMIF worked, but SUMIFS didn't but at least it is functional now. Thanks for all the contributions!
 
Upvote 0
Still not sure why SUMIF worked, but SUMIFS didn't but at least it is functional now
I am guessing maybe your ranges either were not all the same size, as Marcelo mentioned. That is a common cause of that particular error in a SUMIFS statement.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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