Formula help

ThatguyLFS

New Member
Joined
May 24, 2011
Messages
3
Hi,

I am having trouble trying to get my spreadsheet to update a formula when another workbook that it's linked to is closed. I was reading somewhere that the COUNTIF function won't work with a closed document but a SUMPRODUCT function would. I just don't know how to convert my current function to the sumproduct function.

Here is my current formula. I really appreciate any help on this.

=COUNTIFS('[Filename.xlsx]Sheet1'!$H$1:$H$65536, "1", '[Filename.xlsx]Sheet1'!$E$1:$E$65536, "Hardware - Loaner" )
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try

=SUMPRODUCT(--('[Filename.xlsx]Sheet1'!$H$1:$H$65536=1), --('[Filename.xlsx]Sheet1'!$E$1:$E$65536="Hardware - Loaner"))
 
Upvote 0
Thank you very much! Would I also be able to add another array that would SUM another row if they had those criteria? So it would be the same SUMPRODUCT formula, which would then add up, let's say column Q if it met the criteria in this formula?

=SUMPRODUCT(--('[Filename.xlsx]Sheet1'!$H$1:$H$65536=1), --('[Filename.xlsx]Sheet1'!$E$1:$E$65536="Hardware - Loaner"))
 
Upvote 0
Try

=SUMPRODUCT(--('[Filename.xlsx]Sheet1'!$H$1:$H$65536=1), --('[Filename.xlsx]Sheet1'!$E$1:$E$65536="Hardware - Loaner"),'[Filename.xlsx]Sheet1'!$Q$1:$Q$65536)
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,334
Members
452,907
Latest member
Roland Deschain

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