Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Using Indirect in Sumproduct formula

I have the following formula which is working
=SUMPRODUCT(--('Wk41-42'!$C$6:$C$1474=$A6),--('Wk41-42'!$D$6:$D$1474<""),--('Wk41-42'!$L$6:$L$1474<12),--('Wk41-42'!$L$6:$L$1474=10))
In cells above this formula, I have labels for the weeks involved, ie 35-36,
37-38, 39-40, and 41-42. I would like to use the value in the cell
concantenated with the string "Wk" to be able to change the formula so that I
can copy the formula and have it work without having to change the sheet
names to get it to work.
I tried the following, which is obviously incorrect as I get a #REF error.
=SUMPRODUCT(--(INDIRECT("'Wk" & I$4 &
"'!$C$6:$C$1474")=$A6),--('Wk41-42'!$D$6:$D$1474<""),--('Wk41-42'!$L$6:$L$1474<12),--('Wk41-42'!$L$6:$L$1474=10))
Can someone help me out? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Using Indirect in Sumproduct formula

I found the problem. After looking at the post, I noticed I was using I4 for
the cell, but my formulas were on row 6. I double checked, and sure enough,
I needed to use I$5. Boy is my face red.

"Kleev" wrote:

I have the following formula which is working:
=SUMPRODUCT(--('Wk41-42'!$C$6:$C$1474=$A6),--('Wk41-42'!$D$6:$D$1474<""),--('Wk41-42'!$L$6:$L$1474<12),--('Wk41-42'!$L$6:$L$1474=10))
In cells above this formula, I have labels for the weeks involved, ie 35-36,
37-38, 39-40, and 41-42. I would like to use the value in the cell
concantenated with the string "Wk" to be able to change the formula so that I
can copy the formula and have it work without having to change the sheet
names to get it to work.
I tried the following, which is obviously incorrect as I get a #REF error.
=SUMPRODUCT(--(INDIRECT("'Wk" & I$4 &
"'!$C$6:$C$1474")=$A6),--('Wk41-42'!$D$6:$D$1474<""),--('Wk41-42'!$L$6:$L$1474<12),--('Wk41-42'!$L$6:$L$1474=10))
Can someone help me out? Thanks.

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 multiple criteria using indirect formula jbo Excel Worksheet Functions 4 December 2nd 08 03:25 PM
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
SUMIF and SUMPRODUCT with INDIRECT formula problem Sunnyskies Excel Discussion (Misc queries) 1 August 18th 07 11:17 AM
include INDIRECT function into SUMPRODUCT formula markx Excel Worksheet Functions 1 November 9th 05 05:04 PM


All times are GMT +1. The time now is 11:44 AM.

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

About Us

"It's about Microsoft Excel"