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

Can anyone tell me why the following doesnt work?

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

where XN01 is a staff salary band
$CI:$CI is a headcount figures containing 1's and 0's
$BL is an Ethnicity grouping which I need to group up e.g. A = white
english, B = white welsh. I am basically summing the headcount of white
people at band XN01.

Some of the problems I am having is that if I leave just one criteria for
ethnicity in e.g. "A", then the formula works. I then have to recreat the
calculation for bands XN01-XN09, with twelve other groupings of ethnicity so
I need to group many codes together.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default SUMPRODUCT and INDIRECT

See my earlier post

HTH

Bob

"JPDS" wrote in message
...
Can anyone tell me why the following doesnt work?

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

where XN01 is a staff salary band
$CI:$CI is a headcount figures containing 1's and 0's
$BL is an Ethnicity grouping which I need to group up e.g. A = white
english, B = white welsh. I am basically summing the headcount of white
people at band XN01.

Some of the problems I am having is that if I leave just one criteria for
ethnicity in e.g. "A", then the formula works. I then have to recreat the
calculation for bands XN01-XN09, with twelve other groupings of ethnicity
so
I need to group many codes together.
Thanks



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

Hi Bob,

Ive tried your formula in a blank sheet and it works fine. I just cant get
it to work in my sheet. Is it worth me sending you a copy? Maybe i'm trying
to get it to do something which it cant do.

"Bob Phillips" wrote:

See my earlier post

HTH

Bob

"JPDS" wrote in message
...
Can anyone tell me why the following doesnt work?

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

where XN01 is a staff salary band
$CI:$CI is a headcount figures containing 1's and 0's
$BL is an Ethnicity grouping which I need to group up e.g. A = white
english, B = white welsh. I am basically summing the headcount of white
people at band XN01.

Some of the problems I am having is that if I leave just one criteria for
ethnicity in e.g. "A", then the formula works. I then have to recreat the
calculation for bands XN01-XN09, with twelve other groupings of ethnicity
so
I need to group many codes together.
Thanks



.

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

Yeah sure, mail it to Bob dot NGs at gmail dot com (do the obvious)

Bob


"JPDS" wrote in message
...
Hi Bob,

Ive tried your formula in a blank sheet and it works fine. I just cant get
it to work in my sheet. Is it worth me sending you a copy? Maybe i'm
trying
to get it to do something which it cant do.

"Bob Phillips" wrote:

See my earlier post

HTH

Bob

"JPDS" wrote in message
...
Can anyone tell me why the following doesnt work?

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

where XN01 is a staff salary band
$CI:$CI is a headcount figures containing 1's and 0's
$BL is an Ethnicity grouping which I need to group up e.g. A = white
english, B = white welsh. I am basically summing the headcount of white
people at band XN01.

Some of the problems I am having is that if I leave just one criteria
for
ethnicity in e.g. "A", then the formula works. I then have to recreat
the
calculation for bands XN01-XN09, with twelve other groupings of
ethnicity
so
I need to group many codes together.
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 and INDIRECT JPDS Excel Worksheet Functions 7 January 15th 10 11:16 PM
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
Need help with using SUMPRODUCT with INDIRECT anara Excel Worksheet Functions 1 January 22nd 06 05:08 PM
sumproduct & indirect floridasurfn Excel Worksheet Functions 3 March 14th 05 02:01 AM


All times are GMT +1. The time now is 09:41 PM.

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"