SUMIFS using a named range with an address in a cell using INDIRECT

Peter Davison

Board Regular
Joined
Jun 4, 2020
Messages
183
Office Version
  1. 365
Platform
  1. Windows
I have a named range "PC" in a cell in workbook where the formula is going looking up the sum range and the criteria range in another workbook. I have the Criteria in Cell C17 of the workbook where the formula is. I have the formula below which returns the word VALUE and I cannot see why. I broke it up to see if each part was working and I think it all is.
Any help on what I am doing wrong would be really helpful.
Thanks

=SUMIFS(INDIRECT("'"&"["&"Breakfast Foods Combined Raw Data.xlsx"&"]"&"Performance Data'!"&$C$15),'[Breakfast Foods Combined Raw Data.xlsx]Performance Data'!$A$2:$A$100000,"="&C17)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

C Moore

Well-known Member
Joined
Jan 17, 2014
Messages
558
Office Version
  1. 365
Platform
  1. Windows
Your ranges have to be the same size. Sounds like PC (assuming its C15) is variable size but you hard coded $A$2:$A$100000.
 

C Moore

Well-known Member
Joined
Jan 17, 2014
Messages
558
Office Version
  1. 365
Platform
  1. Windows
Have you used Evaluate Formula on the formula tab to step through?
 

Peter Davison

Board Regular
Joined
Jun 4, 2020
Messages
183
Office Version
  1. 365
Platform
  1. Windows
Hi, yes I stepped through the formula and it just gets to the end and shows Value.
I've just made them all a named range and it looks like it is working okay now.
Thank you very much for your help.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,163
Messages
5,640,519
Members
417,150
Latest member
cdguinn

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
Top