#value error SUMIFS formula across multiple sheets

beerrunner

New Member
Joined
Jun 21, 2017
Messages
3
Hi there,

I get a #value! error in my formula and have no clue about the reason. I work on an iMac with Excel 2007.

The file contains brewing reports and packaging reports. My goal is to have an overview of the duty I have to pay each month to our Customs Service. We are a craftbeer brewery in Holland. We pay duty accordingly to a system were beers are categorized. We have 4 categories, S (strong), 1,2 and 3 (lightest)

I'm not allowed to attache a simplified file to illustrate the problem, but I can mail it to anyone who's interested in solving this problem. I highlighted the cell that contains the formula on the first sheet. Be ware, there's some Dutch in there...


The formula looks lik this:

{=SUMPRODUCT(SUMIFS(INDIRECT("'"&$J$3:$J6&"'!$D$55:$ZZ$55");INDIRECT("'"&$J$3:$J6&"'!$D$51:$ZZ$51"); C3;INDIRECT("'"&$J$3:$J6&"'!$E$84:$ZZ$84");K3))}

$J$3:$J$6 is the table of sheetnames > jan-apr
$D$55:$ZZ$55 is the sum_range > amount of packaged liters beer
$D$51:$ZZ$51 is criteria_range1 > the duty category: S, 1, 2 of 3
C3 is de criteria1 > in this case the duty category S (not noted as "S" in the formula, but as reference to a cell containing this value.
$E$84:$ZZ$84 is criateria_range2 > this cel converts the packaging date (E43) to the name of the month > =TEXT(E43;"mmmm") )
K3 is the reference to the cell containing the month. In this case May

When I leave the second criteria, there's no problem Could it be that the formula to convert the date into the month has a TEXT output and therefor the formula can't read it?

Thank you very much!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the forum.

Your ranges are different sizes - columns D:ZZ for the first two ranges and E:ZZ for the third.
 
Last edited:
Upvote 0
You cant have different length ranges. So you cant use D:ZZ then use E:ZZ.
 
Upvote 0

Forum statistics

Threads
1,225,139
Messages
6,183,092
Members
453,147
Latest member
Bree2019

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