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

I'm having problems getting the following to work:

=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"}),(IND IRECT($AW$3&"!$CI$1:$CI$6000")))

The formula works when I only use one criteria in the range for $BL i.e.
{"A"}, but as soon as I add more than one criteria in, I get an error.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default SUMPRODUCT and INDIRECT

Hi,
try
=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")="A"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")="B"),(INDIRECT( $AW$3&"!$CI$1:$CI$6000")))

"JPDS" wrote:

I'm having problems getting the following to work:

=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"}),(IND IRECT($AW$3&"!$CI$1:$CI$6000")))

The formula works when I only use one criteria in the range for $BL i.e.
{"A"}, but as soon as I add more than one criteria in, I get an error.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default SUMPRODUCT and INDIRECT

Hi,

Try this

=SUMPRODUCT((INDIRECT($AW$3&"!$O$1:$O$6000")="XN01 ")*(INDIRECT($AW$3&"!$BL$1:$BL$6000")="A"+(INDIREC T($AW$3&"!$BL$1:$BL$6000")="B"))*(INDIRECT($AW$3&" !$CI$1:$CI$6000")))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"JPDS" wrote in message
...
I'm having problems getting the following to work:

=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"}),(IND IRECT($AW$3&"!$CI$1:$CI$6000")))

The formula works when I only use one criteria in the range for $BL i.e.
{"A"}, but as soon as I add more than one criteria in, I get an error.

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default SUMPRODUCT and INDIRECT

Try using a defined name for your ranges. Then
=SUMPRODUCT(--(rngO="XN01"),--(rngBL={"A","B"}),rngCL)
or
=SUMPRODUCT((rngO="XN01")*(rngBL={"A","B"})*rngCL)


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JPDS" wrote in message
...
I'm having problems getting the following to work:

=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"}),(IND IRECT($AW$3&"!$CI$1:$CI$6000")))

The formula works when I only use one criteria in the range for $BL i.e.
{"A"}, but as soon as I add more than one criteria in, I get an error.

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default SUMPRODUCT and INDIRECT

Would it matter if I told you that a person is an "A" OR "B"? Does your
calculation now try and determine if the person is both which is why it
brings back a zero?

"Ashish Mathur" wrote:

Hi,

Try this

=SUMPRODUCT((INDIRECT($AW$3&"!$O$1:$O$6000")="XN01 ")*(INDIRECT($AW$3&"!$BL$1:$BL$6000")="A"+(INDIREC T($AW$3&"!$BL$1:$BL$6000")="B"))*(INDIRECT($AW$3&" !$CI$1:$CI$6000")))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"JPDS" wrote in message
...
I'm having problems getting the following to work:

=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"}),(IND IRECT($AW$3&"!$CI$1:$CI$6000")))

The formula works when I only use one criteria in the range for $BL i.e.
{"A"}, but as soon as I add more than one criteria in, I get an error.

Thanks




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default SUMPRODUCT and INDIRECT

Try

=SUMPRODUCT((INDIRECT($AW$3&"!$O$1:$O$6000")="XN01 ")
*(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"})
*(INDIRECT($AW$3&"!$CI$1:$CI$6000")))

---
HTH

Bob Phillips

"JPDS" wrote in message
...
I'm having problems getting the following to work:

=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"}),(IND IRECT($AW$3&"!$CI$1:$CI$6000")))

The formula works when I only use one criteria in the range for $BL i.e.
{"A"}, but as soon as I add more than one criteria in, I get an error.

Thanks



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default SUMPRODUCT and INDIRECT

HI Don, I cant use a range because I reference multiple monthly sheets which
is determined by the '$AW$3' part. Its getting quite tricky!

"Don Guillett" wrote:

Try using a defined name for your ranges. Then
=SUMPRODUCT(--(rngO="XN01"),--(rngBL={"A","B"}),rngCL)
or
=SUMPRODUCT((rngO="XN01")*(rngBL={"A","B"})*rngCL)


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JPDS" wrote in message
...
I'm having problems getting the following to work:

=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"}),(IND IRECT($AW$3&"!$CI$1:$CI$6000")))

The formula works when I only use one criteria in the range for $BL i.e.
{"A"}, but as soon as I add more than one criteria in, I get an error.

Thanks


.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default SUMPRODUCT and INDIRECT

Hi,

My formula works on OR (as desired). The + in the sumproduct implies an OR
condition. Could you kindly recheck

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"JPDS" wrote in message
...
HI Don, I cant use a range because I reference multiple monthly sheets
which
is determined by the '$AW$3' part. Its getting quite tricky!

"Don Guillett" wrote:

Try using a defined name for your ranges. Then
=SUMPRODUCT(--(rngO="XN01"),--(rngBL={"A","B"}),rngCL)
or
=SUMPRODUCT((rngO="XN01")*(rngBL={"A","B"})*rngCL)


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JPDS" wrote in message
...
I'm having problems getting the following to work:

=SUMPRODUCT(--(INDIRECT($AW$3&"!$O$1:$O$6000")="XN01"),--(INDIRECT($AW$3&"!$BL$1:$BL$6000")={"A","B"}),(IND IRECT($AW$3&"!$CI$1:$CI$6000")))

The formula works when I only use one criteria in the range for $BL
i.e.
{"A"}, but as soon as I add more than one criteria in, I get an error.

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 INDIRECT Nancy Taylor[_2_] Excel Worksheet Functions 4 September 22nd 09 11:22 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
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 04:00 PM.

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"