Sumproduct function with incremental row while dragging

arijitirf

Board Regular
Joined
Aug 11, 2016
Messages
98
Office Version
  1. 2016
Platform
  1. Windows
Hi!!!

Below formula is working well when the workbook is open but returns a #Ref Error if the reference workbook is closed.

=SUMIF(INDIRECT("'[Stock Register.xlsx]Stock Code "&ROW(A1)&"'!"&"$O$8:$O$500"),"Issued to Sanitary Syndicate",INDIRECT("'[Stock Register.xlsx]Stock Code "&ROW(A1)&"'!"&"$I$8:$I$500"))

I've used Sumproduct instead of sumif function but in this function row increment is not happening while dragging the formula from above row.

=SUMPRODUCT(--('C:\Users\Ferroequinologist\Desktop\[Stock Register.xlsx]Stock Code 1'!$E$3:$E$500="Issued to Sanitary Syndicate"),'C:\Users\Ferroequinologist\Desktop\[Stock Register.xlsx]Stock Code 1'!$C$3:$C$500)

Help required.
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I read the Help article from MS about function INDIRECT; it says "If ref_text refers to another workbook (an external reference), the other workbook must be open. If the source workbook is not open, INDIRECT returns the #REF ! error value."

Dragging your SUMPRODUCT formula downwards will not increment the row reference if you have absolute references (i.e., the $). Remove the $.

[And have fun with your train hobby!. I see you are a person interested in studying the iron horse.]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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