Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default SUMPRODUCT with INDIRECT

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default SUMPRODUCT with INDIRECT

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default SUMPRODUCT with INDIRECT

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default SUMPRODUCT with INDIRECT

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default SUMPRODUCT with INDIRECT

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumproduct with indirect BNT1 via OfficeKB.com Excel Worksheet Functions 5 November 25th 07 06:23 PM
SUMPRODUCT & INDIRECT? lou031205 Excel Worksheet Functions 4 November 4th 07 02:07 AM
Need help with using SUMPRODUCT with INDIRECT anara Excel Worksheet Functions 1 January 22nd 06 05:08 PM
Help with Sumproduct with Indirect Rob Excel Worksheet Functions 6 July 28th 05 09:03 PM
sumproduct & indirect floridasurfn Excel Worksheet Functions 3 March 14th 05 02:01 AM


All times are GMT +1. The time now is 10:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"