Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am attempting to replace a SUMIF with a SUMPRODUCT so that I can calc on
workbooks that are not open. I am able to get the SUMPRODUCT to work fine, but when I try to add INDIRECT so that I can build the parms to pass to the SUMPRODUCT, I am getting #REF errors. Once I get this working, I'll try to get the indirect.ext working. I can't seem to find my syntax error. Do you happen to see the problem? SUMPRODUCT without the INDIRECT that is working: =SUMPRODUCT(--('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!N:N=C6),('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!L:L)) Trying to work in my INDIRECT statements. The second parm is fine - it's the first one that Excel doesn't like: =SUMPRODUCT((INDIRECT("--('["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The "--" is not part of the cell address. It's there to convert trues and
falses to numbers which Sumproduct can work with. Try this: =SUMPRODUCT(--((INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) which you could simplify by removing the pair of parentheses around the Indirects Regards, Fred "Nancy Taylor" wrote in message ... I am attempting to replace a SUMIF with a SUMPRODUCT so that I can calc on workbooks that are not open. I am able to get the SUMPRODUCT to work fine, but when I try to add INDIRECT so that I can build the parms to pass to the SUMPRODUCT, I am getting #REF errors. Once I get this working, I'll try to get the indirect.ext working. I can't seem to find my syntax error. Do you happen to see the problem? SUMPRODUCT without the INDIRECT that is working: =SUMPRODUCT(--('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!N:N=C6),('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!L:L)) Trying to work in my INDIRECT statements. The second parm is fine - it's the first one that Excel doesn't like: =SUMPRODUCT((INDIRECT("--('["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Fred,
Thanks for the reply. I tried this but I still get the #REF! error. I'll keep trying! Nancy "Fred Smith" wrote: The "--" is not part of the cell address. It's there to convert trues and falses to numbers which Sumproduct can work with. Try this: =SUMPRODUCT(--((INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) which you could simplify by removing the pair of parentheses around the Indirects Regards, Fred "Nancy Taylor" wrote in message ... I am attempting to replace a SUMIF with a SUMPRODUCT so that I can calc on workbooks that are not open. I am able to get the SUMPRODUCT to work fine, but when I try to add INDIRECT so that I can build the parms to pass to the SUMPRODUCT, I am getting #REF errors. Once I get this working, I'll try to get the indirect.ext working. I can't seem to find my syntax error. Do you happen to see the problem? SUMPRODUCT without the INDIRECT that is working: =SUMPRODUCT(--('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!N:N=C6),('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!L:L)) Trying to work in my INDIRECT statements. The second parm is fine - it's the first one that Excel doesn't like: =SUMPRODUCT((INDIRECT("--('["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sorry, I didn't look closing enough. Indirect is used to create the range.
The rest of the formula needs to be outside of the Indirect function. Try this: =SUMPRODUCT(--(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N")=C6),INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L")) If you're still getting a #REF error, you need to check B2 and D6. Try testing the Indirect formula to make sure it is creating the proper address for you. Regards, Fred. "Nancy Taylor" wrote in message ... Hi Fred, Thanks for the reply. I tried this but I still get the #REF! error. I'll keep trying! Nancy "Fred Smith" wrote: The "--" is not part of the cell address. It's there to convert trues and falses to numbers which Sumproduct can work with. Try this: =SUMPRODUCT(--((INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) which you could simplify by removing the pair of parentheses around the Indirects Regards, Fred "Nancy Taylor" wrote in message ... I am attempting to replace a SUMIF with a SUMPRODUCT so that I can calc on workbooks that are not open. I am able to get the SUMPRODUCT to work fine, but when I try to add INDIRECT so that I can build the parms to pass to the SUMPRODUCT, I am getting #REF errors. Once I get this working, I'll try to get the indirect.ext working. I can't seem to find my syntax error. Do you happen to see the problem? SUMPRODUCT without the INDIRECT that is working: =SUMPRODUCT(--('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!N:N=C6),('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!L:L)) Trying to work in my INDIRECT statements. The second parm is fine - it's the first one that Excel doesn't like: =SUMPRODUCT((INDIRECT("--('["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Fred,
I kept making adjustments and realized that too. Once I got the =C6 out of the way, it worked just fine. Now, on to trying to get the Indirect.ext to work so that I don't have to open so many spreadsheets to get all of this to work! Thanks so much for your help! Nancy "Fred Smith" wrote: Sorry, I didn't look closing enough. Indirect is used to create the range. The rest of the formula needs to be outside of the Indirect function. Try this: =SUMPRODUCT(--(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N")=C6),INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L")) If you're still getting a #REF error, you need to check B2 and D6. Try testing the Indirect formula to make sure it is creating the proper address for you. Regards, Fred. "Nancy Taylor" wrote in message ... Hi Fred, Thanks for the reply. I tried this but I still get the #REF! error. I'll keep trying! Nancy "Fred Smith" wrote: The "--" is not part of the cell address. It's there to convert trues and falses to numbers which Sumproduct can work with. Try this: =SUMPRODUCT(--((INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) which you could simplify by removing the pair of parentheses around the Indirects Regards, Fred "Nancy Taylor" wrote in message ... I am attempting to replace a SUMIF with a SUMPRODUCT so that I can calc on workbooks that are not open. I am able to get the SUMPRODUCT to work fine, but when I try to add INDIRECT so that I can build the parms to pass to the SUMPRODUCT, I am getting #REF errors. Once I get this working, I'll try to get the indirect.ext working. I can't seem to find my syntax error. Do you happen to see the problem? SUMPRODUCT without the INDIRECT that is working: =SUMPRODUCT(--('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!N:N=C6),('[09122009_Nancy Taylor.xlsm]Weekly Timesheet'!L:L)) Trying to work in my INDIRECT statements. The second parm is fine - it's the first one that Excel doesn't like: =SUMPRODUCT((INDIRECT("--('["&$B$2&"_"&D6&".xlsm]weekly timesheet'!N:N=C6")),(INDIRECT("'["&$B$2&"_"&D6&".xlsm]weekly timesheet'!L:L"))) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sumproduct with indirect | Excel Worksheet Functions | |||
SUMPRODUCT & INDIRECT? | Excel Worksheet Functions | |||
Need help with using SUMPRODUCT with INDIRECT | Excel Worksheet Functions | |||
Help with Sumproduct with Indirect | Excel Worksheet Functions | |||
sumproduct & indirect | Excel Worksheet Functions |