Sumproduct help

MikeGazzy

New Member
Joined
Jul 8, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
I have a report that references an external workbook and utilizes sumifs statements so some of my users are getting #VALUE errors when the source workbooks aren't open. I would like to utilize sumproduct instead since I have read that it will fix this issue but I don't have any experience with it and am running into some issues trying to convert my formula. Here is the original sumifs statement I would like to convert:
=SUM(SUMIFS([Source]Sheet!'!$I$1:$I$65536,[Source]Sheet!'!$C$1:$C$65536,101,[Source]Sheet!'!$J$1:$J$65536,{"Breakage","Cycle Count","Manager Cycle Count"}, [Source]Sheet!'! $L$1:$L$65536,$A3))
I think my main issue is converting the array formula section of my original statement but it could be something else I am missing? Thanks in advance for any help.

Thanks,

Mike
 

Some videos you may like

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
884
Office Version
  1. 365
Platform
  1. Windows
May be like this
SUMPRODUCT([Source]Sheet!'!$I$1:$I$65536,[Source]Sheet!'!$C$1:$C$65536=101,[Source]Sheet!'!$J$1:$J$65536={"Breakage","Cycle Count","Manager Cycle Count"},[Source]Sheet!'! $L$1:$L$65536=$A3)
 

MikeGazzy

New Member
Joined
Jul 8, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
Nope, that is basically more or less what I have been trying, I also tried expanding the array formula out into 3 different statements with a + in between them but that didn't work.
 

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
884
Office Version
  1. 365
Platform
  1. Windows
please post a sample data using xl2bb.
 

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
884
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Sorry I missed

[Source]Sheet!'!$J$1:$J$65536={"Breakage","Cycle Count","Manager Cycle Count"} will give an error,

use this instead
ISNUMBER(MATCH(C3:C51,{"chicken";"Egg"},0)) and try
 

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
884
Office Version
  1. 365
Platform
  1. Windows
SUMPRODUCT([Source]Sheet!'!$I$1:$I$65536,--([Source]Sheet!'!$C$1:$C$65536=101),--(ISNUMBER(MATCH([Source]Sheet!'!$J$1:$J$65536,"}, {"Breakage";"Cycle Count";"Manager Cycle Count"} 0)) ,--([Source]Sheet!'! $L$1:$L$65536=$A3))
 

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
884
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Sorry I missed

[Source]Sheet!'!$J$1:$J$65536={"Breakage","Cycle Count","Manager Cycle Count"} will give an error,

use this instead
ISNUMBER(MATCH(C3:C51,{"chicken";"Egg"},0)) and try
Ignore This
 

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,514
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I prepared a small example and the following works.
I show two views of the formula; one with the file open and one with the file closed.
K1:K3 has the 3 criteria like Breakage

=SUMPRODUCT(--([Source.xlsm]Sheet!$I$1:$I$20),--([Source.xlsm]Sheet!$C$1:$C$20=101),--(ISNUMBER(MATCH([Source.xlsm]Sheet!$J$1:$J$20,K1:K3,0))),--([Source.xlsm]Sheet!$L$1:$L$20=$A3))

with file closed
=SUMPRODUCT(--('D:\Excel14\[Source.xlsm]Sheet'!$I$1:$I$20),--('D:\Excel14\[Source.xlsm]Sheet'!$C$1:$C$20=101),--(ISNUMBER(MATCH('D:\Excel14\[Source.xlsm]Sheet'!$J$1:$J$20,K1:K3,0))),--('D:\Excel14\[Source.xlsm]Sheet'!$L$1:$L$20=$A3))
 

MikeGazzy

New Member
Joined
Jul 8, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
I prepared a small example and the following works.
I show two views of the formula; one with the file open and one with the file closed.
K1:K3 has the 3 criteria like Breakage

=SUMPRODUCT(--([Source.xlsm]Sheet!$I$1:$I$20),--([Source.xlsm]Sheet!$C$1:$C$20=101),--(ISNUMBER(MATCH([Source.xlsm]Sheet!$J$1:$J$20,K1:K3,0))),--([Source.xlsm]Sheet!$L$1:$L$20=$A3))

with file closed
=SUMPRODUCT(--('D:\Excel14\[Source.xlsm]Sheet'!$I$1:$I$20),--('D:\Excel14\[Source.xlsm]Sheet'!$C$1:$C$20=101),--(ISNUMBER(MATCH('D:\Excel14\[Source.xlsm]Sheet'!$J$1:$J$20,K1:K3,0))),--('D:\Excel14\[Source.xlsm]Sheet'!$L$1:$L$20=$A3))
Perfect, that got it to work. Thanks so much.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,889
Messages
5,574,846
Members
412,620
Latest member
sharma7s
Top