SUMPRODUCT(SUMIF(INDIRECT Formula not working

Kclynn

Board Regular
Can anyone tell me why the formula in column C on the summary tab does not work? I am adding the summary sheet and one of 4 of the worksheets.
PickKitVer1.xlsm
ABC
1FruitSum of Sales in all regions (Manually type the worksheet name)Sum of Sales in all regions (Using Ref Sheet)
2Panel Build2#N/A
3664X33D11#N/A
4GLS-142075-AS10#N/A
5LC-16474310#N/A
6C/146132/MC/2011#N/A
7M/50/LSU/CP7#N/A
8Enclosure #18#N/A
9Enclosure #28#N/A
10Enclosure #35#N/A
11FEN20-16DXP
12RSM RKM 461-3M/S3059
Summary
Cell Formulas
RangeFormula
B2:B10B2=SUMPRODUCT(SUMIF(INDIRECT("'"&{"KIT0041","KIT0042","KIT0001"}&"'!\$B\$10:\$B\$37"),A2,INDIRECT("'"&{"KIT0041","KIT0042","KIT0001"}&"'!\$D\$10:\$D\$37")))
C2:C10C2=SUMPRODUCT(SUMIF(INDIRECT("'"&RefSheet!\$B\$3:\$B\$7&"'!\$A\$2:\$A\$10"),A2,INDIRECT("'"&RefSheet!\$B\$3:\$B\$9&"'!\$D\$2:\$D\$10")))

Excel Facts

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Fluff

MrExcel MVP, Moderator
One possibility is, your range on the RefSheet varies.

Kclynn

Board Regular
I did change that now the N/A just show as #REF!

Fluff

MrExcel MVP, Moderator

Are both formulae meant to be doing the same thing?

Yes

Kclynn

Board Regular

Also if I take the formula showing the individual tab names and try to change it to a range that didn't work for me either. I have been trying most of the week to get this working and I am just frustrated.

steve the fish

Well-known Member
For sure you will get na error if the sheet name ranges are not the same size. You will get a ref error if none exist.

steve the fish

Well-known Member
Actually that shouldnt say none it should say any of them dont exist or any of the cells are blank.

Kclynn

Board Regular
I don't see anything in the formula that does not exist.

Replies
1
Views
255
Replies
5
Views
183
Replies
0
Views
251
Replies
4
Views
199
Replies
6
Views
482

1,130,317
Messages
5,641,491
Members
417,212
Latest member
rsturbox

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.

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

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