ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Problem with SUMPRODUCT(SUMIF(INDEX formula linking to external fi (https://www.excelbanter.com/excel-worksheet-functions/216424-problem-sumproduct-sumif-index-formula-linking-external-fi.html)

gina1221

Problem with SUMPRODUCT(SUMIF(INDEX formula linking to external fi
 
Can anyone tell me what's wrong with this formula?

=SUMPRODUCT(SUMIF(INDIRECT([File_Name.xlsm]SheetName&"'"&$A$176:$A$194&"'!j:j"),D3,INDIRECT([File_Name.xlsm]SheetName&"'"&$A$176:$A$194&"'!p:p")))

I am getting #NAME? error.

I am using Excel 2007.
I have the external file open.
I have the Analysis Toolpak Add-Ins.

I believe there must be something wrong with where I have the " ' ! but I
just can't seem to figure it out.

Any ideas would be appreciated!




T. Valko

Problem with SUMPRODUCT(SUMIF(INDEX formula linking to external fi
 
Here's my best guess:

=SUMPRODUCT(SUMIF(INDIRECT("'[File_Name.xlsm]"&$A$176:$A$194&"'!J:J"),D3,INDIRECT("'[File_Name.xlsm]"&A$176:$A$194&"'!P:P")))

--
Biff
Microsoft Excel MVP


"gina1221" wrote in message
...
Can anyone tell me what's wrong with this formula?

=SUMPRODUCT(SUMIF(INDIRECT([File_Name.xlsm]SheetName&"'"&$A$176:$A$194&"'!j:j"),D3,INDIRECT([File_Name.xlsm]SheetName&"'"&$A$176:$A$194&"'!p:p")))

I am getting #NAME? error.

I am using Excel 2007.
I have the external file open.
I have the Analysis Toolpak Add-Ins.

I believe there must be something wrong with where I have the " ' ! but I
just can't seem to figure it out.

Any ideas would be appreciated!






Bob Phillips[_3_]

Problem with SUMPRODUCT(SUMIF(INDEX formula linking to external fi
 
Why don' you tell in words what you are trying to do?

--
__________________________________
HTH

Bob

"gina1221" wrote in message
...
Can anyone tell me what's wrong with this formula?

=SUMPRODUCT(SUMIF(INDIRECT([File_Name.xlsm]SheetName&"'"&$A$176:$A$194&"'!j:j"),D3,INDIRECT([File_Name.xlsm]SheetName&"'"&$A$176:$A$194&"'!p:p")))

I am getting #NAME? error.

I am using Excel 2007.
I have the external file open.
I have the Analysis Toolpak Add-Ins.

I believe there must be something wrong with where I have the " ' ! but I
just can't seem to figure it out.

Any ideas would be appreciated!






gina1221

Problem with SUMPRODUCT(SUMIF(INDEX formula linking to externa
 
I have an Excel workbook with approximately 65 sheets. I need to sum the
values in column J where it matches column D in an external sheet and return
the value from column P for each of the sheets in the workbook. I have the
list of sheet names listed on a sheet inside the workbook and that's how I'm
trying to use INDIRECT to pull information from all of the sheets instead of
just SUMIF and listing each sheet individually as this takes an inordinate
amount of time given the number of sheets in use.

Thanks, Gina

"Bob Phillips" wrote:

Why don' you tell in words what you are trying to do?

--
__________________________________
HTH

Bob

"gina1221" wrote in message
...
Can anyone tell me what's wrong with this formula?

=SUMPRODUCT(SUMIF(INDIRECT([File_Name.xlsm]SheetName&"'"&$A$176:$A$194&"'!j:j"),D3,INDIRECT([File_Name.xlsm]SheetName&"'"&$A$176:$A$194&"'!p:p")))

I am getting #NAME? error.

I am using Excel 2007.
I have the external file open.
I have the Analysis Toolpak Add-Ins.

I believe there must be something wrong with where I have the " ' ! but I
just can't seem to figure it out.

Any ideas would be appreciated!








All times are GMT +1. The time now is 05:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com